Class ConditionalExpressionEvent

java.lang.Object
org.imixs.workflow.engine.ConditionalExpressionEvent

public class ConditionalExpressionEvent extends Object
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 Details

    • ConditionalExpressionEvent

      public ConditionalExpressionEvent(String condition, ItemCollection workitem)
      Creates a new BPMNConditionEvent.
      Parameters:
      condition - the condition expression from the BPMN SequenceFlow
      workitem - the workflow item providing context and data
  • Method Details

    • getCondition

      public String getCondition()
      Gets the original condition expression.
      Returns:
      the condition as defined in the BPMN model
    • setCondition

      public void setCondition(String condition)
      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

      public ItemCollection getWorkitem()
      Gets the workflow item being processed. Observers use this to access data needed for condition transformation.
      Returns:
      the ItemCollection containing workflow data