Contact Us 1-800-596-4880

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

      An APIkit Router and a HTTP Listener added to the main flow.
  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.

    Backend flows and the main flow.
  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.