Invoking sub-process by selecting "run one instance for each item in Array

Invoking sub-process by selecting "run one instance for each item in Array of Number/ Spawn all" and Move when all instances are done. While mapping parent and sub-process, using index (pv!processvariable,tp!instanceIndex) to store the value of element in sub-process variable. During debugging the process , not able to see sub-process variable in monitor mode. Any suggestions ?...

OriginalPostID-37304

OriginalPostID-37304

  Discussion posts and replies are publicly visible

  • tp!instanceIndex is not valid for a multi-node instance of a sub-process node. To acheive the same effect, you simply map your multiple pv! from the parent to a single pv! of the sub that is of the same type. As long as the length of the multiple pv! is the same as the number of instances spawned, Appian will pass the corresponding value down to the sub. Note that you cannot use any expressions or pass byreference(). You must pass directly using the drop-down selection. But it works, and we use the functionality all the time.
  • If you require an instance index value in your sub-process, you need to generate an integer sequence from 1 to the number of instances you intend to spawn. You then pass this integer array directly to a pv!InstanceIndex of integer type in the sub-process.