Bug 1033694 - Allow specifying dueDate in process definition and handlers
Summary: Allow specifying dueDate in process definition and handlers
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ER6
: 6.0.0
Assignee: Mauricio Salatino
QA Contact: Jiri Svitak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-22 15:54 UTC by Kris Verlaenen
Modified: 2015-06-02 01:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:06:35 UTC
Type: Bug


Attachments (Terms of Use)

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).


Note You need to log in before you can comment on or make changes to this bug.