Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Universal Controller supports the following RESTful-based web services for Workflow Task Instance operations, which are listed alphabetically on this page.

Formatting specifications for each web service, including details about parameter requirements, are provided.

...


Description

URI

http://host_name/uc/resources/taskinstance/ops-task-insert

HTTP Method

POST

Description

Insert a task into a Workflow with dependencies.

Authentication

HTTP Basic

Example URI

http://localhost:8080/uc/resources/taskinstance/ops-task-insert

Consumes Content-Type

application/xml, application/json

Produces Content-Type

application/xml, application/json

Request Example

See Insert a Task into a Workflow with Dependencies: XML and JSON Examples.

Request Properties

See Insert a Task into a Workflow with Dependencies: Request Properties.

Response Example

See Insert a Task into a Workflow with Dependencies: XML and JSON Examples.

Anchor
Insert a Task into a Workflow with Dependencies XML and JSON Examples
Insert a Task into a Workflow with Dependencies XML and JSON Examples
Insert a Task into a Workflow with Dependencies: XML and JSON Examples

Examples

XML

JSON

Example Request


Expand
titleXML
<task-insert>
    <name>Sleep 30</name>
    <alias>Test</alias>
    <workflowInstanceId>ac2cfdd14c8c4238a4a6ecd03db41e87</workflowInstanceId>
    <predecessors> 
        <predecessor>Sleep 30</predecessor>
    </predecessors>
    <successors> 
        <successor>Sleep 60</successor>
    </successors>
    <vertexX>25</vertexX>
    <inheritTriggerTime>true</inheritTriggerTime>
    <vertexY>25</vertexY>
</task-insert>



Expand
titleJSON
{
"name": "Sleep 10",
"alias": "Test",
"workflowInstanceId": "1513717759915306953T5FNZB71S6OUF",
"predecessors": [ "Task 1" ],
"successors": [ "Sleep 60" ],
"vertexX": "25",
"inheritTriggerTime": "true",
"vertexY": "25"
}


Example Response


<pre> &lt;command-response&gt;
<command-response>
    
&lt;type&gt;create_task&lt;/type&gt;
<type>create_task</type>
    
&lt;success&gt;true&lt;/success&gt;
<success>true</success>
    
&lt;info&gt;Command
<info>Command Insert Task executed successfully against task instance "test workflow".
&lt;/info&gt;
</info>
    
&lt;errors
<errors /
&gt; &lt;
>
</command-
response&gt; </pre>
response>
Expand
titleXML
Panel
Html bobswift



panel<pre>
{
  "type": "create_task",
  "success": true,
  "info": "Command Insert Task executed successfully against task instance \"Test Workflow\".",
  "errors": ""
}
</pre>
Expand
titleJSON
Html bobswift


Anchor
Insert a Task into a Workflow with Dependencies Request Properties
Insert a Task into a Workflow with Dependencies Request Properties
Insert a Task into a Workflow with Dependencies: Request Properties

...

Anchor
List Predecessors / Successors of a Task Instance in a Workflow XML and JSON Examples
List Predecessors / Successors of a Task Instance in a Workflow XML and JSON Examples
List Predecessors / Successors of a Task Instance in a Workflow: XML and JSON Examples

XML

JSON


Expand
titleXML
<task-dependencies>
       <task-dependency>
              <condition>Success</condition>
              <name>Sleep 30</name>
              <satisfied>false</satisfied>
              <taskInstanceId>1471465078487058257PY97G57T09HKB</taskInstanceId>
              <type>predecessors</type>
              <vertexId>20</vertexId>
              <vertexName>Sleep 30</vertexName>
       </task-dependency>
       <task-dependency>
              <condition>Success</condition>
              <name>uc - Sleep 60</name>
              <satisfied>false</satisfied>
              <taskInstanceId>151371775991531795355TV2GX49AWD6</taskInstanceId>
              <type>successors</type>
              <vertexId>2</vertexId>
              <vertexName>Sleep 60</vertexName>
       </task-dependency>



Expand
titleJSON
[ {
  "condition": {
    "value": "Success"
  },
  "name": "Sleep 30",
  "satisfied": false,
  "taskInstanceId": "1471465078487058257PY97G57T09HKB",
  "type": "Predecessor",
  "vertexId": "20",
  "vertexName": "Sleep 30"
}, {
  "condition": {
    "value": "Success"
  },
  "name": "Sleep 60",
  "satisfied": false,
  "taskInstanceId": "151371775991531795355TV2GX49AWD6",
  "type": "Successor",
  "vertexId": "2",
  "vertexName": "Sleep 60"
} ]


Anchor
List Predecessors / Successors of a Task Instance in a Workflow URI Parameters
List Predecessors / Successors of a Task Instance in a Workflow URI Parameters
List Predecessors / Successors of a Task Instance in a Workflow: URI Parameters

...