This adapter provides interface-based access to human tasks in Business Processes using Technical Processes. It provides an interface that makes modeled tasks and human interaction available at the process level. This enables the connection of customer-specific Web Apps to processes that are modeled with BPMN or the direct connection of any third-party systems to the central process control of the X4 BPMS.
To access the adapter, the logged-in user is used in X4 Web Apps.
Properties
|
|
Describes which operation the adapter performs. Possible values:
|
Parameters
|
|
Main class of the adapter (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 are returned. Possible values: Any number |
|
|
Offset for retrieving the task list The value is optional. If the parameter is not set, all tasks are returned. Possible values: Any number |
|
|
Required. State filter for retrieving the task list Possible values:
|
|
|
UUID of the task Possible values: Valid UUID, such as |
|
|
User to be used for debugging when there is no login in X4 Web Apps Possible values: Valid user login, e.g. |
|
|
Groups to be used for debugging when there is no login in X4 Web Apps Possible values:
|
|
|
Version of the data format used Possible values:
|
Status values
|
|
The operation was successful. |
|
|
The operation could not be performed. |
Input
No input is required for the following operations:
-
GetAllTasks -
GetTask -
CancelTask
The following operations expect an XML document with the following structure as input:
-
Operation
EditTaskXML<?xml version="1.0" encoding="UTF-8"?> <EditTask> <Offer> 150 Mio. €</Offer> </EditTask>
-
Operation
CloseTaskXML<?xml version="1.0" encoding="UTF-8"?> <CloseTask> <MarketValue>120 Mio. €</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
With the CancelTask operation, the adapter issues the input document as output.
The following operations return an XML document with the following structure as output:
-
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,DeclineTask, andForwardTaskXML<?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 Mio. €</MarketValue> <Offer>150 Mio. €</Offer> </BusinessData> </Task>