Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Virtusa
IN
Last activity: 1 Jul 2020 5:51 EDT
Call decision table in when rule with parameter
Hello,
I want to use a decision table in which the first row is a parameter. This decision table should be evaluated in a when-rule, in which I pass the parameter to the decision table and get true or false back.
Is there a function which I can use to call a decision table with a parameter in a when-rule?
For Example:
Context (param.Function) |
Evaluation 1 | Evaluation 2 | Return | ||
---|---|---|---|---|---|
if | Function1 | true | true | ||
else if | Function2 | true | true | ||
otherwise |
false |
When-Rule: @FunctionToCallDecisionTableWithParameter("param.Function1", DecisionTableName)
Return-Value: True/False
If you have further questions, please let me know.