Creating flows from templates

The Discover page in App Connect Designer provides a set of prebuilt templates that cover a range of cognitive, marketing, sales, support, business ops, e-commerce, and finance use cases. You can use these templates to create flows by importing them into your Designer instance.

Note:
  • To use the templates on the Discover page, you must be connected to the internet.
  • In App Connect Designer instances at version 12.0.7.0-r1 through 13.0.4.2-r1, the Discover page is known as the Templates gallery. The Templates gallery is renamed to the Discover page in App Connect Designer 13.0.5.0-r1 or later.

About this task

You can search the Discover page and review a template's details to help you make a choice. The usage instructions for each template identify which applications you need to connect to. You can specify the account connection details on the Applications & APIs page before you import the flow, or from the flow (or API) editor of the imported flow. For more information, see Connecting to accounts.

After you import a flow from a template, you can examine the flow to understand how the nodes are configured, and how data is mapped. You can customize the flow if preferred, and can also use sample data to test individual actions or the entire flow to verify its behavior.

Procedure

To create a flow from a template, complete the following steps:

  1. From the navigation pane in App Connect Designer, click the Discover icon Discover icon to open the Discover page. (In a Designer instance at version 13.0.4.2-r1 or earlier, click the Templates icon Templates icon to open the Templates gallery.)

    Each template is represented as a tile with a title that summarizes the purpose of the template.

    Discover page in App Connect Designer

  2. To search for an appropriate template, use the search field to filter by application name, object, event, or action. As you type your search query, the list of matching templates is updated.

    For example, type Salesforce to show all templates that contain a Salesforce event or action. Or type sync to show all templates that help to synchronize your data between applications.

    You can click any tile to view the following details about the template: the template title and description, a preview of the flow (in App Connect Designer 12.0.12.4-r1 or later only), and the usage instructions. To return to the Discover page, you can either click the Discover breadcrumb or the Discover icon Discover icon. (To return to the Templates gallery in a Designer instance at version 13.0.4.2-r1 or earlier, you can either click the Templates breadcrumb or the Templates icon Templates icon.)

    Example of the template description, flow preview, and usage instructions for a selected template
    Tip: If you want to refer to an external copy of the usage instructions while editing the flow, click the GitHub page link in the How to use this template section to open the GitHub page where the instructions are stored.
  3. To create a flow from the template that you are viewing, click Use this template (or Create flow in older Designer versions).

    If you imported an event-driven flow, the flow opens in the flow editor. If you imported an API flow, the API editor displays any defined models (and operations) in the Designer tab in an IBM Cloud Pak for Integration deployment, or the Define tab in an independent deployment of the IBM App Connect Operator. The flow name is inherited from the template title. If a flow with an identical name is present in your Designer instance (for example, Add a card to a list in Trello when a new lead is added in Marketo), the new flow is renamed by appending _n to its name, where n is a number starting from 1 (for example, Add a card to a list in Trello when a new lead is added in Marketo_1).

    The imported flow is automatically validated and highlights any validation errors with a warning icon Validation warning icon on any application or toolbox nodes. Validation errors typically indicate that you need to connect to an account, or to complete the configuration of a node.

  4. Event-driven flow: Validate the flow definition and customize the flow if required.
    1. Resolve any validation errors as described in Validating that your flow is ready to run. Also ensure that the preferred accounts are selected for the event and each action.
    2. Optional: Customize the existing nodes and add more nodes to the flow if required.
      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.
    3. Start the flow by clicking the Start flow button (or by selecting Start flow from the flow menu Flow menu icon in older Designer versions).
  5. API flow: Validate the settings for each model and its operations, and customize the flow if required.
    1. From the Define or Designer tab, click the Operations tab for a model.
    2. For each operation, edit the flow as follows to review its configuration and resolve any validation errors:
      1. Click Edit flow.
      2. Ensure that the preferred accounts are selected for each action.
      3. Resolve any validation errors as described in Validating that your flow is ready to run.
      4. Optional: Customize the existing nodes if required.
      5. After updating the operation, click Done.
    3. Optional: Add more operations to the flow if required.
      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.
    4. After you validate all your models and operations, start the API as follows:
      • If your App Connect Designer instance is running in an IBM Cloud Pak for Integration deployment, set the Stopped/Started switch to on. A Test tab is automatically added after the Gateway tab to use for testing the API within your Designer instance.
        Stopped/Started switch set to on
      • If your App Connect Designer instance is running in an independent deployment of the IBM App Connect Operator, click the Start API button (or select Start API from the flow menu Flow menu icon in older Designer versions). The status of the flow is updated to Running.
        Start API button
  6. Test the running flow as follows:
    • Event-driven flow: In your source application, 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.
  1. 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.
  2. 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 App Connect Designer and IBM App Connect Enterprise Toolkit integrations in the App Connect Dashboard.