To use a REST data source, you need to add a call-out to it in your Ruleflow. The REST Connectivity sample already has it added. If using your own REST services, you would add call-outs where needed in your Ruleflow to access them. If you have multiple REST data sources, you can access those you need from your Ruleflow.

A Ruleflow could use several REST connectivity service callouts to enrich data before and after other processing steps. The sample uses one REST connectivity callout.

To use REST service callouts:

  1. In a Ruleflow where you want to use a REST Service connection, add a Service Call-out to the Ruleflow canvas. In this example, the Ruleflow has a single call-out Get Rates to retrieve rate data from the REST service and a Rulesheet which produces rule messages from the rate data, as shown:


  2. Click on the Get Rates object, and then, on the object's Properties tab.
  3. On its Service Call-out tab, click the Service Name pulldown to select the read-only service you want for this use, CorticonREST.importData . The import will create new entity instances for the data returned. The alternative, retrieve, would update existing entity instances. The alternative, CorticonREST.retrieveData, will be used later in this sample run.
  4. Click the Runtime Properties tab:



    1. In the Property column, click on Datasource Name. Choose the Datasource that corresponds to the name of the appropriate REST Service definition. For the REST Service sample, choose Rate Data.
    2. Select Primary Entity, and then, for its value, use the dropdown menu to select the appropriate Vocabulary Entity. For the REST Service sample, choose ReimbursementRates.