Skip to content

Commit fa5eb54

Browse files
committed
Refactoring (Issue #942)
1 parent c012b7e commit fa5eb54

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

imixs-workflow-core/src/main/java/org/imixs/workflow/bpmn/BPMNConditionalEvent.java renamed to imixs-workflow-engine/src/main/java/org/imixs/workflow/engine/ConditionalExpressionEvent.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
package org.imixs.workflow.bpmn;
1+
package org.imixs.workflow.engine;
22

33
import org.imixs.workflow.ItemCollection;
44

55
/**
6-
* CDI Event for condition evaluation in BPMN process flows.
6+
* CDI Event for conditional expression in BPMN process flows.
77
* <p>
88
* This event enables extensibility by allowing registered observers to
9-
* transform or interpret conditions before they are evaluated by the
10-
* RuleEngine. This design pattern decouples the core BPMN engine from specific
11-
* condition implementations.
9+
* transform or interpret conditions in a BPMN SequenceFlow before they are
10+
* evaluated by the RuleEngine. This design pattern decouples the core BPMN
11+
* engine from specific condition implementations.
1212
* <p>
1313
* In this way observers can implement domain-specific condition logic or track
1414
* condition evaluations
@@ -17,7 +17,7 @@
1717
* @author [Your Name]
1818
* @version 1.0
1919
*/
20-
public class BPMNConditionalEvent {
20+
public class ConditionalExpressionEvent {
2121

2222
/**
2323
* The condition expression from the BPMN model. Can be JavaScript code or any
@@ -42,7 +42,7 @@ public class BPMNConditionalEvent {
4242
* @param condition the condition expression from the BPMN SequenceFlow
4343
* @param workitem the workflow item providing context and data
4444
*/
45-
public BPMNConditionalEvent(String condition, ItemCollection workitem) {
45+
public ConditionalExpressionEvent(String condition, ItemCollection workitem) {
4646
this.condition = condition;
4747
this.workitem = workitem;
4848
}

imixs-workflow-engine/src/main/java/org/imixs/workflow/engine/WorkflowService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import org.imixs.workflow.Plugin;
3939
import org.imixs.workflow.WorkflowContext;
4040
import org.imixs.workflow.WorkflowKernel;
41-
import org.imixs.workflow.bpmn.BPMNConditionalEvent;
4241
import org.imixs.workflow.bpmn.BPMNUtil;
4342
import org.imixs.workflow.engine.plugins.ResultPlugin;
4443
import org.imixs.workflow.exceptions.AccessDeniedException;
@@ -124,7 +123,7 @@ public class WorkflowService implements WorkflowContext {
124123
protected Event<ProcessingEvent> processingEvents;
125124

126125
@Inject
127-
protected Event<BPMNConditionalEvent> bpmnConditionEvents;
126+
protected Event<ConditionalExpressionEvent> bpmnConditionEvents;
128127

129128
@Inject
130129
protected Event<TextEvent> textEvents;
@@ -1409,7 +1408,7 @@ public String evalConditionalExpression(String expression, ItemCollection workit
14091408
String finalExpression = expression;
14101409
// Fire CDI event - observers can transform the expression
14111410
if (bpmnConditionEvents != null) {
1412-
BPMNConditionalEvent event = new BPMNConditionalEvent(expression, workitem);
1411+
ConditionalExpressionEvent event = new ConditionalExpressionEvent(expression, workitem);
14131412
bpmnConditionEvents.fire(event);
14141413
// Update expression...
14151414
finalExpression = event.getCondition();

0 commit comments

Comments
 (0)