Timer Expression to express a certain time of day (not repeating)

2,495 views
Skip to first unread message

sascha.karch...@gmail.com

unread,
Jun 2, 2014, 5:41:24 AM6/2/14
to camunda-...@googlegroups.com
My use case is as follows:
- a new process instance is spawned at a random time
- Let's say for example at 12a.m.
- Then this process instance should start to do it's work at 6p.m. (or a bit later)

I had a look at http://docs.camunda.org/latest/api-references/bpmn20/#events-timer-events and the BPMN real life book from camunda which explains that stuff pretty well. I understand that this can be achieved by an intermediate catch event with timer. I hope this assumption is correct.

But I do not get the glue how to define the timer expression. Do I have to define the "Date", "Duration" or "Cycle" of the Intermediate Catch Event?

And what is the appropriate expression?

Thanks very much for any help in advance.

Daniel Meyer

unread,
Jun 2, 2014, 6:33:06 AM6/2/14
to camunda-...@googlegroups.com, sascha.karch...@gmail.com
Hi Sasha, 

In your case I think that "date" is best suited. Date is used when your timer should fire at a given point in time. 
"Duration" is used when you want the timer to fire after some duration, 5 minutes, 5 days, 10 weeks ...

See also

You yould calculate the date based on the current time and then reference the value in an expression.

Cheers,
Daniel

sascha.karch...@gmail.com

unread,
Jun 2, 2014, 7:28:01 AM6/2/14
to camunda-...@googlegroups.com, sascha.karch...@gmail.com
Hi Daniel,

Sorry for stupid detail questions.
The help from your side is too good.

Camunda documentation says "... timer definition must have exactly one element from the following:
timeDate: This format specifies fixed date in ISO 8601 format, when trigger will be fired. ..."

What does "fixed date in ISO 8601 format" mean?

According to wikipedia ISO 8601 defiens lots of different formats like Week dates, Ordinal dates, Times etc.
Is it possible to define only the time portion (hhmmss) for the timeDate property?

thanks for your help?

Reply all
Reply to author
Forward
0 new messages