Loop connector task

300 views
Skip to first unread message

usuari...@eatout.es

unread,
Sep 29, 2014, 10:03:44 AM9/29/14
to suppor...@runmyprocess.com
Hi guys,

I have designed a process to monitor all red status instances for each process in the project and send a daily mail to the admin. I have defined a loop connector task with a array of process ids as input parameter but this does not work correctly because only the call of the last iteration (Provider:RunMyProcess - Secured Connection) is invoked.

Any help?

Thanks in advance,

Toni
--
*Confidencialidad/ Confidentiality notice*

The Eat Out Group SLU le informa de que este mensaje, la información
que contiene y cualesquiera archivos que adjunte se dirigen exclusivamente
a su destinatario, estando prohibida por Ley su distribución, copia
o utilización con cualquier finalidad. Si recibe este mensaje por error,
le rogamos que proceda a su eliminación definitiva y nos lo
comunique inmediatamente a través de correo electrónico o del teléfono
(+34) 93 367 00 00.

The Eat Out Group SLU le informa, asimismo, de que todos los datos
que reciba por esta vía serán almacenados, pudiendo ser incluidos en un
fichero de nuestra responsabilidad, donde se mantendrán bajo la más
estricta confidencialidad, con la finalidad de atender su solicitud y
dar cumplimiento a los lícitos objetivos de la empresa. Puede ejercitar
sus derechos de acceso, rectificación, cancelación y oposición, en los
términos que reconoce la Ley Orgánica 15/1999 de Protección de Datos,
dirigiéndose a nuestras oficinas en C/Alcalde Barnils, 64-68, Edif. B, 2ª.
Planta; Parque Empresarial Can Sant Joan; 08190 Sant Cugat del Vallés, o
enviando un e-mail a lo...@eatout.es

The Eat Out Group SLU informs you that this message, the
information contained and whoever files attached are intended for the
addressee only. It is forbided by law to disclose or copy the contents of
this e-mail without the sender's consent. If you have received this message
in error please delete this e-mail immediately and inform the sender
through e-mail or by telephone (+34) 93 367 00 00.

The Eat Out Group SLU also informs you, that the data received by this
way will be stored and can be included in a file of our responsibility,
in which they will keep below the more strict confidenciality, with the aim
of complying the licit objectives of our company. You can practice the
right of access, rectification, cancellation and opposition, in the
terms recognized by Law, sending your request to our offices in
C/Alcalde Barnils, 64-68, Edif. B, 2n floor, Sant Cugat del Vallés
(Barcelona), or by e-mail to lo...@eatout.es

thoshino

unread,
Sep 29, 2014, 3:57:12 PM9/29/14
to suppor...@runmyprocess.com, usuari...@eatout.es
Hi Toni,

Maybe you have the loop working but result is writing to same variable, so you only see the last iteration.

Something like below should work.

1. variable that holds array of ids like, a_process_id.
2. a Connector activity set to "This is a loop = checked", and loop config tab set to "multi-instance, iteration by ${a_process_id}, sequential".
3. variable that holds results of looped P_result, like a_result.
4. some where NOT in the Connector activity (like, Start event Output variable), initialize this a_result variable to [] (empty array).
5. in the Output of the Connector activity, define a variable a_result, content ${a_result?eval} + [P_result]

in step 5 above, this is adding 1 item in a_result variable for each iteration.
I think newly introduced FM function can do this in more proper way:

I hope this helps!
Of course you don't have to save P_result in every iteration, you can narrow down your variable like P_result.feed.entry[0]....

Best regards,

Taka
Reply all
Reply to author
Forward
0 new messages