Exporting and importing flows

Follow the instructions to export and import your flows in Event Processing.

Exporting flows

Export your flow to the format that you require. Exported flows can be used as a backup of your work items you created in Event Processing, and they can be imported later to reuse in other Event Processing instances, as a starting point for authoring new flows, or for running the flows in Flink instances.

You can export your flow in the following formats:

Export format Exported file Sensitive credentials Additional comments
Event Processing 1.2.3 icon JSON and configuration YAML <flow-name>.zip file that contains flow.json and config.yaml Sensitive values are redacted. For deploying jobs customized for production or test environments, by using the command-line interface, possibly as part of a CI/CD pipeline.
JSON <flow-name>.json Contains credentials For backing up and sharing flows with others.
SQL <flow-name>.sql Sensitive values are redacted. - For deploying jobs by using the Flink SQL client or the Apache SQL Runner sample.

- Cannot be imported into the Event Processing UI.

Notes:

  • The credentials used for the configuration of the Kafka, JDBC, and HTTP connectors are redacted in the JSON and configuration YAML and SQL export formats, except for the HTTP connector when used in SQL processor nodes.
  • Exporting a flow as JSON and configuration YAML or as SQL requires the following prerequisites to be met:
    • Source nodes are connected to the same graph.
    • Connected nodes are configured and valid. A valid graph has a green checkbox green checkbox for all configured nodes.
    • Connected nodes define a graph that ends with only one node. Additionally, for exporting as JSON and configuration YAML, the terminal node must be an event destination node.

To export a flow, complete the following steps:

  1. Go to the Event Processing home page.
  2. Find the flow that you want to export.
  3. In the tile of the flow you want to export, click the Options icon options icon and then select Export to open the Export dialog.
  4. Choose the export format.
  5. Click Export.

Event Processing 1.2.3 icon The Export features are also available in More options More options icon next to Run flow in the navigation banner of the canvas.

Importing flows

Flows that are exported in JSON format can be imported in the Event Processing UI to reuse any number of times.

To import a flow, complete the following steps:

  1. Go to the Event Processing home page.
  2. In the Create a new flow card, click Import to open the Import a flow dialog.
  3. In Upload files, drag your files in to the dialog or upload the file that you want to import.
  4. After your file is uploaded, click Create to import your flow.

Note: Flows that you import are saved by using their flow name at export time. You can rename your file for easier identification.