How to capture exception information outside the flowable engine

May I ask, in the springboot project, the task of viewing flowable is inherited from AbstractBpmnActivityBehavior. Now there is a question, how can I catch an exception thrown by a task under AbstractBpmnActivityBehavior? I need to obtain the process instance ID, task key, and exception information for the current error/exception task being thrown. How can it be achieved?

Hey @tony2y,

The AbstractBpmnActivityBehavior is not a public API. Are you implementing something on your own or you are asking for something else.

Can you perhaps provide some example of where the exception would happen and what you would like to do then.

Cheers,
Filip

For example, if I want to use ShellActiveBehaviorShellActivityBehavior now, how can I obtain the process instance ID, task execution ID, and actual error information that generated the exception information during execution?