These are configuration formats for output of Date and Datetime data via EL syntax. They are available for updating data of Date-type Data Item and Datetim-type Item in Service Task (Data Assignment), for setting timer date and setting values for each Task. In addition to Fixed values, references to other Date-type/Datetime-type Data Items, references to Process Start Date/System Time can be also used for updating data of Date-type/Datetime-type Data Items. You can also specify values such as 30 minutes later, 7 days later, end of the month, etc., based on the referenced date/time.
BPMN Icon: [Service Task (Data Assignment)]
A Fixed Date/Time in the Specified Format
Format | Assigned Value in Date-type | Assigned Value in Datetime-type |
---|---|---|
2020-03-14 23:45 | 2020-03-14 (2020-03) (03-47) (2020) Follows the subtype setting of the assignment destination |
2020-03-14 23:45 |
Process Start Datetime
Format | Assigned Value |
---|---|
processInstanceStartDatetime | 2020-03-14 23:45 |
processInstanceStartDatetime.addMinutes(30) | 2020-03-15 0:15 |
processInstanceStartDatetime.addHours(2) | 2020-03-15 1:45:00 |
processInstanceStartDatetime.addDays(3) | 2020-03-17 23:45 |
processInstanceStartDatetime.addMonths(-4) | 2019-11-14 23:45 |
processInstanceStartDatetime.addMonths(1).getFirstTimeInMonth() | 2020-04-01 0:00 |
processInstanceStartDatetime.addMonths(1).getLastTimeInMonth() | 2020-04-30 23:59 |
processInstanceStartDatetime.addDays(1).getFirstTimeInDate().addHours(9) | 2020-03-15 9:00 |
System clock
The day
Format | Assigned Value in Date-type | Assigned Value in Datetime-type |
---|---|---|
#today | 2020-03-14 | 2020-03-14 00:00 |
#today.addMonths(1) | 2020-04-14 | 2020-04-14 00:00 |
The time
Format | Assigned Value |
---|---|
#now | 2020-03-14 23:45 |
#now.addDays(-7) | 2020-03-07 23:45 |
#now.addDays(1).getFirstTimeInDate().addHours(9) | 2020-03-15 9:00 |
Date/Datetime Data Item
Format | Assigned Value |
---|---|
#q_datetime | 2020-04-01 9:00 |
#q_datetime.addHours(9) | 2020-04-01 18:00 |
Notes
- Date-type(Y/M/D) and Datetime-type can be assigned interchangeably
- E.g. "Date-type (Y/M/D): 2020-03-14" => "Datetime-type:2020-03-14 00:00"
- (Different from Datetime type) Date type does not hold time/minute information
- Works at '23:59' of the day when assigned to Deadline, and at 00:00 when assigned to Timer Intermediate Event
- No configuration formats in "Service Task (Data Assignment)" clears data
- Also works with an old format using the data definition number (data ['9']) instead of the field name (q_datetime)
Comments
0 comments
Please sign in to leave a comment.