Accessing the last activity's name which generated an error in a called process from a calling process which logged the error.

Accessing the last activity's name which generated an error in a called process from a calling process which logged the error.

book

Article ID: KB0085218

calendar_today

Updated On:

Products Versions
TIBCO Designer -
Not Applicable -

Description

Resolution:
Title:

Accessing the last activity's name which generated an error in a called process from a calling process which logged the error.



Resolution:
There is a function named  BW:getCurrentActivityName()  which is used to access the current activity name in a process. There is no such function to access the last or previous activity name in a project.

The last activity name which failed in error into another called process can be accessed using "StackTrace" and "ProcessStack" of the  ErrorReport of the process which generates the error.

StackTrace - Contains all of the error details of the process which generated the error that is "error stack trace".
ProcessStack - Contains the fully qualified or absolute name of the process which creates the error.

Using these two values you can capture the name of the process which generated the errors.  Attached is a project (Filename: ErrorLog_lastAct.rar) which finds  the erroneous activity name which generated the error and logs it into the log file of another process.

Issue/Introduction

Accessing the last activity's name which generated an error in a called process from a calling process which logged the error.

Additional Information

none

Attachments

Accessing the last activity's name which generated an error in a called process from a calling process which logged the error. get_app