In our application (exposed as a Service-REST to front-end applications), we are maintaining a set of rules within a Decision table. Imagine the Decision Table to contain 3 input parameters, and based on their values, a Result attribute "Recommended/Not Recommended" is provided, as given below
Row # A B C Result
----- ---- --- ---- ------------
1 5 X 23 Recommended
2 10 Y 34 Not Recommended
Now, our requirement is this : for rows which are Recommended, we need to also return the columns and their values, so that the front end team can see the attributes which triggered the "Recommended" outcome.
Is there a way to run some kind of a Post-activity after the Decision is run, so that the attribute and their values which triggered the recommended row can be captured ?
The Decision-table itself is not set in stone: if there is a way in which this can be implemented without it, I am open to changing it.
***Edited by Moderator Marije to add Capability tags***
I don't think there is a direct solution OR Post Processing Action to get the value.
You can think of the resulting DecisionTable outcome by changing the decision table result from "Recommended" to "param1_param2_param3_Recommended". From the Result String, you can extract the portion of the String to understand the result, attributes & values caused by the result. I believe you are trying to access the Decision Table results from flow/UI application.
If it is a Decision Application, you might have access to the Attributes already (either context of the Primary page OR SR class).