Persisting Decision Attributes from a Decision Table/Tree
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***