Hi all,
I am trying to iterate a number of dynamic approval tasks using Multiple Node Instances. I learned that this is possible but I have a question about how to get the index of the current array element. For example. My CDT with a list of approvers is approverData and I can iterate the list of approvers using approverData[index].approverUser.
So suppose I set up a sub process with MNI and I want to call up these dynamic tasks, within the sub process, how can I reference the current item so I can pass rule input variables back and forth to/from form and pv, sub process and main process etc?
Thanks!
Discussion posts and replies are publicly visible
Sorry for not mentioning this to you before - in an MNI node, i.e. in the input setup, the current instance can be referenced with "tp!instanceIndex". For some reason this isn't seen when setting up a subprocess node as MNI, but you can see it i.e. if you set up a script task or user input task as MNI.
So it's a little known thing but for sub-processes you do not need to reference instances using tp!instanceIndex - Appian just does it for you (don't take my word for it, try it out - you just have to make reference to the array you're wanting to pass items to the sub-process from)
I've found this too, though the execution has always seemed a little inconsistent and sometimes confusing.