Task

In a process, a task represents some work to do and that work can be either automated or done though an asynchronous human or machine interaction. Different type of task are available and should be used according to which goal to achieve.

None

A none task essentially do nothing. When reached during the execution of a process, nothing will invoked and process execution continues.

Send

Send task behaves like a service task. For more detailed information, please check out Service task section below.

Receive

Unsupported

User

A user task represents a task that must be accomplished by a user. When reached in the process flow, the process instance will be paused waiting for an external interaction through a process resume point. Pending process instance will be listed and resume point will be available in the Cloud Execution. You can find a model example using a user task in Trisotech Examples → Workflow modeler → Automation patterns → User task to input data

task 1
Figure 1. Cloud Execution

In a user task, a performer can be assigned. Information must be a string that contains the assignee’s email.

task 2
Figure 2. User Task Performer

If so, when the user task is reached in the process flow, an email is sent to the performer. A link is available in the email to access the form to complete the task.

task 3
Figure 3. Email Body To Complete User Task

Manual

A manual task has the same behavior as a user task.

Business Rule

A business rule task allows to use inside a task an already existing DMN model. The DMN model may not have been published to be used in a business rule task. But in order to work, a DMN model must be set.

Once it is done, when the task is reached in the process flow, the DMN model will be executed and depending on the inputs and/or outputs, a result will be provided. So, if a DMN model needs an input, it will be listed in the task inputs. When doing the data input mapping in the task, data from the process can be matched to data inputs defined from the DMN model. The same logic applies to data output. If the DMN model returns a value, it will then be available when doing the data output mapping.

task 4
Figure 4. Business Rule Task

In the figure above, a DMN model has been set. An input(number) is needed and the DMN model returns an output(string). The input is listed in the business rule task inputs and the same occurs for the output. A data mapping can then be done between data coming from the process and task’s input and output.

Script

A script task allows to insert code in the body of the task and that code will be executed when the task will be executed.

Supported script languages are: FEEL, Java.

task 5
Figure 5. Script Task (Java language)

Service

A service task is used to interact with a service through an operation on an interface.

task 6
Figure 6. Service task

Service task relies on defined operation that can be either OpenAPI or OData based and is managed as part of Operation Library.

task 7
Figure 7. Operation library

Case

Case task allows to start a new case based on linked CMMN case definition. Case task works similar to a call activity with the difference that it does not create relationship between process and case instances.