changes.mady.by.user Adrian adrianc
Saved on Apr 23, 2012
...
<set>
<set field="foo" value="bar" /> <set field="baz" from-field="foo" /> <!-- Field "baz" contains the string "bar" -->
Attributes
Name
Type
Requirements
Description
Notes
field
expression
optionalrequired
The name of the field to set (the l-value), the target of the assignment
from-field
optional
The name of a field to copy from (the r-value)
, script
required if value is empty
An expression or script that returns an object or null
null
The script must be prefixed with the script language followed by a colon (":")
value
constant
required if from is empty
constant+expr
A constant value
Default type = "String"
default-value
constant, constant+expr, expression
A default value - used if from-field evaluates to null
Expressions must be enclosed in ${}
type
The Java data type of field
Defaults to "String"
set-if-null
Controls if field can be set to null.
Defaults to "false"
set-if-empty
Controls if field can be set to an empty value. The meaning of "empty" depends on the Java data type.
Defaults to "true"
Final draft
.
<set-calendar>
<set-calendar field="tomorrowStamp" from-field="nowTimestamp" day="1" /> <set-calendar field="yesterdayStamp" from-field="nowTimestamp" day="-1" />
The name of the field to set (the l-value)
A default constant value - used if from-field evaluates to null
years
A signed integer adjustment amount
months
days
hours
minutes
seconds
millis
period-align-start
Set the adjusted Timestamp to period start: "day", "week", "month", "year"
period-align-end
Set the adjusted Timestamp to period end: "day", "week", "month", "year"
locale
The locale (calendar) to be used for the operation
time-zone
The time zone to be used for the operation