Generate stable ids for subflow instance internal nodes

Fixes #3996 #3889
This commit is contained in:
Nick O'Leary
2023-03-03 18:46:49 +00:00
parent 683ae4f067
commit e91981207f
2 changed files with 21 additions and 10 deletions

View File

@@ -474,7 +474,7 @@ class Subflow extends Flow {
*/
function createNodeInSubflow(subflowInstanceId, def) {
let node = clone(def);
let nid = redUtil.generateId();
let nid = `${subflowInstanceId}-${node.id}` //redUtil.generateId();
// console.log("Create Node In subflow",node._alias, "--->",nid, "(",node.type,")")
// node_map[node.id] = node;
node._alias = node.id;