Package com.orchestranetworks.workflow
Class Condition
java.lang.Object
com.orchestranetworks.workflow.Condition
Condition node; its purpose is to evaluate which fork the process must take.
This abstract class must be implemented in order to define a specific exclusive choice in the context of a process control flow.
Life cycle
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).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
evaluateCondition
(ConditionContext aContext) This method is automatically executed when the control flow reaches an exclusive choice (or condition).
-
Constructor Details
-
Condition
public Condition()
-
-
Method Details
-
evaluateCondition
This method is automatically executed when the control flow reaches an exclusive choice (or condition).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.- Throws:
OperationException
-