Get code for decision revision not bound to score definition(Deprecated)
Returns the code directly as text without being wrapped in a JSON model, that a user can use to be able to run the decision revision based on mapping to a static input and output data set of SASEP.IN and SASEP.OUT rather than binding to a score definition. This is deprecated. Please use the endpoint /flows/{decisionId}/revisions/{revisionId}/mappedCode
with header Content-Type
as application/vnd.sas.score.code.generation.request.unbound+json
and header Accept
as text/vnd.sas.source.ds2
.
1ds2_options scond=none;2/* Custom Object add_cf retrieved on Fri May 07 16:25:43 UTC 2021 */3/*{"signatureExtension":[]}*/4package "add_dec_add_cf" /inline;5 method execute(double a, double b, in_out double c);6 c=a+b;7 end;8endpackage;9ds2_options scond=none;1011/* Decision add_dec version 1.5 generated on Fri May 07 16:25:43 UTC 2021 */12package Decision_ba7b8073_83f7_41ae_827 / inline;13 dcl package logger logr_perf('App.tk.SID.Perf');14 dcl double timer_start;15 dcl double elapsed_time;16 dcl double total_timer_start;17 dcl double total_elapsed_time;1819 dcl package "add_dec_add_cf" "add_dec_add_cf_hdl"();2021 method initRuleFiredRecording();22 dcl integer ruleFiredStartPosition;2324 /* query and set offsets - always traverse in same order as execute() method */25 ruleFiredStartPosition = 1;26 end;2728 method init();29 initRuleFiredRecording();30 end;3132 method execute (33 double "a"34 ,double "b"35 ,in_out double "c"36 ,in_out varchar "PathID"37 ,in_out char "ruleFiredFlags"38 ,in_out integer "rulesFiredForRecordCount"39 ,in_out integer "_filter_"4041 );42 dcl integer dg_filter_;4344 total_timer_start = datetime();4546 timer_start = datetime();47 "add_dec_add_cf_hdl".execute("a", "b", "c");48 elapsed_time = datetime() - timer_start;49 logr_perf.log( 'd', 'Package Name: Decision_ba7b8073_83f7_41ae_827, Node Name: add_cf, Node ID: 5da31100-8063-4dae-8b6d-dbc5965328d9, NODE DURATION: ' .. elapsed_time);50 if ("_filter_" = 0) then return;5152 "PathID" = "PathID" || '/' || '5da31100-8063-4dae-8b6d-dbc5965328d9';5354 "end": /*label for decision node link to flow end*/5556 total_elapsed_time = datetime() - total_timer_start;57 logr_perf.log( 'd', 'Package Name: Decision_ba7b8073_83f7_41ae_827, TOTAL DURATION: ' .. total_elapsed_time);5859 end;60endpackage;61
Name | Type | Required | Description |
---|---|---|---|
decisionId | string | true | The identifier for the decision. Examples: "094078e7-278a-4719-a704-6e5e65af29ee" |
revisionId | string | true | The identifier for the revision. Examples: "cd942f3c-60a0-4b16-9184-4cb8921fb0eb" |
Request containing hints and mappings to generate Mapped Code not bound to a score definition.
Name | Type | Required | Description |
---|---|---|---|
mappings | array [Mapping] | false | Array of mappings between Score Object variables and the table the code will be executed against. |
hints | object | false | Hints for generating the code. Hints are specific to the type of object which the code is being requested for. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. | Headers | Schema |