Create incident & throw BPMN error in service task

I have a service task, which can raise exceptions like either Technical Error or Business error. So is that possible to log an incident for service task in case of technical error and throw BPMN error in case of business error?

Will process engine handles both scenarios?

Both things happening at the same time wouldn’t make a lot of sense because they cross domain a bit.
If a BPMN error is triggered it basically means that things in the BPMN model have occurred “as expected” because the event was predicted and handled. the Idea of incidents is to catch technical errors that may occur but are not explicitly expected.

1 Like

Thanks @Niall for clarification. In my case both things won’t happen at same time.

1 Like