Skipping execution listeners

Hello,

is it possible to not invoke execution end listeners during interrupting events? What i would like to achieve is execution listener on receive task being invoked only in the scenarios when task listener would be on user task.

Reason for this is, i am having some logic (e.g. external call, DB operation…) there which i do not want to execute in case of e.g. timer triggering the cancellation of process after set time.

I found skipCustomListeners property but that seems to be applicable only for process migration.

Hi @martinv,

you can attach the execution listener on the outgoing sequence flow. So it’s only executed when the receive task is completed.

Best regards,
Philipp

@Philipp_Ossler thanks, i will end up with this solution unless i find out some way to distinguish the regular/interrupt flow in the java.

This suggestion worked, though it basically means not using end listeners, only begin listeners. And I dont like logic being of sequence flows very much :slight_smile: