public abstract class Condition extends Object
This abstract class must be implemented in order to define a specific exclusive choice in the context of a process control flow.
This class is state-less, it is instantiated each time
the control flow of the process instance has reached a condition node.
Example of Condition.
It is recommended to use ConditionBean
instead, because ConditionBean
allows to declare input and output parameters. By this way, the bean is more dynamic and reusable
(no dependent on data context variables).
UserTask
,
ScriptTaskBean
,
ScriptTask
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
evaluateCondition(ConditionContext aContext)
This method is automatically executed when the control
flow reaches an exclusive choice (or condition).
|
public abstract boolean evaluateCondition(ConditionContext aContext) throws OperationException
It is not recommended for an implementation of this method
to have a persistent side-effect on the repository. For automatic
updates on the repository, the class ScriptTask
should be used instead.
OperationException