Flow definition operations (POST, DELETE)
Description
URL |
scheme://domain:port/platform/ws/flow/definitions/submit scheme://domain:port/platform/ws/flow/definitions/publish scheme://domain:port/platform/ws/flow/definitions/unpublish scheme://domain:port/platform/ws/flow/definitions/hold scheme://domain:port/platform/ws/flow/definitions/release scheme://domain:port/platform/ws/flow/definitions/commit scheme://domain:port/platform/ws/flow/definitions/{flowname} |
||
Description |
Flow definition operations APIs:
|
||
HTTP Method |
DELETE for /platform/ws/flow/definitions/{flowname} API POST for all other operation APIs |
||
Parameters |
API |
Name |
Description |
submit, publish, unpublish, hold, release |
flownames |
Flow name with owner, owner:name. Supports multiple flow names, split by comma (,). |
|
submit |
variables |
Optional. Input variables, split by semicolon (;). |
|
commit |
filepath |
Flow definition xml full file path on PM server side. |
|
comment |
Optional. Flow definition commit comment. |
||
version |
Optional. Flow definition commit version number. |
||
/platform/ws/flow/definitions/{flowname} (delete API) |
force |
Optional. Force delete of the flow definition on PM server side. This parameter is the same as the PM java API. When set in the request the API will remove the flow definition even if the flow contains work items with dependent proxies in other flows. |
Request
Request |
Request Information |
|
Method |
DELETE for /platform/ws/flow/definitions/{flowname} API POST for all other flow definition operation APIs |
|
Request-URI |
/platform/ws/flow/definitions/{operation} |
|
Request-Header |
Name |
Value |
Accept |
application/xml or application/json |
|
Message-Body |
|
Response
Response Code |
|
|
Response-Header |
Name |
Value |
Content-Type |
application/xml or application/json |
|
Message-body |
Success Message |
|
Failure Message |
If not successful, returns an error message.
|
Example: Publish flows
# RequestPOST /platform/ws/flow/definitions/publish
Accept: application/json;
flownames=jsmith:flow1,jsmith:flow2
# Response
200 Successful
Content-Type: application/json;
{
"message": {
"message": "Flow <jsmith:flow1> is published. Flow <jsmith:flow2> is published."
}
}
The message follows the job APIs, joins all single messages to a buffer and then returns. Successful messages or failed messages are all in the whole message.
# Request
POST /platform/ws/flow/definitions/publish
Accept: application/xml;
flownames=jsmith:flow1,jsmith:flow2
# Response
200 Successful
Content-Type: application/xml;
<message>
<message> Flow <jsmith:flow1> is published. Flow <jsmith:flow2> is published.</message>
</message>