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 flows or Event Processing instances.
You can export your flow as a JSON or an SQL file. Flows that are exported as SQL can be updated and deployed as a Flink job in development or production environments.
Note: Flows that are exported as SQL cannot be imported to the Event Processing UI. To import flows, the files must be in JSON format.
To export a flow, follow these steps:
- Go to the Event Processing home page.
- Find the flow that you want to export.
- In the flow you want to export, click the Options icon and then select Export to open the Export dialog.
-
Choose the export format. You can export as a JSON or an SQL file.
Exporting a file 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 for all configured nodes.
- Connected nodes define a graph that ends with only one node.
- Click Export.
The flow is downloaded as a <flowname>.sql
or a <flowname>.json
file based on the format that you selected.
Importing flows
Flows that are in JSON format can be imported to reuse any number of times.
To import a flow, follow these steps:
- Go to the Event Processing home page.
- In the Create a new flow card, click Import to open the Import a flow dialog.
- In Upload files, drag your files in to the dialog or upload the file that you want to import.
- After your file is uploaded, click Create to import your flow.
Note: By default, flows that you import are saved as Untitled flow
. You can rename your file for easier identification.