Task Instance Web Services

Task Instance Web Services

Overview

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

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

For RESTful-based web services for Workflow Task Instance operations, see Workflow Task Instance Web Services.

Cancel a Task Instance

Note

A Web Service Task instance cannot be cancelled if the specified Protocol is SOAP.

 

Description

URI

http://host_name/uc/resources/taskinstance/cancel

HTTP Method

POST

Description

Cancel a task instance.

Example URI

http://localhost:8080/uc/resources/taskinstance/cancel

Authentication

HTTP Basic

Consumes Content-Type

application/xml, application/json

Produces Content-Type

application/xml, application/json

Example Request

See Cancel a Task Instance: XML and JSON Examples.

Request Properties

See Cancel a Task Instance: Request Properties.

Example Response

See Cancel a Task Instance: XML and JSON Examples.

Cancel a Task Instance: XML and JSON Examples

Examples

XML

JSON

Example Request

<task-instance> <id>1464817327170011848D633V6106ENQ7</id> </task-instance>


or

<task-instance> <name>Timer 60</name> <criteria>Newest Instance</criteria> <workflowInstanceName>test</workflowInstanceName> </task-instance>

{ "name": "Timer 60", "criteria": "Newest Instance", "workflowInstanceName": "test" }


Example Response

<command-response> <type>cancel</type> <success>true</success> <info>Command Cancel executed successfully against task instance "test".</info> <errors /> </command-response>

{ "type": "cancel", "success": true, "info": "Command Cancel executed successfully against task instance \"Timer 60\".", "errors": "" }

Cancel a Task Instance: Request Properties

Property

UI Field Name

Description

Specifications

Required

Mutually Exclusive With

criteria

n/a

Specific task instance with this task instance name that you want to cancel.

Valid values:

 

  • As String = Oldest Active Instance, As Value = 1

  • As String = Newest Active Instance, As Value = 2

  • As String = Oldest Instance, As Value = 3

  • As String = Newest Instance, As Value = 4

Default is Oldest Active Instance (1).
 

 

Note

Values with an underscore characters ( _ ) instead of spaces also are supported (for example, oldest_active_instance).

N

 

id

n/a

sys_id used within the Controller to identify this task instance.

 

Y
(unless name
is specified)

name

name

Instance Name

Name of the task instance.

 

Y
(unless id
is specified)

id

workflowInstanceName

Workflow

Name of the parent Workflow of the task instance.

You can select to display the Workflow field on the Activity Monitor and/or Task Instances List; it is not displayed in the Task Instance Details.

N

 

Clear All Dependencies

 

Description

URI

http://host_name/uc/resources/taskinstance/cleardependencies

HTTP Method

POST

Description

Clears all dependencies of a task instance.

Example URI

http://localhost:8080/uc/resources/taskinstance/cleardependencies

Authentication

HTTP Basic

Consumes Content-Type

application/xml, application/json

Produces Content-Type

application/xml, application/json

Example Request

See Clear All Dependencies: XML and JSON Examples.

Request Properties

See Clear All Dependencies: Request Properties.

Example Response

See Clear All Dependencies: XML and JSON Examples.

Clear All Dependencies: XML and JSON Examples

Examples

XML

JSON

Example Request

<task-instance> <id>1464817327170011848D633V6106ENQ7</id> </task-instance>


or

<task-instance> <name>Timer 60</name> <criteria>Newest Instance</criteria> <workflowInstanceName>test</workflowInstanceName> </task-instance>

 

{ "name": "Timer 60", "criteria": "Newest Instance", "workflowInstanceName": "Test" }

Example Response

<command-response> <type>clear_all_dependencies</type> <success>true</success> <info>Command Clear All Dependencies executed successfully against task instance "Timer 60".</info> <errors /> </command-response>

{ "type": "clear_all_dependencies", "success": true, "info": "Command Clear All Dependencies executed successfully against task instance \"Timer 60\".", "errors": "" }

Clear All Dependencies: Request Properties

Property

UI Field Name

Description

Specifications

Required

Mutually Exclusive With

criteria

n/a

Specific task instance with this task instance name for which
you want to clear all dependencies.

Valid values:

 

  • As String = Oldest Active Instance, As Value = 1

  • As String = Newest Active Instance, As Value = 2

  • As String = Oldest Instance, As Value = 3

  • As String = Newest Instance, As Value = 4

Default is Oldest Active Instance (1).
 

 

Note

Values with an underscore characters ( _ ) instead of spaces also are supported (for example, oldest_active_instance).

N

 

id

n/a

sys_id used within the Controller to identify this task instance.

 

Y
(unless name
is specified)

name

name

Instance Name

Name of the task instance.

 

Y
(unless id
is specified)

id

workflowInstanceName

Workflow

Name of the parent Workflow of the task instance.

You can select to display the Workflow field on the Activity Monitor and/or Task Instances List; it is not displayed in the Task Instance Details.

N

 

Clear Exclusive Dependencies

 

Description

URI

http://host_name/uc/resources/taskinstance/clearexclusive

HTTP Method

POST

Description

Clears all exclusive dependencies of a task instance.

Authentication

HTTP Basic

Example URI

http://localhost:8080/uc/resources/taskinstance/clearexclusive

Consumes Content-Type

application/xml, application/json

Produces Content-Type

application/xml, application/json

Example Request

See Clear Exclusive Dependencies: XML and JSON Examples.

Request Properties

See Clear Exclusive Dependencies: Request Properties.

Example Response

See Clear Exclusive Dependencies: XML and JSON Examples.

Clear Exclusive Dependencies: XML and JSON Examples

Examples

XML

JSON

Example Request

<task-instance> <id>1464817327170011848D633V6106ENQ7</id> </task-instance>


or

<task-instance> <name>Timer 60</name> <criteria>Newest Instance</criteria> <workflowInstanceName>test</workflowInstanceName> </task-instance>

{ "name": "Timer 60", "criteria": "Newest Instance", "workflowInstanceName": "Test" }

Example Response

<command-response> <type>clear_exclusive</type> <success>true</success> <info>Command Clear Exclusive executed successfully against task instance "Timer 60".</info> <errors /> </command-response>

{ "type": "clear_exclusive", "success": true, "info": "Command Clear Exclusive executed successfully against task instance \"Timer 60\".", "errors": "" }

Clear Exclusive Dependencies: Request Properties

Property

UI Field Name

Description

Specifications

Required

Mutually Exclusive With

criteria

n/a

Specific task instance with this task instance name for which you want to clear exclusive dependencies.

Valid values:

 

  • As String = Oldest Active Instance, As Value = 1

  • As String = Newest Active Instance, As Value = 2

  • As String = Oldest Instance, As Value = 3

  • As String = Newest Instance, As Value = 4

Default is Oldest Active Instance (1).
 

 

Note

Values with an underscore characters ( _ ) instead of spaces also are supported (for example, oldest_active_instance).

N

 

id

n/a

sys_id used within the Controller to identify this task instance.

 

Y
(unless name
is specified)

name

name

Instance Name

Name of the task instance.

 

Y
(unless id
is specified)

id

workflowInstanceName

Workflow

Name of the parent Workflow of the task instance.

You can select to display the Workflow field on the Activity Monitor and/or Task Instances List; it is not displayed in the Task Instance Details.