fix issue with boundary event and tokens: create token when the boundary is trigger and not when it is finished to avoid loosing (process can finished if the notify work is executed too late)