...
Description | |
---|---|
URI | http://host_name/uc/resources/workflow/edges |
HTTP Method | POST |
Description | Adds a dependency to a workflow, with the dependency represented by a |
URI Parameters | See Add a Dependency to a Workflow: URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/workflow/edges?workflowname=workflow1 |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Add a Dependency to a Workflow: Example Request, below. |
Add a Dependency to a Workflow Properties | See Add a Dependency to a Workflow: Properties, below. |
Example Response |
|
...
Description | |
---|---|
URI | http://host_name/uc/resources/workflow/vertices |
HTTP Method | POST |
Description | Adds a task to a workflow, with the task represented by a |
URI Parameters | See Add a Task to a Workflow: URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/workflow/vertices?workflowname=workflow1 |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | application/xml, application/json |
Example Request | See Add a Task to a Workflow: Example Request, below. |
Example Response | See Add a Task to a Workflow: Example Response (Status 200), below. |
Add a Task to a Workflow Properties | See Add a Task to a Workflow: Request/Response Properties, below. |
Example Response |
|
...
XML | JSON |
---|---|
...
XML | JSON |
---|---|
...
Property | UI Field Name | Description | Specification | Required | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alias | n/a | Alias used for the task added to the workflow; specifically, the value of ops_task_workflow_vertex.name. | N | |||||||||||||||||||||||
| task
| task
| Task Name | Name of the task added to the workflow. | ||||||||||||||||||||||
Anchor | vertexId - ATW | vertexId - ATW | n/a | Vertex ID of the task added to the workflow. | ||||||||||||||||||||||
Anchor | vertexX - ATW | vertexX - ATW | n/a | x-coordinate of the task added to the workflow. | ||||||||||||||||||||||
Anchor | vertexY - ATW | vertexY - ATW | n/a | y-coordinate of the task added to the workflow. |
...
List Dependencies in a Workflow
...
Description
...
URI
...
HTTP Method
...
GET
...
Description
...
Returns the list of dependencies for all tasks in a workflow, with each dependency represented by a workflowEdge
(see Example Response, below).
...
URI Parameters
...
See List Dependencies in a Workflow: URI Parameters, below.
...
Example URI
...
Authentication
...
HTTP Basic
...
Consumes Content-Type
...
n/a
...
Produces Content-Type
...
application/xml, application/json
...
Example Response
...
See List Dependencies in a Workflow: Example Response, below.
...
Response Properties
...
See List Dependencies in a Workflow: Properties, below.
...
List Dependencies in a Workflow: URI Parameters
...
Name
...
Description
...
Specifications
...
Required
...
Mutually Exclusive With
...
sourceid
...
Vertex ID of the source task.
...
String; URI parameter.
...
N
...
targetid
...
Vertex ID of the target task.
...
String; URI parameter.
...
N
...
workflowid
...
ID used within the Controller to identify the workflow.
...
String; URI parameter.
...
Y
(unless workflowname
is specified)
...
workflowname
...
workflowname
...
Name used within the Controller to identify the workflow.
...
String; URI parameter.
...
Y
(unless workflowid
is specified)
...
workflowid
...
List Dependencies in a Workflow: Example Response
XML | JSON | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Expand | ||
---|---|---|
| ||
<workflowEdges> <workflowEdge> <condition>Success</condition> <sourceId taskName="Sleep 30" taskAlias="test">2</sourceId> <straightEdge>true</straightEdge> <targetId taskName="Sleep 60">3</targetId> </workflowEdge> <workflowEdge> <condition>Success</condition> <sourceId taskName="Sleep 60">3</sourceId> <straightEdge>true</straightEdge> <targetId taskName="Sleep 60">6</targetId> </workflowEdge> </workflowEdges> |
title | JSON |
---|
conditionExpression
XML:
<conditionExpression>
<condition>
<vertexId>7</vertexId>
</condition>
<condition>
<vertexId>10</vertexId>
</condition>
<compoundCondition>
<condition>
<vertexId>9</vertexId>
</condition>
<condition>
<vertexId>7</vertexId>
</condition>
<logicalOperator>And</logicalOperator>
</compoundCondition>
<logicalOperator>Or</logicalOperator>
</conditionExpression>
JSON:
"conditionExpression": {
"conditions": [
{
"type": "condition",
"vertexId": "7"
},
{
"type": "condition",
"vertexId": "10"
},
{
"type": "compoundCondition",
"conditions": [
{
"type": "condition",
"vertexId": "9"
},
{
"type": "condition",
"vertexId": "7"
}
],
"logicalOperator": "And"
}
],
"logicalOperator": "Or"
}
Anchor | ||||
---|---|---|---|---|
|
task
Task Name
Name of the task added to the workflow.
Anchor | ||||
---|---|---|---|---|
|
vertexId
n/a
Vertex ID of the task added to the workflow.
Each task within a Workflow has a unique Vertex ID to distinguish it from other tasks of the same name, if any.
Anchor | ||||
---|---|---|---|---|
|
vertexX
n/a
x-coordinate of the task added to the workflow.
Anchor | ||||
---|---|---|---|---|
|
vertexY
n/a
y-coordinate of the task added to the workflow.
Anchor | ||||
---|---|---|---|---|
|
List Dependencies in a Workflow
Description | |
---|---|
URI | http://host_name/uc/resources/workflow/edges |
HTTP Method | GET |
Description | Returns the list of dependencies for all tasks in a workflow, with each dependency represented by a |
URI Parameters | See List Dependencies in a Workflow: URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/workflow/edges?workflowname=workflow1 |
Authentication | HTTP Basic |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response | See List Dependencies in a Workflow: Example Response, below. |
Response Properties | See List Dependencies in a Workflow: Properties, below. |
Anchor | ||||
---|---|---|---|---|
|
List Dependencies in a Workflow: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|
| Vertex ID of the source task. | String; URI parameter. | N | |
| Vertex ID of the target task. | String; URI parameter. | N | |
| ID used within the Controller to identify the workflow. | String; URI parameter. | Y |
|
| Name used within the Controller to identify the workflow. | String; URI parameter. | Y |
|
Anchor | ||||
---|---|---|---|---|
|
List Dependencies in a Workflow: Example Response
XML | JSON | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
...
List Dependencies in a Workflow: Properties
...
Property
...
UI Field Name
...
Description
...
n/a
...
Dependency condition between the source and target tasks of this edge (connector).
...
n/a
...
Vertex ID of the source task.
...
n/a
...
Specification for whether the edge is straight or bent.
...
n/a
...
Vertex ID of the target task.
...
List Tasks in a Workflow
Attribute sysId identifies the sysid of the specified task.
...
Description
...
URI
...
HTTP Method
...
GET
...
Description
...
Returns the list of tasks in a workflow, with each task represented by a workflowVertex
(see Example Response, below).
...
URI Parameters
...
See List Tasks in a Workflow: URI Parameters, below.
...
Example URI
...
- http://localhost:8080/uc/resources/workflow/vertices?workflowname=workflow
- http://localhost:8080/uc/resources/workflow/vertices?workflowname=workflow&taskname=test
...
Authentication
...
HTTP Basic
...
Consumes Content-Type
...
n/a
...
Produces Content-Type
...
application/xml, application/json
...
Example Response
...
See List Tasks in a Workflow: Example Response, below.
...
Response Properties
...
See List Tasks in a Workflow: Properties, below.
...
List Tasks in a Workflow: URI Parameters
...
Parameter
...
Description
...
Specifications
...
Required
...
Mutually Exclusive With
...
Alias used for the task within the Workflow; specifically, the value of ops_task_workflow_vertex.name.
...
String; URI parameter.
...
Y
(unless taskid
, taskname
or vertexid
,
is specified
...
taskid
, taskname
, vertexid
...
ID used within the Controller to identify this task.
...
String; URI parameter.
...
Y
(unless taskalias
, taskname
or vertexid
,
is specified
...
taskalias
, taskname
, vertexid
...
Name used within the Controller to identify this task.
...
String; URI parameter.
...
Y
(unless taskalias
, taskid
or vertexid
,
is specified
...
taskalias
, taskid
, vertexid
...
Vertex ID of the task in the workflow to be listed.
Each task within a Workflow has a unique Vertex ID to distinguish it from other tasks, if any, of the same name.
...
String; URI parameter.
...
Y
(unless taskalias
, taskid
or taskname
,
is specified
...
taskalias
, taskid
, taskname
...
ID used within the Controller to identify a workflow.
...
Y
(unless workflowname
is specified
...
workflowname
...
Name of a workflow.
...
Y
(unless workflowid
is specified
...
workflowid
...
List Tasks in a Workflow: Example Response
...
XML
...
JSON
Expand | ||
---|---|---|
| ||
<workflowVertices> <workflowVertex> <alias>Task 1</alias> <task sysId="1010f538c0a801c900e0fe0af94d9be5">task1</task> <vertexId>5</vertexId> <vertexX>253</vertexX> <vertexY>296</vertexY> </workflowVertex> <workflowVertex> <alias>Task 2</alias> <task sysId="f81d30ccc0a801c9008ea20e4f5f61d6">task2</task> <vertexId>6</vertexId> <vertexX>252.5</vertexX> <vertexY>429</vertexY> </workflowVertex> </workflowVertices> |
Expand | ||
---|---|---|
| ||
[ { "alias": "Task 1", "task": { "sysId": "1010f538c0a801c900e0fe0af94d9be5", "value": "task1" }, "vertexId": "5", "vertexX": "253", "vertexY": "296" }, { "alias": "Task 2", "task": { "sysId": "f81d30ccc0a801c9008ea20e4f5f61d6", "value": "task2" }, "vertexId": "6", "vertexX": "252.5", "vertexY": "429" } ] |
...
List Tasks in a Workflow: Response Properties
...
Property
...
UI Field Name
...
Description
...
n/a
...
Alias used for the task; specifically, the value of ops_task_workflow_vertex.name.
...
Task Name
...
Name of the task added.
...
n/a
...
Vertex ID of the task.
Each task within a Workflow has a unique Vertex ID to distinguish it from other tasks of the same name, if any.
...
n/a
...
x-coordinate of the task.
...
n/a
...
y-coordinate of the task.
...
|
Anchor | ||||
---|---|---|---|---|
|
List Dependencies in a Workflow: Properties
Property | UI Field Name | Description | ||||||
---|---|---|---|---|---|---|---|---|
condition | n/a | Dependency condition between the source and target tasks of this edge (connector). | ||||||
sourceId | n/a | Vertex ID of the source task. | ||||||
straightEdge | n/a | Specification for whether the edge is straight or bent. | ||||||
targetId | n/a | Vertex ID of the target task. |
Anchor | ||||
---|---|---|---|---|
|
List Tasks in a Workflow
Attribute sysId identifies the sysid of the specified task.
Description | |
---|---|
URI | http://host_name/uc/resources/workflow/vertices |
HTTP Method | GET |
Description | Returns the list of tasks in a workflow, with each task represented by a |
URI Parameters | See List Tasks in a Workflow: URI Parameters, below. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response | See List Tasks in a Workflow: Example Response, below. |
Response Properties | See List Tasks in a Workflow: Properties, below. |
Anchor | ||||
---|---|---|---|---|
|
List Tasks in a Workflow: URI Parameters
Parameter | Description | Specifications | Required | Mutually Exclusive With | ||||||
---|---|---|---|---|---|---|---|---|---|---|
taskalias | Alias used for the task within the Workflow; specifically, the value of ops_task_workflow_vertex.name. | String; URI parameter. | Y |
| ||||||
taskid | ID used within the Controller to identify this task. | String; URI parameter. | Y |
| ||||||
taskname | Name used within the Controller to identify this task. | String; URI parameter. | Y |
| ||||||
vertexid | Vertex ID of the task in the workflow to be listed. | String; URI parameter. | Y |
| ||||||
workflowid | ID used within the Controller to identify a workflow. | Y |
| |||||||
workflowname | Name of a workflow. | Y |
|
Anchor | ||||
---|---|---|---|---|
|
List Tasks in a Workflow: Example Response
XML | JSON | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Anchor | ||||
---|---|---|---|---|
|
List Tasks in a Workflow: Response Properties
Property | UI Field Name | Description | ||||||
---|---|---|---|---|---|---|---|---|
alias | n/a | Alias used for the task; specifically, the value of ops_task_workflow_vertex.name. | ||||||
| n/a | Boolean condition expression to specify the dependency criteria. | ||||||
task | Task Name | Name of the task added. | ||||||
vertexId | n/a | Vertex ID of the task. | ||||||
vertexX | n/a | x-coordinate of the task. | ||||||
vertexY | n/a | y-coordinate of the task. |
Anchor | ||||
---|---|---|---|---|
|
Modify a Dependency in a Workflow
Description | |
---|---|
URI | http://host_name/uc/resources/workflow/edges |
HTTP Method | PUT |
Description | Modifies a dependency in a workflow, with the dependency represented by a |
URI Parameters | |
Example URI | http://localhost:8080/uc/resources/workflow/edges?workflowname=workflow1 |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Modify a Dependency in a Workflow: Example Request, below. |
Modify a Dependency in a Workflow Properties | |
Example Response |
|
Anchor | ||||
---|---|---|---|---|
|
Modify a Dependency in a Workflow: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|
| ID used within the Controller to identify the workflow. | String; URI parameter. | Y |
|
| Name used within the Controller to identify the workflow. | String; URI parameter. | Y |
|
Anchor | ||||
---|---|---|---|---|
|
Modify a Dependency in a Workflow: Example Request
XML | JSON | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Anchor | ||||
---|---|---|---|---|
|
Modify a Task in a Workflow
Description | |
---|---|
URI | http://host_name/uc/resources/workflow/edgesvertices |
HTTP Method | PUT |
Description | Modifies a dependency task in a workflow, with the dependency task represented by a |
URI Parameters | See Modify a Dependency Task in a Workflow: URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/workflow/edgesvertices?workflowname=workflow1 |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Modify a Dependency Task in a Workflow: Example Request, below. |
Modify a Dependency Task in a Workflow Properties | See Add a Dependency Task to a Workflow: Properties. |
Example Response |
|
Anchor | ||||
---|---|---|---|---|
|
Modify a
...
Task in a Workflow: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
---|---|---|---|---|
| ID used within the Controller to identify the workflow. | String; URI parameter. | Y |
|
...
Modify a Dependency in a Workflow: Example Request
XML | JSON | |||||
---|---|---|---|---|---|---|
| Name used within the Controller to identify the workflow. | String; URI parameter. | ||||
Expand | | |||||
|
...
|
|
Anchor | ||||
---|---|---|---|---|
|
Modify a Task in a Workflow: Example Request
XML | JSON |
---|---|
Anchor | ||||
---|---|---|---|---|
|
Modify a Task in a Workflow: Properties
Property | UI Field Name | Description | Specifications |
---|---|---|---|
URI | http://host_name/uc/resources/workflow/vertices | ||
HTTP Method | PUT | ||
Description | Modifies a task in a workflow, with the task represented by a | ||
URI Parameters | See Modify a Task in a Workflow: URI Parameters, below. | ||
Example URI | http://localhost:8080/uc/resources/workflow/vertices?workflowname=workflow1 | ||
Consumes Content-Type | application/xml, application/json | ||
Produces Content-Type | n/a | ||
Example Request | See Modify a Task in a Workflow: Example Request, below. | ||
Modify a Task in a Workflow Properties |
...
Modify a Task in a Workflow: URI Parameters
...
Name
...
Description
...
Specifications
...
Required
...
Mutually Exclusive With
...
workflowid
...
ID used within the Controller to identify the workflow.
...
String; URI parameter.
...
Y
(unless workflowname
is specified)
...
workflowname
...
workflowname
...
Name used within the Controller to identify the workflow.
...
String; URI parameter.
...
Y
(unless workflowid
is specified)
...
workflowid
...
Modify a Task in a Workflow: Example Request
...
XML
...
JSON
Expand | ||
---|---|---|
| ||
<workflowVertex> <alias>S30</alias> <task>Sleep 30</task> <vertexX>360</vertexX> <vertexY>60</vertexY> </workflowVertex> |
Expand | ||
---|---|---|
| ||
{ "alias": "S30", "task": { "value": "sleep 30" }, "vertexX": "360", "vertexY": "60" } |
...
Modify a Task in a Workflow: Properties
Property | UI Field Name | Description | Specifications | Required | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Anchor | alias - MTW | alias - MTW | n/a | Alias used for the task to be modified in the workflow; specifically, the value of ops_task_workflow_vertex.name.Required | ||||||
alias | n/a | Alias used for the task to be modified in the workflow; specifically, the value of ops_task_workflow_vertex.name. | N | |||||||
| n/a | Boolean condition expression to specify the dependency criteria. | XML: <conditionExpression> JSON: "conditionExpression": { | N | ||||||
task | Task Name | Name of the task to be modified in the workflow. | Cannot be modified; used only to search for the task. To modify by | Y | ||||||
vertexId | n/a | Vertex ID of the task within the workflow. | Cannot be modified; used only to search for the task. | Y | ||||||
vertexX | n/a | x-coordinate of the task to be modified in the workflow. | Default is 0. | N | ||||||
vertexY | n/a | y-coordinate of the task to be modified in the workflow. | Default is 0. | N |
...
Description | |
---|---|
URI | http://host_name/uc/resources/workflow/edges |
HTTP Method | DELETE |
Description | Removes a dependency from a workflow, with the dependency represented by |
URI Parameters | See Remove a Dependency from a Workflow: URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/workflow/edges?workflowname=workflow1&sourceid=2&targetid=4 |
Authentication | HTTP Basic |
Example Response |
|
...
Description | |
---|---|
URI | http://host_name/uc/resources/workflow/vertices |
HTTP Method | DELETE |
Description | Removes one or more tasks from a workflow, with each removed task represented by a |
URI Parameters | See Remove Task(s) from a Workflow: URI Parameters, below. |
Example URI | |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Authentication | HTTP Basic |
Example Response | See Remove Task(s) from a Workflow: Example Response, below. |
Remove Task(s) from a Workflow Properties | See Remove Task(s) from a Workflow: Properties, below. |
Anchor | ||||
---|---|---|---|---|
|
...
XML | JSON |
---|---|
Note | ||
---|---|---|
| ||
If there are no matching tasks to remove, an empty list is returned. |
...
Property | UI Field Name | Description | ||||||
---|---|---|---|---|---|---|---|---|
alias | n/a | Alias of the task removed from the Workflow; specifically, the value of ops_task_workflow_vertex.name. | ||||||
| n/a | Boolean condition expression to specify the dependency criteria. | ||||||
task | Task Name | Name of the task removed from the Workflow. | ||||||
vertexId | n/a | Vertex ID of the task removed from the Workflow. | ||||||
vertexX | n/a | x-coordinate of the task removed from the Workflow. | ||||||
vertexY | n/a | y-coordinate of the task removed from the Workflow. |
...