Posted: 14 Jun 2016 10:35 EDT Last activity: 15 Mar 2017 9:48 EDT
How to use RedirectAndRun activity to create multiple threads to call the same activity in each thread?
I am working on PRPC 6.3 and I have used RiderectAndRun activity in an activity step with a for loop where RedirectAndRun activity will n times and I am creating thread name dinamically. I have passed one activity with only one step to set a Log Message, as the Location parameter and it created n times threads when I checked the Clipboard. But when i checked the Pega Log the log mesage was there only for the last thread. Does this mean even if n number of threads are created, the activity I am setting to run in each thread is running only in the last thread?
Message was edited by: Vidyaranjan Av | Included Category
I would expect each thread to call your activity. You might want to look at things like fiddler to see what you are passing to the server. Are you sure redirect and run is being called n times with n unique thread names? Also, check your logs, are you getting any errors that might account for the activity not running? Are the n unique threads being created on the clipboard?
Posted: 4 years ago
Posted: 17 Jun 2016 15:43 EDT
Rowland Stilwell (rowlandstilwell_gcs)
Director, Strategic GSA NA Engagements
I set a Log message inside the activity which I am passing to RedirectAndRun activity. But when I checked only the last thread log was there. I traced the activity using Trace Open Rule there it ran only once and that is inside the last thread. But even if it ran in the last thread it didn't go to the last assignment of my main flow. When I checked the clipboard n number of threads with the page I am passing were there. My problem is why the passing activity is running only in the last thread and why my main flow is not continuing after the assignment where I start threading.