Rule Sets

Get rule set code

Returns the code for integrating within another program so that program is able to run the rule set.

get/ruleSets/{ruleSetId}/code

Request

  • Base URL: https://example.com/businessRules
  • URL: https://example.com/businessRules/ruleSets/{ruleSetId}/code
  • Auth: none declared

Path parameters

ruleSetIdstring required

The rule set ID.

Query parameters

codeTarget'MICROANALYTICSERVICE' | 'CAS'

The type of platform that the generated code is run on. This affects some aspects of how the code is generated, for example the MICROANALYTICS variables that are both input and output are listed distinctly in the execute method signature rather than as one 'in_out' parameter. The default is CAS.

lookupMode'format' | 'inline' | 'package'

Generates the code using references to the reference data domains based on the format names, the inline domain contents as conditionals, or the domain contents as DS2 packages. The default is 'format'. If the value is either format or package, the domain contents are expected to exist in that form on the Cloud Analytic Server and Micro Analytic Score server respectively. This is done the domain contents are activated using the SAS Intelligent Decisioning web application or using a Reference Data service REST API invocation. Only when executing the code would it be known that the formats or packages do not exist.

isGeneratingRuleFiredColumnboolean

Determines whether the rule fired columns are included in the method signatures within the return package code. The default is 'true'.

Response

The request succeeded.

Changes

No recorded changes to this operation across all 1 revision of this API.