Bug 1033694

Summary: Allow specifying dueDate in process definition and handlers
Product: [Retired] JBoss BPMS Platform 6 Reporter: Kris Verlaenen <kverlaen>
Component: jBPM CoreAssignee: Mauricio Salatino <msalatin>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Svitak <jsvitak>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, mbaluch
Target Milestone: ER6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:06:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kris Verlaenen 2013-11-22 15:54:22 UTC
Should be possible to set dueData of a task in process definition, either as:
 - dueDate: a Date property that contains the actual date to be set
 - dueDelay: a String property specifying how much time (compared to now) should be added (should be same format as for notifications / escalations)
The handler(s) should allow processing these properties.

Comment 1 Mauricio Salatino 2013-11-25 20:24:38 UTC
Handlers are ready and committed: http://github.com/droolsjbpm/jbpm/commit/cf2c44dde

Comment 2 Mauricio Salatino 2013-12-03 13:58:46 UTC
I've refactored the Handler to just use one variable "DueDate" to parse Dates (based on ISO standard) and period (with P prefix) :

 http://github.com/droolsjbpm/jbpm/commit/4c64d7868

You can take a look at the tests here:
testTaskWithDueDate() and testTaskWithDelay()

https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-workitems/src/test/java/org/jbpm/services/task/wih/HTWorkItemHandlerBaseTest.java#L664

Comment 3 Jiri Svitak 2014-01-03 13:44:40 UTC
Verified in BPMS 6 ER7 (6.0.1-redhat-2) on the core engine side.

Kris, is there a BZ which tracks this issue as an update of user interface in BPMN editors?

Comment 4 Kris Verlaenen 2014-06-16 13:04:17 UTC
This property is not there by default but could be added manually (first define it in the inputSet and then set its value in the assignments).