Service task

A task that uses a service, such as a web service or an automated application.

Attributes: General

Attribute Description
Model ID The unique identifier of the element within the process model.
Name The name of the element displayed in the diagram.
Documentation A description and any additional information about this element.

Attributes: Details

Attribute Description
Expression Expression to be executed when the task is started. It allows you to interact with the backend by calling services, making calculations, and so on.
Delegate expression Must resolve to a Java object, which itself must have a class that implements either JavaDelegate or ActivityBehavior.
Class Fully qualified class name to be invoked when executing the task. The class must implement either JavaDelegate or ActivityBehavior.
Result variable The name of the variable under which to store the result of the expression evaluation.
Store as local variable Indicates whether to store the result variable as a local variable.
Class fields Allows you to inject field values into your delegated class.

Attributes: Execution

Attribute Description
Asynchronous When enabled, the activity will be started as an asynchronous job.
Execution listeners Allows you to invoke Java logic after certain events.
Skip expression Defines an expression which is evaluated before executing the task. If it evaluates to true, the task is skipped.

Attributes: Multi Instance

Attribute Description
Multi instance type Determines if multiple instances of this activity are created. There are three choices:
  • None - default, only one instance is created.
  • MI parallel - activities are created in parallel. This is good practice for User Tasks.
  • MI sequential - activities are created sequentially. This is good practice for Service Tasks.
Collection The number of instances is determined by the elements of a collection. For each element in the collection, a new instance is created.
Element variable The variable under which each element is available to the newly created instance.
Element index variable The variable under which the current number of iterations is stored.
Cardinality An expression or numeric value which determines how many instances are created.
Completion condition An expression which, if evaluated to true, stops the creation of new instances.

Attributes: Visual

Attribute Description
Font color The font color of the element in the diagram.
Font size The font size of the element in the diagram.
Font style The font style of the element in the diagram.
Font weight The font weight of the element in the diagram.
Background color The background color of the element in the diagram.
Border color The border color of the element in the diagram.