-
1. Re: How to set a task due date in jBPM Designer
abhijithumbe Mar 20, 2015 9:02 AM (in response to pschaefer)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
-
2. Re: How to set a task due date in jBPM Designer
pschaefer Mar 23, 2015 4:58 AM (in response to abhijithumbe)Thank you for your answer! That is what I am looking for!
-
3. Re: How to set a task due date in jBPM Designer
pschaefer Mar 31, 2015 4:36 AM (in response to abhijithumbe)Hey Abhijit,
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.
-
4. Re: How to set a task due date in jBPM Designer
abhijithumbe Mar 31, 2015 4:55 AM (in response to pschaefer)Hi,
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.
-
5. Re: How to set a task due date in jBPM Designer
pschaefer Apr 20, 2015 4:17 AM (in response to abhijithumbe)Hey Abhijit,
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.
-
6. Re: How to set a task due date in jBPM Designer
abhijithumbe Apr 21, 2015 8:38 AM (in response to pschaefer)Hi,
I dont think we can check due date before starting process instance. The only way I can see is parsing BPMN process.