Do not call getName on step/flow - they may be Job/Step scoped proxies
Resolves #857
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
fae6c5b096
commit
0c500794f6
@@ -70,6 +70,10 @@ public class FlowBuilder<Q> {
|
||||
|
||||
private EndState stoppedState;
|
||||
|
||||
private int stepCounter = 0;
|
||||
|
||||
private int flowCounter = 0;
|
||||
|
||||
private int decisionCounter = 0;
|
||||
|
||||
private int splitCounter = 0;
|
||||
@@ -282,7 +286,7 @@ public class FlowBuilder<Q> {
|
||||
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);
|
||||
}
|
||||
@@ -295,7 +299,7 @@ public class FlowBuilder<Q> {
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user