February 2019
Intermediate to advanced
446 pages
10h 55m
English
System tasks can be created in a similar fashion to how normal tasks are created. You don't need to create and register TaskDef for system tasks as these are pre-built. The important thing is setting the type field that determines whether it is a system task or not. We have used t1.setWorkflowTaskType(Type.DECISION); in the sample code. You can also write t1.setType(Type.DECISION);.
In the reference application, we have created the DECISION system task, as shown in the following code. System tasks may have a few different fields that are required by a specific task. As for DECISION, setCaseValueParam() is required to determine the field that determines the case.
Another factor for a DECISION
Read now
Unlock full access