Revise Connection and Service Call-out to retrieve data
- Last Updated: July 2, 2019
- 2 minute read
- Corticon
- Documentation
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.
- In the Vocabulary editor's root, click the Rate Data tab.
- Click SCHEMA Clear.Note: When changing the URL or adding query parameters you must first clear the existing schema.
- Enter the query parameter
procedureCode, and then enter the valueB5120ZZ, a knownprocedureCode value. This returns JSON representative of the JSON which could be returned at runtime. - Click SCHEMA Discover, as shown:

- Open the Rulefllow editor, and then click the Get Rates object to access its Properties tab.
- Click its Service Call-out tab, and then choose the Service Name
CorticonREST.retrieveData:
- Click its Runtime Properties tab, and then add the
Property
procedureCodeand the ValueReimbursementRate.procedureCode:
- Open the Ruletest and run all tests.

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.