cancel
Showing results for 
Search instead for 
Did you mean: 

activiti:dueDate data type / expression language issue

thilo_ginkel
Champ in-the-making
Champ in-the-making
Hi there,

I am trying to set a due date for a user task in a BPMN XML file by means of the activiti:dueDate attribute.

Unfortunately, I was not yet successful to attach the correct data type to this attribute. Entering a plain ISO date ends up as a java.lang.String. Is there a way in JUEL to convert a string into a java.util.Date?

Thanks,
Thilo
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Can you post the snippet of process xml you are using?

thilo_ginkel
Champ in-the-making
Champ in-the-making
Can you post the snippet of process xml you are using?
Sure:
<userTask id="taskA1" name="Test Task" activiti:assignee="testUser1" activiti:dueDate="${???('1970-01-01T00:00:00+01:00')}">
    <documentation>Task A1</documentation>
</userTask>
What I am not sure about is whether there is any stock functionality to instantiate a java.util.Date within the dueDate expression (thus the question marks in the expression, which is of course not valid this way).

Thanks,
Thilo

P.S.: Sorry for the late reply.

jbarrez
Star Contributor
Star Contributor
I Haven't tried it, but a java SimpleDateFormat might be used for that purpose.