Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The <simple-method> element

Section
Column
width10%
<simple-method>
Column
Contains a block of code.
Code Block
xml
xml
<simple-method method-name="myMethod">
  <!-- some mini-language code goes here -->
</simple-method>

Attributes

method-name

required

Each simple method in a file must have a unique name

short-description

optional

Used for documentation

default-error-code

optional

 

default-success-code

optional

 

parameter-map-name

optional

 

event-request-object-name

optional

 

event-session-object-name

optional

 

event-response-object-name

optional

 

event-response-code-name

optional

 

event-error-message-name

optional

 

event-error-message-list-name

optional

 

event-event-message-name

optional

 

event-event-message-list-name

optional

 

service-response-message-name

optional

 

service-error-message-name

optional

 

service-error-message-list-name

optional

 

service-error-message-map-name

optional

 

service-success-message-name

optional

 

service-success-message-list-name

optional

 

login-required

optional

 

use-transaction

optional

 

locale-name

optional

 

delegator-name

optional

 

security-name

optional

 

dispatcher-name

optional

 

user-login-name

optional

 


Info
titleProposed Changes

Eliminate unused and seldom used attributes.

...

Assignment Operations

Section
Column
width10%
<add-error>
Column
Adds a message to the error list.
Code Block
xml
xml
<add-error>
  <fail-message message="There was an error" />
</add-error>

Attributes

error-list-name

optional

The name of a list that will contain the message

Default is "error_list"


Child Elements

<fail-message>

optional

<fail-property>

optional


Info
titleProposed Changes

Currently, child elements are optional. Require at least one child element.

Section
Column
width10%
<clear-field>
Column
Removes a field from memory.
Code Block
xml
xml

<clear-field field="foo" />

Attributes

field

optional

The name of the field to remove

map-name

optional

The name of the map to remove


Info
titleProposed Changes

Currently, both attributes are optional. Require at least one attribute.

<create-object>
<env-to-env>

...

<session-to-field>
<set>
Section
Column
width10%
<set>
Column
Assigns a value to a field.
Code Block
xml
xml
<set field="foo" value="bar" />
<set field="baz" from-field="foo" />

Attributes

field

required

The name of the field to set (the l-value)

 

from-field

required if value attribute is empty

The name of a field to copy from (the r-value)

 

value

required if from-field attribute is empty

A constant value

 

default-value

optional

A default constant value - used if from-field evaluates to null

 

type

optional

The Java data type of field

Defaults to "String"

set-if-null

optional

Controls if field can be set to null.

Defaults to "false"

set-if-empty

optional

Controls if field can be set to an empty value. The meaning of "empty" depends on the Java data type.

Defaults to "true"


Info
titleProposed Changes
  • Add a new attribute: from-script. The attribute will be used exclusively for scriptlets that are currently found in other attributes.
  • Rename the from-field attribute to from. The attribute will be used exclusively for UEL expressions.
  • Change the behavior of the value attribute: The attribute will be used exclusively for string constants.
  • Remove the type attribute default.

...