Rule Sets

Get the mapped code of a rule set revision

Returns the code bound to the data that is specified in the score request for execution.

post/ruleSets/{ruleSetId}/revisions/{revisionId}/mappedCode

Request

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

Path parameters

ruleSetIdstring required

The rule set ID.

revisionIdstring required

The rule set revision ID.

Request body

scoreDefinitionIdstring required

The score definition ID that is used for generating the mapped code. This should be used only if the scoreDefinition is not used.

hintsobject

Hints for generating the mapped code. The mapped code request is forwarded to the score object of the score definition. The score object should be able to understand these hints.

versioninteger

This media type's schema version number. This representation is version 1.

Example request

{
  "scoreDefinitionId": "9f0c13ae-6a27-11e6-8b77-86f30ca893d3",
  "hints": {
    "outputLibraryName": "PUBLIC"
  }
}

Response

The request succeeded.

codestring required

The executable code generated by a score object.

codeTypestring media-type required

The type of code.

outputTableNamestring required

The name of the table that is generated when the code is executed.

outputLibraryNamestring required

The name of the library where the table is generated when the code is executed.

versioninteger

This media type's schema version number. This representation is version 1.

Example response

{
  "code": "/* DS2 code of an object, which generates an XYZ output table */",
  "codeType": "text/vnd.sas.source.ds2",
  "outputTableName": "XYZ",
  "outputLibraryName": "HPS"
}

Changes

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