Hi,
I have a decision table that returns two outputs based on the input values.
I'm calling this Decision table rule from a process, how can i store the result in a activity class variable?
The output of the decision table is a MAP, i could not find a compatible datatype for this in a process model.
Can someone please help?
TIA
Regards,
Sunil Zacharia
Discussion posts and replies are publicly visible
Hi Sunil, When a decision has multiple outputs, it is called as compound output (or MAP) which is nothing but a dictionary with fields that correspond to each output field name of the Decision. You could write an expression rule which calls the decision and then cast the output of the decision to a CDT corresponds to the dictionary the decision returns. Lastly call that expression inside your process model and capture the output with that CDT type. Thanks
Hi Chandu, When you have more than one output fields defined in a decision, it returns a type called MAP which is basically a dictionary so in order to extract each of the individual output fields you need to cast the dictionary, it is upto you if you want a CDT to cast to or map individual output to separate variables. Thanks
Okay Thank you. Could you please let me know how to get MAP output type. Currently I'm in 18.2