Exporting and Importing Flow Charts using XML

Using the Flux APIs, you can easily export your flow charts to XML, then import them into a different environment.

This is especially useful when moving data between environments – for example, moving a flow chart from development to production.

This is also useful for moving to a newer version of Flux that has a different database schema than your previous version. In most cases, a major or minor upgrade will require a new database schema. In those cases you can follow these steps to perform the upgrade (NOTE: if you are running a secured engine, use only the code marked "Secured Engine" in the steps below. If you are using an unsecured engine, use the "Unsecured Engine" code instead):

  1. Create a new database schema for the new Flux version.
  2. Start the old version of Flux and run the export running flow charts code below on that version. This will save all of the flow chart data to an XML file.
  3. Run the export repository flow charts code on the same Flux version, to export all repository flow charts to a separate XML file.
  4. Shut down the old version of Flux.
  5. Start the new version of Flux, making sure that it is using the new schema.
  6. Run the import running flow charts code below to import all of the flow chart data into the new version.
  7. Run the import repository code as well to import all flow charts from the repository.

 

Export Running Flow Charts

Secured Engine

The following code exports all running flow charts on a secured engine to an XML file:

Export Secured Engine Flows Expand source

Unsecured Engine

The following code exports all running flow charts on an unsecured engine to an XML file:

Export Unsecured Engine Flows Expand source

Import Running Flow Charts

Secured Engine

The following code loads an XML file and imports all running flow charts from that file onto a secured engine:

Import Secured Engine Flows Expand source

Unsecured Engine

The following code loads an XML file and imports all running flow charts from that file onto an unsecured engine:

Import Unsecured Engine Flows Expand source

Export Repository Flow Charts

Secured Engine

The following code exports all repository flow charts on a secured engine to an XML file:

Export Secured Repository Flows Expand source

Unsecured Engine

The following code exports all repository flow charts on an unsecured engine to an XML file:

Export Unsecured Repository Flows Expand source

Import Repository Flow Charts

Secured Engine

The following code loads an XML file and imports all repository flow charts from that file onto a secured engine:

Import Secured Repository Flows Expand source

Unsecured Engine

The following code loads an XML file and imports all repository flow charts from that file onto an unsecured engine:

Import Unsecured Repository Flows Expand source
 
 
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.