Through the work of inserting snippets into workflows, we are also improving workflow editing more broadly with the introduction of copy/paste. Improvements include:
- Broader Portability: Users can now reliably copy/paste logic between workflows not only within the same account, but also across accounts and cells. You can copy and paste individual nodes or entire workflows.
- New Workflow Version Saving Model: New tags or outcomes are not added to the account until you explicitly save the workflow version. Previously, these objects would be created immediately. This reduces the number of extra objects created during workflow editing.
- Smarter Merge: The Alloy system merges incoming logic from copy/paste with existing logic rather than overwriting:
- Thresholds are merged with “or” statements.
- Existing objects with the same names and settings are merged
- Objects with the same name but different settings or logic are duplicated with a (1) appended to the name.
- The system flags modified and added objects on paste, which allows you to confirm or undo changes before saving them.
Copy and Paste How-to
- Select the logic you want to copy. To copy an entire workflow, use keyboard shortcut Ctrl+C in the editor or select Copy Workflow in the ellipses menu. To copy a node, select Copy from the node’s ellipses menu.
- Navigate and click into the destination workflow or object.
- Use Ctrl+V or select Paste from Clipboard in the ellipses menu.
- Review any modified and added objects.
- Save.
Merge Logic Example
If your workflow contains a tag Low Risk and the incoming snippet also has a tag with the same name and settings, we will merge the tags so your logic remains centralized.
The thresholds are merged by adding an or between them: if Workflow: Low Risk had a threshold of input1 > 10 and Snippet: Low Risk had a threshold of input2 = 'hello' then your tag Low Risk will have the thresholds input1 > 10 || input2 = 'hello.'
There are cases where we can’t merge things with the same name (for example if you have a published attribute (PA) of the same name in your workflow and in the snippet, but they have different data types). In those cases we add a new PA and append (1) to the name, so you can rename it to whatever you want before saving (My PA will become My PA (1)).
Comments
0 comments
Please sign in to leave a comment.