Hi Appian Pals, I have an expression rule which is calculating some data and that data is organized into a map and that list of map is being required to be called in a process variable.In order to do this, I created a script task and then, I saved the output of this rule to a process variable and that variable is made using the required CDT.The main issue is that the variable is not getting the value after the evaluation of the rule in the script task.Can you please help me find a way through it?Below is the output of that expression rule in the form of map. I have used the approach to calculate the value using refresh variables with refreshAlways:trueBelow is the output of the process model where i have called this rule in the script task in the process model.Below is the script task configuration:Below is the process variable definition:Below is the CDT that is used to create the above process variable:Looking for a better guidance.Thanks in advance..
Discussion posts and replies are publicly visible
The issue is, that your expression creates a list of lists where each sub-list contains one map.
Two questions.
1) Could it be that you use a foreach and wrapped the a!map() call into curly brackets? Remove them.
2) Why do you create a map instead of the CDT type?
Thanks for the directions StefanLet me try to remove the map and directly bind it to the CDT type object.
One more thing Stefan, I got the values in the cdt object and the same values are coming up in the single process variable which is of type multiple.But, for every value going forward in the process variable, I need to take the decision.What should i do in this case?
This depend a lot on your overall use case. One pattern is to just start a child process for each.
Thanks