Versions Compared

Key

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

...

Section
Column
width20%
<if-validate-method>
Column
Invokes a Java class method that returns a boolean value. Blocks of code are executed based on the boolean value.

Attributes

field

optional

The name of the field to use as a method argument

class

optional

The name of the Java class

method

optional

The name of the class method

map-name

optional

The name of the map containing field


Child Elements

<else>

optional


Info
titleProposed Changes
  • Deprecate and replace with simple method call.
<iterate>
<iterate-map>
<loop>
Section
Column
width20%
<iterate>
Column
Contains a block of code that is executed once for each entry in a specified collection.

Attributes

list

optional

The name of the field containing the collection to iterate

entry

optional

The name of the field that will contain the collection entry


Info
titleProposed Changes
  • Currently, both attributes are optional. Require both attributes.
Section
Column
width20%
<iterate-map>
Column
Contains a block of code that is executed once for each entry in a MapEntry set.

Attributes

map

optional

The name of the field containing the Map

key

optional

The name of the field that will contain the MapEntry key

value

optional

The name of the field that will contain the MapEntry value


Info
titleProposed Changes
  • Currently, all attributes are optional. Require the map attribute and one of the key or value attributes.
Section
Column
width20%
<loop>
Column
Contains a block of code that is executed repeatedly until a maximum count is reached.

Attributes

field

optional

The name of the field containing the current count value

 

count

optional

A maximum count expression

Defaults to "0" (zero)


Info
titleProposed Changes
  • Currently, all attributes are optional. Require all attributes.
Section
Column
width20%
<not>
Column
Inverts a conditional element using a boolean NOT.
Section
Column
width20%
<or>
Column
Combines conditional elements using a boolean OR.
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>

...


Section
Column
width20%
<return>
Column
Returns control (execution) to the calling process.

Attributes

response-code

optional

A response code to return to the calling process


Section
Column
width20%
<then>
Column
Contains a block of code to be executed when a <condition> element evaluates to true.
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>
Section
Column
width20%
<while>
Column
Contains a block of code that is executed repeatedly while a <condition> element evaluates to true.

Child Elements

<condition>

optional

<then>

optional


Info
titleProposed Changes
  • Currently, the <condition> and <then> child elements are optional. Require the <condition> and <then> child elements.
Section
Column
width20%
<xor>
Column
Combines conditional elements using a boolean XOR.

...