Skip to content

Commit 1488c1c

Browse files
authored
Create decisionTable.js
1 parent df6222e commit 1488c1c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var sysID = 'custom_sys_id';
2+
var dt = new sn_dt.DecisionTableAPI(); //Calling Decision Table API
3+
var inputs = new Object();
4+
inputs['u_csf'] = current.u_csf_capability; //Map to Decision Table Question Inputs
5+
var response = dt.getDecision(sysID, inputs);
6+
if (response != null) {
7+
var csfDomain = response.result_elements.u_csf_domain;
8+
var csfPillar = response.result_elements.u_csf_pillar;
9+
current.u_csf_domain = csfDomain;
10+
current.u_csf_pillar = csfPillar; //works well for multiple permutations and combinations on Risk Record
11+
}

0 commit comments

Comments
 (0)