Search before asking
Description
There are two kinds of attribute to keep pre node info in TaskNode:
private String preTasks;
private List<Long> depList;
And they are be assigned at the same time:
public void setPreTasks(String preTasks) {
this.preTasks = preTasks;
this.depList = JSONUtils.toList(preTasks, Long.class);
}
So, we can use depList to replace preTasks when iterater pre task node.
e.g graphHasCycle method in WorkflowDefinitionServiceImpl
Are you willing to submit a PR?
Code of Conduct