[cherry-pick][Fix-7019][MasterServer] Fix the issue with failing to save and run the process that contains the switch task (#7068)
* [Fix-7019][MasterServer] Fix the issue with failing to save and run the process that contains the switch task. (#7046) * fix switch next code Co-authored-by: Hua Jiang <jianghuachinacom@163.com> Co-authored-by: caishunfeng <534328519@qq.com>
This commit is contained in:
parent
77f4b0aaf5
commit
26d2c52c25
|
|
@ -29,6 +29,8 @@ public class SwitchParameters extends AbstractParameters {
|
|||
private DependentRelation dependRelation;
|
||||
private String relation;
|
||||
private List<String> nextNode;
|
||||
private int resultConditionLocation;
|
||||
private List<SwitchResultVo> dependTaskList;
|
||||
|
||||
@Override
|
||||
public boolean checkParameters() {
|
||||
|
|
@ -40,9 +42,6 @@ public class SwitchParameters extends AbstractParameters {
|
|||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
private int resultConditionLocation;
|
||||
private List<SwitchResultVo> dependTaskList;
|
||||
|
||||
public DependentRelation getDependRelation() {
|
||||
return dependRelation;
|
||||
}
|
||||
|
|
@ -84,6 +83,10 @@ public class SwitchParameters extends AbstractParameters {
|
|||
List<String> nextNodeList = new ArrayList<>();
|
||||
nextNodeList.add(String.valueOf(nextNode));
|
||||
this.nextNode = nextNodeList;
|
||||
} else if (nextNode instanceof Number) {
|
||||
List<String> nextNodeList = new ArrayList<>();
|
||||
nextNodeList.add(nextNode.toString());
|
||||
this.nextNode = nextNodeList;
|
||||
} else {
|
||||
this.nextNode = (ArrayList) nextNode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue