To update existing entities in the payload being processed by your rules, you need to change the REST call-out to perform a retrieve operation. When performing a retrieve operation your REST data source must have one or more query parameters to identify the instance of data required. For example, if your rules were processing mortgage applicants you might pass the social security number of an applicant to a REST service to get credit information about the applicant being processed. The REST service used by the REST Connectivity sample accepts the query parameter procedureCode to get rate information about a specific procedure. In this section you will convert this sample to perform a retrieve operation.

  1. In the Vocabulary editor's root, click the Rate Data tab.
  2. Click SCHEMA Clear.
    Note: When changing the URL or adding query parameters you must first clear the existing schema.
  3. Enter the query parameter procedureCode, and then enter the value B5120ZZ, a known procedureCode value. This returns JSON representative of the JSON which could be returned at runtime.
  4. Click SCHEMA Discover, as shown:


  5. Open the Rulefllow editor, and then click the Get Rates object to access its Properties tab.
  6. Click its Service Call-out tab, and then choose the Service Name CorticonREST.retrieveData:


  7. Click its Runtime Properties tab, and then add the Property procedureCode and the Value ReimbursementRate.procedureCode:


  8. Open the Ruletest and run all tests.
The Multiple Procedures tab shows the specified procedureCodes and the related rates:


The procedureCode specified in Input where substituted as query parameter values and used to make calls to the REST service. For comparison, select the No Input Data Testsheet and click Run Test. No data shows in Output. This is because the Get Rate Data call-out is configured to do a retrieve, not an import, operation. Where no procedure codes where provided, there were no existing entities to update.