Task Management
The adapter enables interface-based access to human tasks in Business Processes via Technical Processes. It forms an interface that makes modelled tasks and human interaction available on process level. This enables the connection of customer-specific Web Apps to processes modeled with BPMN or the direct connection of any third-party system to the central process control of the X4 BPMS.
For access via the adapter, the user logged on in X4 Web Apps is used.
Properties
| Defines the operation executed by the adapter Possible values:
|
Parameters
| Main adapter class (Do not change!) Possible values: de.softproject.x4.server.bpm.casemanagement.adapter.TaskManagement: Main class (default) |
| Page size for retrieving the task list The value is optional. If the parameter is not set, all tasks will be returned. Possible values: Any number |
| Offset for retrieving the task list The value is optional. If the parameter is not set, all tasks will be returned. Possible values: Any number |
| Required. State filter for retrieving the task list Possible values:
|
| Task UUID Possible values: Valid UUID, e.g. |
| User to be used for debugging, if no logon exists in X4 Web Apps Possible values: Valid user login, e.g. |
| Version of the used data format Possible values:
|
Status values
| The operation was executed successfully |
| The operation could not be executed |
The documentation of the ReST interface can be found at http://localhost:8080/X4/X4Api/.
Input
No input is required for following operations:
GetAllTasksGetTaskCancelTask
The following operations require an XML document with the following structure as input:
Operation
EditTaskXML<?xml version="1.0" encoding="UTF-8"?> <EditTask> <Offer> 150 million €</Offer> </EditTask>
Operation
CloseTaskXML<?xml version="1.0" encoding="UTF-8"?> <CloseTask> <MarketValue>120 million €</MarketValue> <Action>Declined</Action> </CloseTask>
Operation
DeclineTaskXML<?xml version="1.0" encoding="UTF-8"?> <DeclineTask> <Comment>string</Comment> </DeclineTask>
Operation
ForwardTaskXML<?xml version="1.0" encoding="UTF-8"?> <ForwardTask> <Comment>string</Comment> <Deadline>2019-04-15T11:46:02.782Z</Deadline> <!-- The "type" attribute must contain either USER or GROUP. --> <Assignment type="USER|GROUP">string</Assignment> </ForwardTask>
Output
When the CancelTask operation is executed, the output is the input document.
The following operations output an XML document with the following structure:
Operation
GetAllTasksXML<?xml version="1.0" encoding="UTF-8"?> <Tasks> <Task created="2020-12-21T09:10:53Z" creator="System" id="81f4abb5-c2f5-418e-acf5-654304234bf4"> <Title>humantask</Title> <Owner>admin</Owner> <Assignment type="USER">admin</Assignment> <State>OPEN</State> <KeyIdentifier/> <CaseId>00860a8a-12b9-45b8-b271-ec5d42573c59</CaseId> </Task> </Tasks>
Operations
GetTask,EditTask,CloseTask,DeclineTaskandForwardTaskXML<?xml version="1.0" encoding="UTF-8"?> <Task created="2020-12-21T09:10:53Z" creator="System" id="81f4abb5-c2f5-418e-acf5-654304234bf4"> <Title>humantask</Title> <Owner>admin</Owner> <Assignment type="USER">admin</Assignment> <State>OPEN</State> <KeyIdentifier/> <CaseId>00860a8a-12b9-45b8-b271-ec5d42573c59</CaseId> <Actions> <Action displayName="done" name="Accepted"/> <Action displayName="Declined" name="Declined"/> </Actions> <DecliningAllowed>false</DecliningAllowed> <ForwardingAllowed>false</ForwardingAllowed> <Comments/> <BusinessData> <Company>Max Mustermann Inc.</Lastname> <MarketValue>100 million €</MarketValue> <Offer>150 million €</Offer> </BusinessData> </Task>