Service Task
Introduction
In Flowable, Service Tasks are used to perform some form of "technical" task. Whenever you want to perform calculations, trigger some action within your application’s back end or integrate with another system, it often involves Service Tasks. Most custom tasks such as the Script task are specialized versions of Service Tasks. This is possible thanks to the extensible nature of the CMMN standard which allows us to create our own tasks based on an existing type.
It is possible to configure Service Tasks in four ways:
- Use a Value Expression.
- Specifying a class that implements
PlanItemJavaDelegate
orPlanItemFutureJavaDelegate
. - Evaluating an expression that resolves to a delegation object.
- Invoking a method expression.
In many cases it makes sense to store the result of an operation carried out by a Service Task. For that matter, you can specify a result variable.
Properties
:::palette-item com.flowable.design:flowable-core-palette com/flowable/palette/core.case.palette ServiceTask