i want to create a timer-event that will be fired based on a processVariable. It always throws errors, no matter what i do. I tried to use joda-time formatter, formatter Builder and so on. I just can’t get it done right.
Static methods cannot be called from an expression. I recommend to use an execution listener at the start of the catch event that converts the process variable to the correct format. Then use this variable in the expression.
Thanks for the reply. I tried something similar. In a Service Task calling a delegate expression that is running beforehand, i created a process-variable named timerDate.
Before you ask, i also tried to convert the String into a Date:
Date validFromDate = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(validFromXmlFormat);
But when i tried to use the variable inside the timer definition of the timer event, i receive an error that this variable is not found.
REMARK:
before posting this, i wanted to get the respective error code. So i reverted my changes back to when i used the process variable. Now it is found and i only receive failures inside of my tests. Which is no Problem.
Thanks for the replay again, dunno why it did not work yesterday and now it works. The magic of sleep, i guess