Package com.orchestranetworks.workflow
Class Condition
- java.lang.Object
-
- com.orchestranetworks.workflow.Condition
-
public abstract class Condition extends Object
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
ConditionBeaninstead, becauseConditionBeanallows to declare input and output parameters. By this way, the bean is more dynamic and reusable (no dependent on data context variables).- See Also:
UserTask,ScriptTaskBean,ScriptTask
-
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleanevaluateCondition(ConditionContext aContext)This method is automatically executed when the control flow reaches an exclusive choice (or condition).
-
-
-
Method Detail
-
evaluateCondition
public abstract boolean evaluateCondition(ConditionContext aContext) throws OperationException
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
ScriptTaskshould be used instead.- Throws:
OperationException
-
-