Question
Murex
LB
Last activity: 28 Nov 2019 10:27 EST
Get Name of Calling Activity
Hi
Can any one please let me know how to get the name of the calling activity in the current activity ?
Thanks,
Mariane
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Fuji Soft Inc
JP
Hi @MarianeA,
Hope the below existing discussions will resolve your query.
https://collaborate.pega.com/question/calling-activity-name
https://community.pega.com/support/support-articles/how-capture-name-calling-activity
Murex
LB
Hello @Thangasuresh-pega
I followed the steps under article: https://community.pega.com/support/support-articles/how-capture-name-calling-activity
I included the code given in the support article in a Java step of the called activity. actName variable was supposed to give the calling activity name but unfortunately it did not. It returned the value "pyrunrecordexecute" as you can see in below screenshot
If you try the java code in the support article, does it return to you the name of the calling activity ?
Thank you,
Mariane
Murex
LB
Pegasystems Inc.
IN
Hi,
Please check the below article.might be helpful
https://collaborate.pega.com/question/how-get-name-calling-activity
https://collaborate.pega.com/question/how-get-name-calling-activity-function-without-passing-name
Thanks
Tekclan Software Solutions
IN
Murex
LB
Hello @Bharathan,
I used the attached Java code in Activity Java Step. However it did not return Calling Activity Name in "ActName" local variable in tracer. Instead it returned the value "pyrunrecordexecute" as you can see in below screenshot
Is that the expected output ?!
Thank you,
Mariane
Tekclan Software Solutions
IN
PEG
GB
The Java code is going to generate the Java stack for the current thread.
If this activity was called with a Batch operation, then this would send the job to a new Batch thread, hence you wouldn't be able to see the calling activity (as this would be a different thread).
I'm not sure if I have an answer for you on this. What are you trying to investigate?