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 Update Data, 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: [Update Data]
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.addDays(#q_num.intValue())* | 2020-03-17 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 |
* Instead of specifying a fixed value, the value in Numeric-type Data Item (q_num) is referenced
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 |
String
Format | Assigned Value |
---|---|
#dateFormatter.parse('yyyy-MM-dd HH:mm', '2021-04-12 09:45') | 2021-04-12 09:45 |
#dateFormatter.parse('yyyy-MM-dd HH:mm', #dateFormatter.format('yyyy-MM-dd 12:23', #q_date)) | 2021-04-12 12:23 |
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 "Update Data" clears data
Comments
0 comments
Article is closed for comments.