Package org.imixs.workflow.engine
Class ConditionalExpressionEvent
java.lang.Object
org.imixs.workflow.engine.ConditionalExpressionEvent
CDI Event for conditional expression in BPMN process flows.
This event enables extensibility by allowing registered observers to transform or interpret conditions in a BPMN SequenceFlow before they are evaluated by the RuleEngine. This design pattern decouples the core BPMN engine from specific condition implementations.
In this way observers can implement domain-specific condition logic or track condition evaluations
- Version:
- 1.0
- Author:
- [Your Name]
-
Constructor Summary
ConstructorsConstructorDescriptionConditionalExpressionEvent(String condition, ItemCollection workitem) Creates a new BPMNConditionEvent. -
Method Summary
Modifier and TypeMethodDescriptionGets the original condition expression.Gets the workflow item being processed.voidsetCondition(String condition) Sets the transformed condition result.
-
Constructor Details
-
ConditionalExpressionEvent
Creates a new BPMNConditionEvent.- Parameters:
condition- the condition expression from the BPMN SequenceFlowworkitem- the workflow item providing context and data
-
-
Method Details
-
getCondition
Gets the original condition expression.- Returns:
- the condition as defined in the BPMN model
-
setCondition
Sets the transformed condition result. Called by observers to provide a new expression that can be evaluated by the RuleEngine. The final condition evaluated by the ModelManager should contain valid VM Script that evaluates to a boolean.- Parameters:
condition-
-
getWorkitem
Gets the workflow item being processed. Observers use this to access data needed for condition transformation.- Returns:
- the ItemCollection containing workflow data
-