Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public class FlowBuilder<Q> {

private EndState stoppedState;

private int stepCounter = 0;

private int flowCounter = 0;

private int decisionCounter = 0;

private int splitCounter = 0;
Expand Down Expand Up @@ -279,7 +283,7 @@ private State createState(Object input) {
if (input instanceof Step) {
if (!states.containsKey(input)) {
Step step = (Step) input;
states.put(input, new StepState(prefix + step.getName(), step));
states.put(input, new StepState(prefix + "step" + (stepCounter++), step));
}
result = states.get(input);
}
Expand All @@ -292,7 +296,7 @@ else if (input instanceof JobExecutionDecider) {
}
else if (input instanceof Flow) {
if (!states.containsKey(input)) {
states.put(input, new FlowState((Flow) input, prefix + ((Flow) input).getName()));
states.put(input, new FlowState((Flow) input, prefix + "flow" + (flowCounter++)));
}
result = states.get(input);
}
Expand Down