Multiple Values in PV

The variable sequenceNumberTwo has multiple values and I am looking for each value to be sent to GET Transit Image Front and GET Transit Image Back. 

Can you help me achieve this?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Hi. In the first image you can see that the variable sequenceNumberTwo is not set to "multiple", fix that and it should work.

  • Hmm, even after changing it to multiple, it still does not work. For example, in sequenceNumberTwo, there are 2 values and the first value was passed to GET Transit Image Front and the second value was passed to GET Transit Image Back rather than both values going to both nodes

  • 0
    Certified Associate Developer
    in reply to cindyl5142

    Maybe it's because of the MNI configuration you have on the node, you should have it configured like this:

    to reference each item you have to configure your expression like this: pv!sequenceNumberTwo[tp!instanceindex] and to save each result configure "is appended to list" in save into parameter

  • Here are my latest results after doing your suggestions... :( I appreciate your help btw..

    For some reason, sequenceNumberTwo is now 6 values, when it should only be 702 and 703. Also, unfortunately, it is only storing transitImageBack for 702 and transitImageFront for 703
    I am looking to have transitImageBack for 702 and 703 and transitImageFront for 702 and 703

  • +1
    Certified Associate Developer
    in reply to cindyl5142

    Here I see a few things that seem to be misconfigured:

    1. In the MNI configuration, select the option * Run all instances are done > "All instances are done"

    2. It's not necessary to save the same value from each instance into the same variable sequenceNumberTwo, because this will cause 2 additional values to be added to the list you had defined at the beginning.

    3. In the output configuration of the "Get Transit Image Front" node, it's set to save the body of the integration only once. To save the result.body from each instance, you should configure it like this:

    Note: You should apply this same configuration to each node configured with MNI.

Reply
  • +1
    Certified Associate Developer
    in reply to cindyl5142

    Here I see a few things that seem to be misconfigured:

    1. In the MNI configuration, select the option * Run all instances are done > "All instances are done"

    2. It's not necessary to save the same value from each instance into the same variable sequenceNumberTwo, because this will cause 2 additional values to be added to the list you had defined at the beginning.

    3. In the output configuration of the "Get Transit Image Front" node, it's set to save the body of the integration only once. To save the result.body from each instance, you should configure it like this:

    Note: You should apply this same configuration to each node configured with MNI.

Children