Add static properties to a Service Callout
- Last Updated: April 5, 2023
- 1 minute read
- Corticon.js
- Documentation
You can pass static properties to your service callouts that will be passed in as a JSON object to the service callout. These properties are added in the Studio Ruleflow editor. The properties will be embedded in the decision service bundle and cannot be modified at runtime.
Note: IMPORTANT: These properties will be clear text
in the Decision Service. As such, you should not add user name and password properties
to the Service Callout, or any secret and confidential data here or in the payload.
These can be added from the Studio in the Ruleflow editor's Properties pane as shown:
![]()
How to use the API to access properties
To access the static runtime properties in service callouts, change the method signature
of your API to have a second parameter,
serviceCalloutProperties. For
example:
|
When you access the
serviceCalloutProperties Object, the properties are
name value pairs. For example:
|
You can access any static runtime properties defined in the UI by using its name. For
example:
|