You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we drag and drop a workflow that has tasks with position (metadata > positionTop/positionLeft tags) and tasks without position, an error occurs and the workflow isn't imported.
What happens is that in layoutNewElements function (Workflow view), we draw a graph of tasks that don't have positions. If a task has a position, we don't add it to this graph but some tasks might depend on it. This makes incoherent graph that can't be drawn (error when calling : dagre.layout().nodes(nodes).edges(edges).nodeSep(50).rankSep(100).run())
I tried adding a loop to check if one task doesn't have a position we add all the tasks in the loop (cf file joined) but this has side effects: as it loops through all tasks, the ones that are already in the studio (workflow designer) are re-positioned.
The text was updated successfully, but these errors were encountered:
When we drag and drop a workflow that has tasks with position (metadata > positionTop/positionLeft tags) and tasks without position, an error occurs and the workflow isn't imported.
What happens is that in layoutNewElements function (Workflow view), we draw a graph of tasks that don't have positions. If a task has a position, we don't add it to this graph but some tasks might depend on it. This makes incoherent graph that can't be drawn (error when calling : dagre.layout().nodes(nodes).edges(edges).nodeSep(50).rankSep(100).run())
I tried adding a loop to check if one task doesn't have a position we add all the tasks in the loop (cf file joined) but this has side effects: as it loops through all tasks, the ones that are already in the studio (workflow designer) are re-positioned.
The text was updated successfully, but these errors were encountered: