File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
utils/src/main/java/io/serverlessworkflow/utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
/** Provides common utility methods to provide most often needed answers from a workflow */
23
23
public final class WorkflowUtils {
24
- private static int DEFAULT_STATE = 0 ;
24
+ private static int DEFAULT_STARTING_STATE_POSITION = 0 ;
25
25
/**
26
- * Gets State matching Start state.If start is not present returns first state otherwise Returns
26
+ * Gets State matching Start state.If start is not present returns first state otherwise returns
27
27
* null
28
28
*
29
29
* @param workflow workflow
@@ -36,7 +36,7 @@ public static State getStartingState(Workflow workflow) {
36
36
37
37
Start start = workflow .getStart ();
38
38
if (start == null ) {
39
- return workflow .getStates ().get (DEFAULT_STATE );
39
+ return workflow .getStates ().get (DEFAULT_STARTING_STATE_POSITION );
40
40
} else {
41
41
return workflow .getStates ().stream ()
42
42
.filter (state -> state .getName ().equals (start .getStateName ()))
You can’t perform that action at this time.
0 commit comments