You can import event-driven or API flows into your App Connect Designer instance by using a YAML file that contains an exported flow
definition. The exported flow definition can be obtained from any App Connect Designer instance in a cluster.
About this task
Because connection details are not saved with an exported flow, you need to set up your own
accounts for each application in the flow if you do not already have one. You can add these accounts
from the Catalog page before you import the flow, or from the flow (or API) editor of the imported
flow. For information about the necessary connection details, see the How to guides for apps.
After you import the flow, you must ensure that the configuration settings for the nodes are
validated. You can also modify the flow in the flow editor or API editor if necessary. Do not
attempt to modify the YAML file before you import it.
Procedure
To import an exported flow:
- From the App Connect Designer UI, click the
Dashboard icon to open the App Connect Designer dashboard
(if not currently on display).
- From the App Connect Designer dashboard, click
to open the
Import a flow
panel.
- Specify a file or URL location for the YAML file that you want to import:
- If stored in a file system directory, select the file by using either of these methods:
- Click within the Add a YAML file boxed area to open a file browser and
locate the YAML file.
- Drag the file from its location in an open file browser into the Add a YAML
file area.
You see the file name in the File to be imported area.
- If stored on a server that is accessible from a URL, enter a valid fully qualified URL for
the YAML file in the or specify a file URL field and then click
Add file. This URL must be a public URL that does not require login
credentials. Only the HTTP and HTTPS transports are supported.
Examples:
http://www.example.com/path/Pricing%20API.yaml
https://raw.githubusercontent.com/username/myrepo/main/Pricing%20API.yaml
- Click Import.
The imported flow opens within the flow editor for an event-driven flow, or the
Define tab of the API editor for an API flow. The flow name is inherited from
the exported flow definition. If you already have an existing flow with an identical name on your
dashboard (for example, Customer API
), the imported flow is renamed by appending
_n
to its name, where n
is a number that starts from 1 (for
example, Customer API_1
).
The following example shows an imported event-driven flow within the flow editor. The flow was
validated automatically and a validation error is indicated by a warning icon , which is typically displayed on any application or toolbox nodes that require
your attention.
The following example shows the Define tab for an imported API flow.
Before you can run the flow or change its configuration to suit your requirements, you must
validate it; for example, to ensure that you are connected to the appropriate accounts and to review
the details of nodes in the flow.
- To validate an event-driven flow, go to step 5.
- To validate an API flow, go to step 6.
- Event-driven flow: Validate the flow definition:
- Resolve any validation errors as described in Validating
your flow is ready to run.
Tip: You can use auto-generated or custom sample data to
try out (or test) any configured action and verify its effect. To verify that the
configured nodes in a flow collectively produce the expected results, you can also try out the flow
before you start it. For more information, see
Testing a non-running flow with sample data.
- Start the flow by selecting Start flow from the flow
menu.
- API flow: Validate the settings for each model and its
operations:
- From the Define tab, click the
Operations tab for a model.
- For each operation, edit the flow as follows to review its configuration and resolve
any validation errors.
- Click Edit flow. A warning icon is displayed
on any nodes that require your attention.
- Ensure that the preferred accounts are selected for each action.
- Resolve any validation errors as described in Validating
your flow is ready to run.
- After updating the operation, click Done.
Tip: You can use auto-generated or custom sample data to
try out (or test) any configured action and verify its effect. To verify that the
configured nodes in a flow collectively produce the expected results, you can also try out the flow
before you start it. For more information, see
Testing a non-running flow with sample data.
- When you’ve validated all your models and operations, start the API by selecting
Start API from the flow menu.
- Test the running flow as follows:
- Event-driven flow: Complete the event activity that triggers the flow and then verify
that you can see the expected results in the target applications. For more information, see Testing a running event-driven flow.
- API flow:
Test each operation by using the built-in test facility, and review
the responses to verify the behavior of the flow. You can optionally check for the expected results
in the target applications. For more information, see Testing a running API flow.
What to do next
To run the flow in a production system, deploy it as an
integration server or integration runtime in the
App Connect Dashboard, which provides a runtime
environment.
- After you successfully test the flow in your App Connect Designer
authoring environment, export the flow as a broker archive (BAR) file that packages the integration.
- Upload the BAR file to an App Connect Dashboard instance and then deploy
the file to an integration server or integration runtime to run the integration in the production
system.
For more information, see Deploying Designer and Toolkit integrations in the App Connect Dashboard.