Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Finalize Attributes section, remove previously deprecated elements.

...

Note

This is a draft document. It can be modified at any time by any committer. Comments on the draft should be made on the dev mailing list.


Attributes

...

Attribute Types

...

titleProposed Attribute Type Section

Type

Description

Example

...

constant

A string constant. The string may not include an expression

name="fooMethod"

constant+expr

A string constant. The string may include an expression, but an expression-only string is not allowed

default="${foo}Method"

expression

A UEL expression

from="item.quantity * item.priceEach"

script

A short script ("scriptlet")

script="groovy:foo.bar();"


The <simple-method> element

...

Section
Column
width20%
<create-object>
Column
Create a new Java object.
Code Block
xml
xml
<create-object field="foo" class-name="com.acme.FooClass">
  <string value="bar" />
  <field field="foo" />
</create-object>

Attributes

field

optional

The name of the field for the new object

class-name

optional

The Java class name


Child Elements

<field>

optional

<string>

optional


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
  • Deprecate and replace with scriptlet
Section
Column
width20%
<env-to-env>
Column
Warning

Deprecated. Use <set>.

Section
Column
width20%
<env-to-field>
Column
Warning
Deprecated. Use <set>.
Section
Column
width20%
<fail-message>
Column
Declares a message to be added to a message list.
Code Block
xml
xml
<add-error>
  <fail-message message="There was an error" />
</add-error>

Attributes

message

optional

The message text


Info
titleProposed Changes
  • Currently, the message attribute is optional. Require the message attribute.
Section
Column
width20%
<fail-property>
Column
Declares a property key that is used to add a message to a message list.
Code Block
xml
xml
<add-error>
  <fail-property resource="ErrorMessages" property="FooError" />
</add-error>

Attributes

resource

optional

Name of the resource where the message can be found

property

optional

The message property key


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
Section
Column
width20%
<field-to-env>
Column
Warning

Deprecated. Use <set>.

Section
Column
width20%
<field-to-field>
Column
Warning
Deprecated. Use <set>
  • .
Section
Column
width20%
<field-to-list>
Column
Copies a field to a list.
Code Block
xml
xml
<field-to-list list="barList" field="foo" />

Attributes

list

optional

Name of the list. If the list does not exist, one is created.

field

optional

The field to add to the list


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
  • Deprecate and replace with UEL expression.

...