Get decision code not bound to a score definition(Deprecated)

post/flows/{decisionId}/mappedCode
Internal-Use Only

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 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. Use the endpoint /flows/{decisionId}/mappedCode with Accept header as text/vnd.sas.source.ds2.

Request Samples

1

Response Samples

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;
10
11/* 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;
18
19 dcl package "add_dec_add_cf" "add_dec_add_cf_hdl"();
20
21 method initRuleFiredRecording();
22 dcl integer ruleFiredStartPosition;
23
24 /* query and set offsets - always traverse in same order as execute() method */
25 ruleFiredStartPosition = 1;
26 end;
27
28 method init();
29 initRuleFiredRecording();
30 end;
31
32 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_"
40
41 );
42 dcl integer dg_filter_;
43
44 total_timer_start = datetime();
45
46 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;
51
52 "PathID" = "PathID" || '/' || '5da31100-8063-4dae-8b6d-dbc5965328d9';
53
54 "end": /*label for decision node link to flow end*/
55
56 total_elapsed_time = datetime() - total_timer_start;
57 logr_perf.log( 'd', 'Package Name: Decision_ba7b8073_83f7_41ae_827, TOTAL DURATION: ' .. total_elapsed_time);
58
59 end;
60endpackage;
61

Path Parameters

NameTypeRequiredDescription
decisionId
string
true

The identifier for the decision.

Examples:
"094078e7-278a-4719-a704-6e5e65af29ee"

Request Body

Request containing hints and mappings to generate Mapped Code not bound to a score definition.

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema