How to set an array in multi-instance loop task

434 views
Skip to first unread message

andre.fc....@gmail.com

unread,
May 6, 2015, 11:25:03 AM5/6/15
to suppor...@runmyprocess.com
Hello,

I'm trying to use loop task functionality, but I'm having some troubles setting the array. I want to have a sequential multi-instance loop.

I tried difference array structures, but in all cases it returns an error: " Expression {my_array} evaluates to [...]; which is not a valid array."

What is the correct structure to pass to this field?

Suppose that I have this:
[
{"name": "George", "country" : "UK"},
{"name": "Mark" , "country" : "USA"},
{"name": "Diana", "country": "Canada"}
]

Thanks in advance!

Pray Desai

unread,
May 6, 2015, 7:22:16 PM5/6/15
to suppor...@runmyprocess.com
Hi Andre,

The correct structure is a normal JSON object array similar to the example that you gave.

Inline image 1


Is your design similar to my screenshot above ? 

Did you check the value of this variable array in the initial or computed parameters tab ?

Inline image 2

Regards,
Pray Desai,
Fujitsu RunMyProcess.


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/480316b5-662e-4d92-ba08-fdc789486422%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

andre.fc....@gmail.com

unread,
May 7, 2015, 7:07:28 AM5/7/15
to suppor...@runmyprocess.com
On Thursday, May 7, 2015 at 12:22:16 AM UTC+1, Pray Desai wrote:
> Hi Andre,
>
>
> The correct structure is a normal JSON object array similar to the example that you gave.
>
>
>
>
>
>
>
>
> Is your design similar to my screenshot above ? 
>
>
> Did you check the value of this variable array in the initial or computed parameters tab ?
>
>
>
>
>
>
>
>
>
> Regards,
> Pray Desai,
> Fujitsu RunMyProcess.
>
>
> On Wed, May 6, 2015 at 8:25 AM, <andre.fc....@gmail.com> wrote:
> Hello,
>
>
>
> I'm trying to use loop task functionality, but I'm having some troubles setting the array. I want to have a sequential multi-instance loop.
>
>
>
> I tried difference array structures, but in all cases it returns an error: " Expression {my_array} evaluates to [...]; which is not a valid array."
>
>
>
> What is the correct structure to pass to this field?
>
>
>
> Suppose that I have this:
>
> [
>
>   {"name": "George", "country" : "UK"},
>
>   {"name": "Mark" , "country" : "USA"},
>
>   {"name": "Diana", "country": "Canada"}
>
> ]
>
>
>
> Thanks in advance!
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
>
> To post to this group, send email to suppor...@runmyprocess.com.
>
> Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
>
> To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/480316b5-662e-4d92-ba08-fdc789486422%40runmyprocess.com.
>
> For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Thanks Pray,

As a software developer, I have the habit of putting ";" in the end of the line, so I had "${my_array};" and it returns the error that I reported.
Reply all
Reply to author
Forward
0 new messages