Multi instance - Parallel loop calling out composite api

238 views
Skip to first unread message

somesh.m...@gmail.com

unread,
Oct 8, 2013, 11:56:46 AM10/8/13
to suppor...@runmyprocess.com, somesh. mukherjee
Hi,

We are using a multi-instance - parallel loop to call out RMP Composite APIs for every available element in the input array.

Is there a way we can access the response from the individual callouts that happen from within the multi-instance loop, on the multi-instance activity output variable?

Thanks!

Dimitri MELCHIOR Pro

unread,
Oct 8, 2013, 12:48:12 PM10/8/13
to RunMyProcess Support Forum, somesh. mukherjee
Hi Somesh,

If you want to get the "P_result" of multiple instances loop, you can populate a big structure in which you inject all of the P_results. Let me show you how to do :

1 - Into the Output variables of the start event, declare all_p_results = []

Inline image 2

2 - Into you connector box configuration panel, make sure that checkbox "inject results" is unticked :

Inline image 3

3 - As outp variable of the Loop/Connector box, update the variable all_p_results scripting :

<#assign tmp = tmp + [P_result]>
${tmp}

Inline image 4

Inline image 5

There after, you should have all_p_results containing what you want as it will be incremented at any iteration of the loop.

Please le me know.

Best regards.


--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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/ee5c6465-d030-4fd0-836a-d770618da4ce%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

image.png
image.png
image.png
image.png

somesh.m...@gmail.com

unread,
Oct 8, 2013, 1:55:11 PM10/8/13
to suppor...@runmyprocess.com, somesh. mukherjee, somesh.m...@gmail.com
Thanks Dimitri! I am trying your suggestion, but getting the following error right now:

2013-10-08T17:45:48+0000 - Task "Check references" (id: 15[5] - status: ABORTED): Error while processing <#assign tmp = tmp + [P_result.IsValid]>
{tmp}
Expression tmp is undefined on line 1, column 16 in Check references.

But probably that is my error and I am not integrating with the Composite API properly.

Dimitri MELCHIOR Pro

unread,
Oct 8, 2013, 1:57:23 PM10/8/13
to RunMyProcess Support Forum, somesh. mukherjee, Somesh Mukherjee
sorry, write this

<#assign all_p_results = all_p_results + [P_result.IsValid]>
${all_p_results}

--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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/.
Reply all
Reply to author
Forward
0 new messages