This page describes the formats of initial values that are automatically set to Data Items when a Case is started, for each data type. There are two types: "Static Initial Value," which sets a fixed value, and "Dynamic Initial Value," which sets a dynamic value using system variables or EL expressions.
Title
Follows the format of "String (Single-line)."
String
Static Initial Value
Any string can be set for Single-line, Multi-line, and Markdown.
Dynamic Initial Value
Uses SpEL templates. The same variables available in the "Data Update" step can be used, but values of other Data Items cannot be referenced. Only Case attributes (Case ID, Case Sequence Number, Case Start Date, Case Start User, Case Start Organization, etc.) can be referenced.
| Item | Example Setting | Example Output Value |
|---|---|---|
| App ID | #{processModelInfoId} | 12 |
| App Name | #{processModelInfoName} | Inquiry Handling Flow |
| Case ID | #{processInstanceId} | 12345 |
| Case ID (with p prefix) | p#{processInstanceId} | p12345 |
| Case ID (zero-padded, 6 digits) | #{#sformat('%06d', processInstanceId)} | 012345 |
| Case Sequence Number | #{processInstanceSequenceNumber} | 67890 |
| Case Sequence Number (zero-padded, 6 digits) | #{#sformat('%06d', processInstanceSequenceNumber)} | 067890 |
| Case Sequence Number (with prefix string) | xyz#{#sformat('%06d', processInstanceSequenceNumber)} | xyz067890 |
| Case Start Date | #{processInstanceStartDatetime} | 2012-03-14 23:45 |
| Case Start Date (date only) | #{#format(processInstanceStartDatetime, 'yyyy-MM-dd')} | 2012-03-14 |
| Case Start Date (custom format) | #{#format(processInstanceStartDatetime, 'yyyy/MM/dd HH:mm (E) Z')} | 2012/03/14 23:45 (Wed) +0900 |
| Case Start User | #{processInstanceInitQuserName} | SUZUKI Ichiro |
| Case Start Organization | #{processInstanceInitQgroupName} | Sales |
Notes:
%06dmeans "decimal notation, zero-padded to 6 digits." The format string for#sformat()conforms to thejava.lang.String.format()specification.- The format string for
#format()conforms to thejava.text.SimpleDateFormatspecification.
Numeric
Static Initial Value
Any numeric value can be set (e.g., 123.45).
Dynamic Initial Value
Uses SpEL templates.
| Item | Example Setting | Example Output Value |
|---|---|---|
| App ID | #{processModelInfoId} | 12 |
| Case ID | #{processInstanceId} | 12345 |
Select
Static Initial Value
| Choice Type | Format / Setting |
|---|---|
| Fixed choices | Select from the UI |
| Choices retrieved via HTTP | Specify the choice ID value |
| Choice Master (App-shared Add-on / Add-on) | Select from the combo box |
| String-type Data Item | Cannot be specified |
Dynamic Initial Value
Cannot be set.
Date
Static Initial Value
| Subtype | Format | Example |
|---|---|---|
| Date (Y/M/D) | yyyy-mm-dd | 2020-03-14 |
| Year-Month | yyyy-mm | 2020-03 |
| Year | yyyy | 2020 |
| Month-Day | mm-dd | 03-14 |
Dynamic Initial Value
Uses SpEL expressions (not enclosed in #{ }).
| Variable / Expression | Description |
|---|---|
processInstanceStartDatetime | Case Start Date |
processInstanceStartDatetime.addMinutes(N) | N minutes after the Case Start Date |
processInstanceStartDatetime.addHours(N) | N hours after the Case Start Date |
processInstanceStartDatetime.addDays(N) | N days after the Case Start Date |
processInstanceStartDatetime.addMonths(N) | N months after the Case Start Date |
processInstanceStartDatetime.getFirstTimeInMonth() | First day of the month of the Case Start Date |
processInstanceStartDatetime.getLastTimeInMonth() | Last day of the month of the Case Start Date |
processInstanceStartDatetime.getFirstTimeInDate() | Beginning of the Case Start Date (00:00) |
Datetime
Static Initial Value
| Format | Example |
|---|---|
yyyy-mm-dd HH:MM | 2020-03-14 23:45 |
Dynamic Initial Value
The same SpEL expressions as the Date type can be used.
User
Static Initial Value
Select from the combo box.
Dynamic Initial Value
"Case Start User" can be specified as the initial value.
Organization
Static Initial Value
Select from the combo box.
Dynamic Initial Value
"Case Start Organization" can be specified as the initial value. However, if the Case Start User can process the first task from multiple positions, the initial value will not be set.
File / Discussion / Table / Guide Panel
Initial values cannot be set, either static or dynamic.