Question
Cognizant Technologies
IN
Last activity: 6 Mar 2017 4:10 EST
How to Trace a "Queue" Method?
Hi,
I want to call an activity asynchronously using a Queue Method but not the Queue-For-Agent.
How could I trace he Queue Method activity. Though I am adding Log-Message and testing it.
Please guide.
Thanks,
Shoyeb Khan
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi,
I don't think we can trace the activity called via queue. Because the execution of the queued activity occurs asynchronously in batch requestor. The execution progress of this activity is not predictable. We can understand only if the activity has failed or passed by checking the pxMethodStatus property alone.
Cognizant Technologies
IN
Ya pxMethodStatus is returning the status... But still unable to trace and debug the steps of the activity.
Pegasystems
US
Did you try going to the activity ruleform and choosing "action > trace"? I ask, because I heard that listener activities can be traced in this manner, so it would be worth checking whether queued activities can also be traced similarly. /Eric
Cognizant Technologies
IN
Yes Eric i tried, but no luck..
Pegasystems
US
Something else to think about is this:
When we trace data-pages, there's a tracer event type called "adp" that stands for "asynchronous data page". If you click on that event, you get a SECOND trace open up to show the data-load for that page.
Often, those data-loads of the page are asynchronous activities, so I wonder if it would be possible to similarly show the second trace for asynchronous activities that DON'T happen to be associated with the data-load for a page.
(Hmmm, if it's NOT possible, then a sort-of-strange-but-maybe-useful thing to do is PRETEND you're using a data page, merely to be able to specify your asynch activity and hence get the "adp" and second trace feature available to you)
Cognizant Technologies
IN
That's true for asynchronous calling i could go for Load-Data-Page method using Data Page and I could trace it using ADP option. But, Here we have to create one more additional data page rule and clear it after the use. :)
For now I just completed my development using call method and later changed it to Queue method. Used Log messages for debugging.
But still couldn't get a way to use the tracer and track the Queued activity!
Thanks.
Infosys
AU
I guess (though I am not sure) this might not be possible since the queued activities are executed under the context of a batch requestor.