List of OperationsOperations that can be handled by Task Execution API are listed below. Replace <ContextRoot> in the URLs with the Questetra BPM Suite context root you are connecting to.
Obtain form info for executing TaskThis obtains information on the input form, used for executing Tasks. When the system fails to authorize the user, the HTTP response code 401 (Unauthorized) will be sent back.
Parameter
ResponseSample:
Settings in [String] type Process Data Items
Settings in [Numeric] type Process Data Items
Settings in [Table] type Process Data Items
|
| Parameter | Description |
| workitemId * | ID of Task to be executed |
| title | Title |
| Parameters of each Process Data Item | Parameter names and specified values are the same as Message Start Events and Message Catching Intermediate Events. For details see here. |
| flow | ID of flow In case of split conditions by user selection, this specifies which flow is selected. Flow options are found within the response XML "/workitem-form/user-selects," which is obtained by the API that obtains form information. This does not have to be sent when the split condition is not by user selection. |
| saveOnly | true: save input but do not finish Task, false: Finish Task When this parameter is not specified the value is "false," so the Task will be finished. |
| qgroupId | ID of organization Information when the user's "position" must be selected for Task execution. Position options are found within the response XML "/workitem-form/executing-roles," which is obtained by the API that obtains form information. This does not have to be sent when there is no need to specify. |
Responses
Error responses are the same as Message Start Events and Message Catching Intermediate Events. For details see here.
| Element/Attribute (XPath) | Description | |
| /result | Route element of response Henceforward, "/result" is omitted | |
| @success | boolean |
Whether the operation suceeded or not |
| process-data-validation-errors | Included when there is an error in Process Data Item validation | |
| process-data-validation-errors/error | Each error | |
| process-data-validation-errors/error/key | string | Information on which input caused the error. Corresponds to parameter names |
| process-data-validation-errors/error/detail | string | Error message |
| errors | Included when there is an error in Process Data Items, other than validation | |
| errors/error | Each error | |
| errors/error/key | string | Key that indicates the type of error |
| errors/error/detail | string | Error message |
Sample (success):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<result success="true" />
Sample (failed):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<result success="false">
<process-data-validation-errors>
<error>
<key>data[4].input</key>
<detail>Please input a value over 100.0000000000.</detail>
</error>
</process-data-validation-errors>
</result>

