Skip to content

Conditional Timer Boundary Event #252

Discussion options

You must be logged in to vote

Hello,
I have added the following to the documentation for future reference:

Timer Expression

  • Timer value can be a text string like PT30S or can be a JavaScript Expression $appServices.getTimerDelay(this)
    <bpmn2:boundaryEvent id="Event_0hx26qc" cancelActivity="false" attachedToRef="Activity_0cijuru">
      <bpmn2:timerEventDefinition id="TimerEventDefinition_0hwwvzf">
        <bpmn2:timeDuration xsi:type="bpmn2:tFormalExpression">$appServices.getTimerDelay(this)</bpmn2:timeDuration>
      </bpmn2:timerEventDefinition>
    </bpmn2:boundaryEvent>

In this case it is calling an appServices.ts method:

    getTimerDelay(item) {
        // item passed is that of the boundary event
        /…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ralphhanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants