Hi All,
I have an Map operator which contains key value pairs as
{eventId:6,actualsId:1,planId:2}
i saved it in a process variable in a script task and then when i tried doing the value as
pv!map.eventId it is saving the value as 6,
if i do index(pv!map,"eventId",999) it is saving as 999 instead of 6.
Not sure what is the issue. Any one faced such kind of issue in process model.
Please Note : I tried this in Process model not in rule. In rule it is working fine.
Discussion posts and replies are publicly visible
Peter Lewis Any thoughts on this please.
Just some simple questions.
Did you check that the pv is of type map?
Did you check that the pv contains the expected values?
Yes i did check them it is of type Map and the Map contains the expected values
I called it in the inputs of the script task and then using the ac!map in outputs which is index(ac!map,"eventId",999)
Did a quick test. Same behaviour here. For this does not look like expected. Try to open a support case.
Thank you will raise a support ticket.
Hi Harshav, Yes index function is not working here but as of now , for work around you can use "dot" instead of index function.
Thats the way i am actually doing it as my workaround.
harshav, have you heard anything back from Appian? I couldn't find any issue reference number