Skip to main content
saifalik8679
Known Participant
September 13, 2022
Question

Not able to increment the multiple type list variable using MNI

  • September 13, 2022
  • 8 replies
  • 0 views

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.

8 replies

saifalik8679
Known Participant
September 13, 2022

The multi list pv variable is generated at runtime using a script task and then passed on further 

saifalik8679
Known Participant
September 13, 2022

saifalik8679
Known Participant
September 13, 2022

[mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05]

September 13, 2022

You have to use MNI over the subprocess node and usepv!YourProcessVar[tp!instanceindex] to pass the value into the subprocess.

saifalik8679
Known Participant
September 13, 2022

Now my subprocess is able to loop in the list of variables
But, I want to send the data in the sub process one by one from the list.
How can we achieve that?