Issue with Start Time of boundary event

We are using flowable engine and we are facing issue related to start time of boundary events.

So we have used service task and to handle the error we are using BoundaryEvents to handle those errors. But when we are checking the start time for service task and error handler there start time is same. The issue here is the start of boundary event should be the end of service task which is having the error as it is triggered when there is error in the service task.

<boundaryEvent id="error" name="HandleError" attachedToRef="ServiceTask1">\n
\n
\n

Please provide help on this.

Let me know if more info is required.

Thanks and regards,
Yoginder Singh

Hey @YoginderSingh,

What you should be measuring is the task after the boundary event. The boundary event is created at the some time as the service task and then based on the execution of the service task it is either continued or deleted.

If we take a User Task with a signal, then it is clear why the boundary has to be started at the time the user task is created. Otherwise, the signal will never be received.

Cheers,
Filip