Getting Stack Trace in Boundary Error Event

Based on the JavaDocs, the Incidents work as follow:

  1. The IncidentEntity is the actual “Incident”
  2. The IncidentContext is what links the IncidentEntity to a specific Process Instance, Job, and/or Activity. If you dont provide the right context, then the incident is created, but you would be able to know what process instance/job/activity is belongs to.