|
|
|
@ -86,7 +86,7 @@ function getProcessPaths(data, workflow) { |
|
|
|
|
const newMergedData = [...mergedData] |
|
|
|
|
newMergedData.push({ |
|
|
|
|
processId: currentNode.id.toString(), |
|
|
|
|
condition: convertStringToJson(currentNode.conditions) |
|
|
|
|
// condition: convertStringToJson(currentNode.conditions)
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -223,7 +223,7 @@ function getProcessPathsSubFlow(data, subFlowIdTemp, workflow) { |
|
|
|
|
const newMergedData = [...mergedData] |
|
|
|
|
newMergedData.push({ |
|
|
|
|
processId: currentNode.id.toString(), |
|
|
|
|
condition: convertStringToJson(currentNode.conditions) |
|
|
|
|
// condition: convertStringToJson(currentNode.conditions)
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -232,7 +232,12 @@ function getProcessPathsSubFlow(data, subFlowIdTemp, workflow) { |
|
|
|
|
) { |
|
|
|
|
// allPaths.push(newPath.map(n => n.id));
|
|
|
|
|
if (isUniquePath(newPath)) { |
|
|
|
|
subTreePath.push({ path: newPath.map(n => n.id).join(","), data: newMergedData }); |
|
|
|
|
subTreePath.push( |
|
|
|
|
{ |
|
|
|
|
path: newPath.map(n => n.id).join(","), |
|
|
|
|
// data: newMergedData
|
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
// console.timeEnd(date);
|
|
|
|
|
return; |
|
|
|
@ -259,7 +264,13 @@ function getProcessPathsSubFlow(data, subFlowIdTemp, workflow) { |
|
|
|
|
if (isUniquePath(newPath)) { |
|
|
|
|
// allPaths.push({path:newPath.map(n => n.id),data:newMergedData});
|
|
|
|
|
|
|
|
|
|
invalidSubPathsWithoutEnding.push({ path: newPath.map(n => n.id), data: newMergedData ,error:"هیچ پروسس پایانی برای این ورک فلو وجود ندارد"}); |
|
|
|
|
invalidSubPathsWithoutEnding.push( |
|
|
|
|
{ |
|
|
|
|
path: newPath.map(n => n.id), |
|
|
|
|
// data: newMergedData,
|
|
|
|
|
error: "هیچ پروسس پایانی برای این ورک فلو وجود ندارد" |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|