We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 680d552 commit 820c442Copy full SHA for 820c442
utils/src/main/java/io/serverlessworkflow/utils/WorkflowUtils.java
@@ -320,10 +320,9 @@ public static long getNumOfEndStates(Workflow workflow) {
320
}
321
DefaultConditionDefinition defaultCondition = switchState.getDefaultCondition();
322
if (defaultCondition != null) {
323
- count = defaultCondition.getEnd() != null ? 1 : 0;
+ count = (defaultCondition.getEnd() != null) ? count + 1 : count;
324
325
326
-
327
return count;
328
} else {
329
return DEFAULT_STATE_COUNT;
0 commit comments