Snippets can be created from an existing workflow by selecting the elements and the arrows connecting the selected elements. Next, you must right-click in the center of one of the selected elements. This will bring up the menu shown in figure 8.29.
When you have clicked on "Install as snippet" the dialog shown in figure 8.30 will appear. The dialog allows you to name the snippet and view the selected elements that are included in the snippet. You are also asked to specify whether or not you want to include the configuration of the selected elements and save it in the snippet or to only save the elements in their default configuration.
Figure 8.30: In the "Create a new snippet" dialog you can name the snippet and select whether or not you would like to include the configuration. In the right-hand side of the dialog you can see the elements that are included in the snippet.
Click on the button labeled OK. This will install your snippet and the installed snippet will now appear in the Side Panel under the "Snippets" tab (see figure 8.31)
Right-clicking on the installed snippet in the Side Panel will bring up the following options (figure 8.32):
- Add Adds the snippet to the current open workflow
- View Opens a dialog showing the snippet, which allows you to see the structure
- Rename Allows renaming of the snippet.
- Configure Allows to change the configuration of the installed snippet.
- Uninstall Removes the snippet.
- Export Exports the snippet to ones computer, allowing to share it.
- Migrate Migrates the snippet (if migration is required).
If you right-click on the top-level folder you get the options shown in figure 8.33:
- Create new group Creates a new folder under the selected folder.
- Remove group Removes the selected group (not available for the top-level folder)
- Rename group Renames the selected group (not available for the top-level folder)
In the Side Panel it is possible to drag and drop a snippet between groups to be able to rearrange and order the snippets as desired. An exported snippet can either be installed by clicking on the 'Install from file' button or by dragging and dropping the exported file directly into the folder where it should be installed.