Hi at all,
I think I found a bug in the camunda engine/test and I want to know if I am right:
Some context: I have a 2 Task process. In the first task I am entering some data, for example the variable EXAMPLE_DATE, in wich I want to store a date. You dont have to enter this date, its optional. In the second task I want to set the Due Date of the second task to EXAMPLE_DATE automatically.
So if I write in my Due Date of the second task:
${empty EXAMPLE_DATE? null: EXAMPLE_DATE}
My tasklist is working fine. If EXAMPLE_DATE is empty or not, it does not matter.
But when I am trying to test this, I am getting following error:
org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression: ${empty EXAMPLE_DATE? null: EXAMPLE_DATE}. Cause: Cannot resolve identifier 'EXAMPLE_DATE'
Then I tried to write following line in my Due Date:
${execution.getVariable('EXAMPLE_DATE')}
When I am using this line, my test is working fine. However in my tasklist the task is just not created. The engine throws following message:
org.camunda.bpm.engine.ProcessEngineException: ENGINE-09027 Exception while resolving duedate ‘’: Invalid format: “”
Do you have any ideas on this? Is this a bug or am I missing something?