Hi Appian Pals, I have a requirement to send a variable which is of type multiple to send it one by one in an incremental way in the sub process.I tried to achieve this by using MNI in the script task and align the values by using spawn all in the list variable and then align them in the new pv.Now that pv is not getting the value from the second index. For the first instance, it is getting the value and getting inside the sub process, but for the second value in the list, it is not incrementing and getting updated.What i want is recursively the list should increment and assign values to the pv so that it can go into the sub process.Any of the directions would be appreciated.
Discussion posts and replies are publicly visible
The multi list pv variable is generated at runtime using a script task and then passed on further
You have to use MNI over the subprocess node and usepv!YourProcessVar[tp!instanceindex] to pass the value into the subprocess.
Now my subprocess is able to loop in the list of variablesBut, I want to send the data in the sub process one by one from the list.How can we achieve that?
Use pv!YourProcessVar[tp!instanceindex] function.
docs.appian.com/.../Process_Node_and_Smart_Service_Properties.html
It is actually backwards there, tp!instanceindex holds an integer value for which instance of the sub process is running - so you will want to use it to index into the process variable:
pv!YourProcessVar[tp!instanceindex]
or
index(pv!YourProcessVar,tp!instanceindex,null)
I am so sorry,I make the correction.