Question
Murex
LB
Last activity: 16 Oct 2018 12:03 EDT
Calling flow is unsuccessful only when called inside a loop
Hello,
I have an activity X that specifies the parameters of the flow 'pyInviteUser' (including the email address of the user we want to invite to the Pega App) of the CL PegaAccel-Task-InviteUser and calls the flow through the method 'startFlow'.
The above works successfully: an email is sent to the specified email address.
However if I call the above activity X inside a loop (each time giving it a different email address), then we do not receive an email.
Any ideas about the above?
Thank you in advance,
Mariane
***Updated by Moderator: Marissa to update categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
One thing I noticed in the traces is the different step page when calling StartFlow in the working vs non-working scenarios. In the working example, startFlow is run with pyWorkPage as the step page. In the non-working scenario, startFlow is called with TempPage.pxResults(1) as the step page. It is possible this is causing the issue as the work object is not present on the TempPage.pxResults(1) page.
Pegasystems Inc.
US
Do you see any errors when running Tracer?
Murex
LB
Hello Carissa,
Thank you for your reply.
I do not see any error when running the Trace.
Thank you,
Mariane
BlueRose Technologies
AU
Hi,
Can you please provide tracers for both scenarios.
Thanks,
Prudhvi.
Pegasystems Inc.
IN
Can you also provide your configuration details screenshot ?
Murex
LB
Hello Prudhvi and Santanu,
Thank you for your replies !
I am attaching the tracers for both scenarios.
I am also attaching screenshots of the activity configurations:
screenshot1: 'SendUserCreationInvitation' activity that generates the expected behavior (sends email)
screenshot2: Activity that has a loop under which we call the above activity 'SendUserCreationInvitation'. It does not generate the expected behavior (do not send emails).
I hope this will help.
Thank you,
Mariane
Accepted Solution
Pegasystems Inc.
US
One thing I noticed in the traces is the different step page when calling StartFlow in the working vs non-working scenarios. In the working example, startFlow is run with pyWorkPage as the step page. In the non-working scenario, startFlow is called with TempPage.pxResults(1) as the step page. It is possible this is causing the issue as the work object is not present on the TempPage.pxResults(1) page.
Saltech Consulting
GB
Hi,
We have the same problem, did you find any solution for it? Why doesn't it work inside a loop with the embedded pages, when these pages have the exact same content as the pyWorkPage?
Pegasystems Inc.
IN
Murex
LB
Hello Carissa,
This is exactly the root cause of the error.
Many Thanks,
Mariane