The orchestra_cm editor lets you add and remove nodes and flows, but not duplicate one. A node with several configured features (settings, routing, escalation timers, assignments) is tedious to recreate by hand, and a conditioned flow often wants a near-identical sibling.
Proposed solution: add two buttons.
- Clone node, beside Remove node, on every node (the start included): duplicates the node with all of its current configuration (type, label, settings, routing and feature editors) under a fresh machine name, marks the label as a copy, and opens the new row. The clone is left unwired (no flow is copied), so its machine name stays editable for an immediate rename, like a newly added node.
- Clone flow, beside Remove flow: duplicates the flow (same endpoints and condition) under a fresh id, as a starting point for a sibling branch. Offered only on a flow that has a condition, since a second always-taken edge between the same two nodes is a duplicate that could never behave differently.
Both act on the live, even unsaved, edits, so the duplicate reflects what is on screen.
Issue fork orchestra-3605375
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mably commented