Human Task Handler has a input parameter called DueDate which is not listed in UI. However, you can treat it like any other task input variable. So what needs to be done.
Create task input variable called "DueDate":String
Create process variable called "p_DueDate":String
Do the variable mapping between these two.
Now, when you set the p_DueDate with some value, it will be mapped into DueDate attribute, and this attribute will be propagated in the Task List UI and therefore, available for filtering..etc. jBPM uses JODA time internally, and you need to use ISODateTime. Method dateTimeNoMillis() is used during the parsing process and it accepts following format:
yyyy-MM-ddTHH:mm:ssZZ (Ex. 2015-04-20T15:15:30Z
Thank you for your answer! That is what I am looking for!
I have another question about that issue. Is it possible to define a default value for a task due date in the BPMN 2.0 model? Through the jBPM Designer or by editing the bpmn xml file?
I have not found any possibility to set a default value for a process value.
We cant set default value of variable in process definition.But you can use one script task at the start of the process, which will set values for process variable.
share your thoughts on this approach.
thank you for your advice, it works! The only problem I have is, that I want to know which due date has set a value before process instantiation. For that issue I haven't found any solution.
In Activiti I was able to parse the BPMN file and see which variable is already set.
I dont think we can check due date before starting process instance. The only way I can see is parsing BPMN process.