Skip to content

Commit

Permalink
[Fix #3789] Accept join node on compensation states (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Nov 22, 2024
1 parent 4d1a3d7 commit 26f9c10
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private WorkflowElementIdentifier handleCompensation(RuleFlowNodeContainerFactor
Transition transition = compensation.getState().getTransition();
compensation.handleTransitions(embeddedSubProcess, transition, compensation.getNode());
compensation.handleConnections(embeddedSubProcess);
return compensation.getNode().getNode().getId();
return compensation.getOutgoingNode().getNode().getId();
}

public void handleState() {
Expand Down Expand Up @@ -335,6 +335,10 @@ private void connectEnd(RuleFlowNodeContainerFactory<?, ?> factory) {
return node;
}

public final NodeFactory<?, ?> getOutgoingNode() {
return outgoingNode;
}

public S getState() {
return state;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,18 @@
"errorRef": "OddException",
"transition": "OddHandler"
}
]
],
"transition": "compensating_even_more"
},
{
"name": "compensating_even_more",
"usedForCompensation" : true,
"type": "parallel",
"branches": [
{"name": "branch1", "actions" :[]},
{"name": "branch2", "actions" :[]}

]
},
{ "name": "OddHandler",
"type":"inject",
Expand Down

0 comments on commit 26f9c10

Please sign in to comment.