function createNodeInSubflow(subflowInstanceId, def) {
    let node = jsonClone(def);
    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;
    node.id = nid;
    node.z = subflowInstanceId;
    return node;
}
Clone a node definition for use within a subflow instance.
Give the node a new id and set its _alias property to record
its association with the original node definition.
@param  {[type]} subflowInstanceId [description]
@param  {[type]} def               [description]
@return {[type]}                   [description]