Setting Stack Trace To a Property

Hi guys,
Hope all are doing well!! Here I have a requirement in which, as part of the exception handling, we want to capture stack trace and set it to a property. Is there any OOTB function to achieve this?? I see getStackTrace in the ProcessEngineStatus library, but not sure what page to pass as a parameter. Is there any Interface in the Process Engine API that could help??
Thanks for your help in advance....


**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.


Keep up to date on this post and subscribe to comments

October 15, 2010 - 6:47am

getStackTrace function takes a throwable object as a parameter. So whenever an exception is thrown use this function and convert it into a string value and set it into a local variable or use setValue function in java to set the value in a property

October 15, 2010 - 9:36am

Thanks for the reply.... but how do I get hold of the Exception object in the first place?? I am using StepStatusFail in transition, but how do I get the Exception Object??
Thanks again for your help!!!

October 19, 2010 - 9:41am

You can't check that via StepstatusFail method. You have to use the Java method for this

October 19, 2010 - 2:47pm

Any suggestions on how to use Java for this???

November 10, 2010 - 6:22am

Check "getLastMessage" function.

Sankar Reddy G

December 5, 2013 - 1:04am


Do we get any update on this Error Stack Trace retrival ?

Please let me know ASAP.


October 6, 2015 - 10:28am


Can you please let me know how to get the stack trace in a property when we have an expecption on a page?