Timer Duration - extend past night time when timer expires



We have a timer that waits for 1 day until it calls a java method.

<bpmn:startEvent id="CustomerReminderStartEvent" isInterrupting="false">
          <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">P1D</bpmn:timeDuration>

Now we need to make sure that the timer extends it’s expiration depending on time of day.
I.e, if the timer expires after 9pm, then it should extend itself until 8am the following day.

Any tips on how that could be accomplished?


Hi @Henrik_Valerian,

instead of a fixed duration of one day, you could calculate the duration in an expression.

Best regards,