Versions Compared

Key

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

...

Section
Column
width20%
<add-error>
Column
Adds a message to the error message 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
width20%
<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.
  • Eliminate the map-name attribute.

...

Section
Column
width20%
<check-errors>
Column
Halts script execution if the error message list contains any messages. The error message list is returned to the calling process.

Attributes

error-code

optional

The error code to return

Defaults to "error"

error-list-name

optional

The name of the error list

Defaults to "error_list"


Info
titleProposed Changes
  • Eliminate the error-list-name attribute.
Section
Column
width20%
<check-permission>
Column
Checks if the user has the specified permission, and adds an error message to the error message list if the user does not have the specified permission.

Attributes

permission

optional

The permission to check

 

action

optional

The action to be performed (permission scope)

 

error-list-name

optional

The name of the error list

Defaults to "error_list"


Child Elements

<accept-userlogin-party>

optional

<alt-permission>

optional

<fail-message>

optional

<fail-property>

optional


Info
titleProposed Changes
  • Currently, the permission and action attributes are optional. Require the permission and action attributes.
  • Eliminate the error-list-name attribute.
  • Currently, the child elements are optional. Require one child element.
Section
Column
width20%
<condition>
Column
Combines a group of conditional elements into a single logical (true/false) expression.
Code Block
xml
xml
<if>
    <condition>
        <and>
            <if-compare field="colorModel" operator="equals" value="RYB" />
            <or>
                <if-compare field="color" operator="equals" value="red" />
                <if-compare field="color" operator="equals" value="yellow" />
                <if-compare field="color" operator="equals" value="blue" />
            </or>
        </and>
    </condition>
    <then>
        <set field="isPrimaryColor" value="true" type="Boolean" />
    </then>
    <else>
        <set field="isPrimaryColor" value="false" type="Boolean" />
    </else>
</if>

...