Rule Sets

Get the code of a rule set revision

Returns the package code for a rule set revision.

get/ruleSets/{ruleSetId}/revisions/{revisionId}/code

Request

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

Path parameters

ruleSetIdstring required

The rule set ID.

revisionIdstring required

The rule set revision 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 format names, the inline domain contents as conditionals, or the domain contents as a DS2 package. The default is 'format'. If the value is either format or package, the domain contents are expected to already exist in that form on the Cloud Analytic Server and Micro Analytic Score service respectively. This is done by previously activating the domain contents using the SAS Intelligent Decisioning web application or 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.