Skip to content

Commit eff8d3f

Browse files
authored
Merge pull request FlexBE#19 from Deleh/fix/concurrent_container_outcomes_check
Throw Error if Concurrent Container has Outcome `preempted`
2 parents 66224db + 214576a commit eff8d3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/_helper/checking.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ Checking = new (function() {
147147
return "state machine " + statemachine.getStatePath() + " has no initial state";
148148
}
149149

150+
if (statemachine.isConcurrent() && statemachine.getOutcomes().contains("preempted")) {
151+
return "state machine " + statemachine.getStatePath() + " has outcome 'preempted' which is not permitted for concurrency statemachines";
152+
}
153+
150154
for (var i = 0; i < states.length; i++) {
151155
var error_string = undefined;
152156
if (states[i] instanceof Statemachine) {

0 commit comments

Comments
 (0)