docs: public void delayEvent(DelayedVariableEvent delayedVariableEvent) {
  
      //if process definition has no conditional events the variable events does not have to be delayed
      Boolean hasConditionalEvents = this.getProcessDefinition().getProperties().get(BpmnProperties.HAS_CONDITIONAL_EVENTS);
      if (hasConditionalEvents == null || !hasConditionalEvents.equals(Boolean.TRUE)) {
        return;
      }
  
      if (isProcessInstanceExecution()) {
        delayedEvents.add(delayedVariableEvent);
      } else {
        getProcessInstance().delayEvent(delayedVariableEvent);
      }
    }