In this recipe, we will learn how to import and export elements from one Orchestrator to another using Orchestrator Client.
We need at least one workflow, action, or other element that we can export, delete, and import. If you have two Orchestrator servers, you can export the element on one and import into the other.
In this example, we will use a workflow to import and export an object. However, the same methods apply to all Orchestrator elements.
We will use the 00.00 BasicWorkflow
workflow of the example package in this example. Exporting also works for other elements:
.workflow
.
To import a workflow:
You can import and export single Orchestrator objects. This will only import and export the element and not its sub-elements or elements the workflow (or action) depends on. You can use a package (see the Working with packages recipe in this chapter) to export multiple workflows as well as their dependent elements. As workflows are identified by their IDs and actions by their name and module, it is important to realize that a single workflow export/import might not result in a working configuration. You can try this with the 04.03 Export-Package
workflow.
When you export an object, then it will be exported along with the SSL certificate of the Orchestrator installation (the one we created in the Package Signing Certificate section of the Important Orchestrator configurations recipe in Chapter 1, Installing and Configuring Orchestrator).
In addition to this, the element will keep its ID when exported and imported. As all IDs are unique (even across Orchestrator installations), this is an important point.
Have a look at the Working with packages recipe in this chapter and the Managing Remote Orchestrator recipe in Chapter 3, Distributed Design.