How To Get Exact Activity Name Where The Process Fails Using Exception.source

How to get exact name of activity where the process is failing, when using Exception.source ?

Approach #1:

  • If a workflow in invoked, and an activity in that workflow has an exception. Also, if the error is caught at the same level as the invoke(put try catch over invoke workflow and catch the exception there) then Exception.source gives the exact name of the activity.

Approach #2:

  • To get the exact name, use "Log Message" activity.
  • Create the Main level variable (Ex. ActivityTracker), update this variable where application level interactions are being performed.


Note:

  • Update this variable before the activity
  • This approach can be used either as practice to the whole process