Get decision code
Retrieves the DS2 package code, which can be used to execute the decision.
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" |
Name | Type | Required | Description |
---|---|---|---|
inlineAdvanceListValues | boolean | false | 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. |
codeTarget | string | false | The type of platform or scenario in which the generated code is used. Code targets:
Allowed values: microAnalyticServicedockergitMasgitCasprocds2casFullinDatabasespresubDecisionothers Examples: "microAnalyticService" |