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.

inlineAdvanceListValuesboolean

Specifies whether the currently deployed rows in an advanced list are included as inline values within the generated code. Advanced lists and rows within an advanced list can be deployed by using the SAS Intelligent Decisioning web application, the SAS Fraud Decisioning application, or the List Data API. If this parameter is 'true', the deployed rows in an advanced list are re-created as a data grid in the generated code. If this parameter is 'false', the advanced list must exist as a tabular data set on the Redis server. To get generated code for Cloud Analytic Server, Teradata, or Hadoop destinations, specify 'true' as the parameter value.

useGlobalVariableCurrentValuesboolean

When this parameter is set to true, the generated code uses the global variables current value (possibly not activated) at code generation time. When set to false the activated global variables value is looked up and used at code execution time.

Response

The request succeeded.

Changes

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