cancel
Showing results for 
Search instead for 
Did you mean: 

Duedate for Timer

aswini
Champ in-the-making
Champ in-the-making
Is this a correct way of firing a workflow timer?

<timer name="sendMail" duedate="#{bpm_workflowDueDate} - 1 day" transition="sendMail">

I want the timer to fire an event one day before workflow duedate. But this duedate format gives error saying 'Doest evaluate to a date'

Any help on this please?
2 REPLIES 2

jayjayecl
Confirmed Champ
Confirmed Champ
This error raises because jBPM engine cannot understand "#{bpm_workflowDueDate} - 1 day" as a date.
I think you should first build the date you need in a script area, create a new variable that will remain during the whole process, and then put this variable into your timer.

See "WorkflowAdministration" chapter in the wiki, you'll get all the pieces of information you need to do that

aswini
Champ in-the-making
Champ in-the-making
Thanks …

But I tried all of them, the variable does not get set at all … I tried to upload the process definition xml in my previous post as well…

Regards
Aswini