Nav
You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

To Create Flows and Exception Strategies

This procedure describes how to build a main flow, backend flows, and exception strategies to create an APIkit project. When you create a RAML in Studio, you have the option of generating backend flows, or not. Exception strategies are generated for a RAML-based API. You need to reference these strategies from the main flow.

  1. Drag the following components for the main flow from the Mule palette:

    • An HTTP (or Jetty) Listener

    • An APIkit Router

      apikit-using-ea7ad
  2. In the Package Explorer, right-click the project name.

  3. Select Mule > Generate Flows from RAML

    The backend flows appear below the main flow.

    apikit tutorial ce60c
  4. Expand the Error handling section in the main flow.

  5. Drag a Reference Exception Strategy component from the Mule palette to the Error handling section.

  6. On the Configuration.xml tab, add exception strategy mappings to the project right after the last </flow> tag.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+