Showing:

Annotations
Attributes
Instances
Used by

Table of Contents

Group by:
Main schema xml-actions-1.0.xsd
[ top ]
Element CallOperations
Used by
Element Group AllOperations
[ top ]
Element EnvOperations
Used by
Element Group AllOperations
[ top ]
Element EntityMiscOperations
Used by
Element Group AllOperations
[ top ]
Element EntityFindOperations
Used by
Element Group AllOperations
[ top ]
Element EntityValueOperations
Used by
Element Group AllOperations
[ top ]
Element EntityListOperations
Used by
Element Group AllOperations
[ top ]
Element ControlOperations
Used by
Element Group AllOperations
[ top ]
Element XmlOperations
[ top ]
Element IfCombineConditions
Used by
Element Group IfConditions
[ top ]
Element IfBasicOperations
Used by
Element Groups AllOperations, IfConditions
[ top ]
Element IfOtherOperations
Used by
Element Group AllOperations
[ top ]
Element OtherOperations
Used by
Element Group AllOperations
[ top ]
Element actions
Annotations
XML Actions can be embedded in various files, or put in a file of their own and
            run like a script. Like a script the parameters passed into the XML Actions will already be defined in the
            context.
Model CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations
Instance
<actions>
  <CallOperations>{1,1}</CallOperations>
  <EnvOperations>{1,1}</EnvOperations>
  <EntityMiscOperations>{1,1}</EntityMiscOperations>
  <EntityFindOperations>{1,1}</EntityFindOperations>
  <EntityValueOperations>{1,1}</EntityValueOperations>
  <EntityListOperations>{1,1}</EntityListOperations>
  <ControlOperations>{1,1}</ControlOperations>
  <IfBasicOperations>{1,1}</IfBasicOperations>
  <IfOtherOperations>{1,1}</IfOtherOperations>
  <OtherOperations>{1,1}</OtherOperations>
</actions>
[ top ]
Element condition
Annotations
Contains a single condition of any sort and evaluates to a boolean value. To
            combine the other if operations the and, or, and xor elements can be used.
Used by
Elements else-if, if, while
Model IfCombineConditions | IfBasicOperations
Children IfBasicOperations, IfCombineConditions
Instance
<condition>
  <IfCombineConditions>{1,1}</IfCombineConditions>
  <IfBasicOperations>{1,1}</IfBasicOperations>
</condition>
[ top ]
Element service-call
Annotations
Call a service.
Model field-map*
Children field-map
Instance
<service-call async="false" ignore-error="false" include-user-login="true" in-map="false" multi="false" name="" out-map="" transaction="use-or-begin" transaction-timeout="0">
  <field-map field-name="" from="" value="">{0,unbounded}</field-map>
</service-call>
Attributes
QName Type Fixed Default Use Annotation
async restriction of xs:token false optional
If true runs the service asynchronously. Use persist to run async
                    through a database record.
ignore-error boolean false optional
in-map xs:string false optional
Creates an in parameters with variables matching the names of service in-parameters elements, doing
                    type conversions as needed.

                    If false (default) does nothing. If true constructs an in-map from the context.
                    Otherwise is the name of a Map in the context uses it as the source Map for the service context.
include-user-login boolean true optional
Include the current user in the service call. If you don't want to
                    pass that in set to false. Defaults to true.
multi boolean false optional
name xs:string required
The combined service name, like: "${path}.${verb}${noun}". To explicitly separate the verb and noun
                    put a hash (#) between them, like: "${path}.${verb}#${noun}".
out-map xs:string optional
Optional name in the method environment to use for the output (results)
                    map. If empty then the output map will be ignored.
transaction restriction of xs:token use-or-begin optional
transaction-timeout xs:int 0 optional
Defines the timeout for the transaction, in seconds.
                    This value is only used if this service begins a transaction (either require-new, or
                    use-or-begin and there is no other transaction already in place).
[ top ]
Element field-map
Annotations
A name/value pair. If from and value are empty will look in the context
            for a field matching the field-name.
Used by
Attributes
QName Type Fixed Default Use Annotation
field-name xs:string required
Name of the entity field.
from xs:string optional
Name of the field (variable) in the context.
value xs:string optional
Literal string or use ${} syntax to expand variables.
[ top ]
Element service-group
Model service-invoke+
Children service-invoke
Instance
<service-group send-mode="all">
  <service-invoke async="false" name="" result-to-context="false">{1,unbounded}</service-invoke>
</service-group>
Attributes
QName Type Fixed Default Use Annotation
send-mode restriction of xs:token all optional
[ top ]
Element service-invoke
Used by
Element service-group
Attributes
QName Type Fixed Default Use Annotation
async restriction of xs:token false optional
If true runs the service asynchronously. Use persist to run async
                    through a database record.
name xs:string required
The combined service name, like: "${path}.${verb}${noun}". To explicitly separate the verb and noun
                    put a hash (#) between them, like: "${path}.${verb}#${noun}".
result-to-context boolean false optional
[ top ]
Element script
Annotations
Runs the script at the specified location. You can also put a Groovy script inline under this element.
            If a location is specified the file can be a Groovy script or an xml-actions script.
            The script will run in the same context as the current operation.
Type extension of xs:string
Attributes
QName Type Fixed Default Use Annotation
location xs:string optional
[ top ]
Element set
Annotations
Set a field from another field (from) or an inline value, or a
            default-value.
Attributes
QName Type Fixed Default Use Annotation
default-value xs:string optional
Default value to set in field if an empty String or null value is
                    found.
field xs:string required
Name of the field to set a value in.
from xs:string optional
Name of a field to copy from. Can also be an expression that evaluates
                    to something to put into the field.
set-if-empty boolean true optional
If an empty String or null value is found, set that in the field.
                    Defaults to true, set to false to do nothing to the field.
type object-type-new optional
Type to convert to. NewList will create a new List, NewMap will create
                    a new Map.
value xs:string optional
Inline value to copy in field. May include variables using the ${}
                    syntax.
[ top ]
Element order-map-list
Annotations
Sort a List of Maps by field names given in order-by sub-element.
Model order-by+
Children order-by
Instance
<order-map-list list="">
  <order-by field-name="">{1,unbounded}</order-by>
</order-map-list>
Attributes
QName Type Fixed Default Use Annotation
list xs:string required
Name of the list to be sorted.
[ top ]
Element order-by
Annotations
Defines a field to order the results by.
Used by
Attributes
QName Type Fixed Default Use Annotation
field-name xs:string required
Name of field to order list by.
[ top ]
Element filter-map-list
Annotations
Filters the given List of Maps by the field-maps specified.
Model field-map* , date-filter*
Children date-filter, field-map
Instance
<filter-map-list list="">
  <field-map field-name="" from="" value="">{0,unbounded}</field-map>
  <date-filter from-field-name="fromDate" thru-field-name="thruDate" valid-date="">{0,unbounded}</date-filter>
</filter-map-list>
Attributes
QName Type Fixed Default Use Annotation
list xs:string required
The name of the field that contains a List of Map objects.
[ top ]
Element date-filter
Annotations
Adds a constraint to find to filter by the from and thru dates in each record,
            comparing them to the valid-date value.
Used by
Attributes
QName Type Fixed Default Use Annotation
from-field-name xs:string fromDate optional
The name of the entity field to use as the from/beginning effective
                    date. Defaults to fromDate.
thru-field-name xs:string thruDate optional
The name of the entity field to use as the thru/ending effective date.
                    Defaults to thruDate.
valid-date xs:string optional
The name of a field in the context to compare each value to.
                    Defaults to now.
[ top ]
Element entity-data
Annotations
Load or assert each record in an entity-facade-xml file.
Attributes
QName Type Fixed Default Use Annotation
location xs:string required
Location of an XML file to load in database or verify in assert mode.
mode restriction of xs:token load optional
timeout xs:integer -1 optional
Start a new transaction and load the data with a longer timeout.
[ top ]
Element entity-find-one
Annotations
Does a find by primary key. If no value is found does nothing to the
            value-field.
Model field-map* , select-field*
Children field-map, select-field
Instance
<entity-find-one auto-field-map="" cache="" entity-name="" for-update="false" value-field="">
  <field-map field-name="" from="" value="">{0,unbounded}</field-map>
  <select-field field-name="">{0,unbounded}</select-field>
</entity-find-one>
Attributes
QName Type Fixed Default Use Annotation
auto-field-map boolean optional
Looks for all primary key fields by name in the context, and in the parameters map if not found in
                    the context. Defaults to true. If a field-map sub-element is found this will default to false
                    instead.
cache boolean optional
Look in the cache before finding in the datasource. The default for
                    this comes from the cache attribute on the entity definition.
entity-name xs:string required
Name of the entity to find an instance of.
for-update boolean false optional
Lock the selected record so only this transaction can change it until it is ended (committed or
                    rolled back). This does not have to be set to true in order to update the record, it just keeps
                    other transactions from updating it. In SQL this does a select for update.

                    If this is true the cache will not be used, regardless of the cache attribute here and on the
                    entity definition.
value-field xs:string required
Field to put result resulting EntityValue object in.
[ top ]
Element select-field
Annotations
Used to specify fields to select. If there are none of these elements all
            fields will be selected.
Used by
Attributes
QName Type Fixed Default Use Annotation
field-name xs:string required
Name of a field to select.
[ top ]
Element entity-find
Annotations
Like entity-and returns a list of entity values if any are found, otherwise returns an empty list.
            Use any combination of constraint, constraints and constraint-object.
Model search-form-inputs{0,1} , (date-filter | econdition | econditions | econdition-object) , having-econditions{0,1} , select-field* , order-by* , (limit-range | limit-view | use-iterator)
Children date-filter, econdition, econdition-object, econditions, having-econditions, limit-range, limit-view, order-by, search-form-inputs, select-field, use-iterator
Instance
<entity-find cache="" distinct="false" entity-name="" for-update="false" limit="" list="" offset="">
  <search-form-inputs default-order-by="" input-fields-map="" paginate="true">{0,1}</search-form-inputs>
  <having-econditions combine="and">{0,1}</having-econditions>
  <select-field field-name="">{0,unbounded}</select-field>
  <order-by field-name="">{0,unbounded}</order-by>
</entity-find>
Attributes
QName Type Fixed Default Use Annotation
cache boolean optional
Look in the cache before finding in the datasource. The default for
                    this comes from the cache attribute on the entity definition.
distinct boolean false optional
Get only distinct results, based on the combination of all fields
                    selected. Defaults to false.
entity-name xs:string required
Name of entity to find instances of.
for-update boolean false optional
Lock the selected record so only this transaction can change it until it is ended (committed or
                    rolled back). This does not have to be set to true in order to update the record, it just keeps
                    other transactions from updating it. In SQL this does a select for update.

                    If this is true the cache will not be used, regardless of the cache attribute here and on the
                    entity definition.
limit xs:string optional
Get back only this many results.
list xs:string required
Name of the list to put results in.
offset xs:string optional
Get back results starting at this offset.
[ top ]
Element search-form-inputs
Annotations
Adds econditions for the fields found in the input-fields-map.

                The fields and special fields with suffixes supported are the same as the *-find fields in the XML
                Forms. This means that you can use this to process the data from the various inputs generated by XML
                Forms. The suffixes include things like *_op for operators and *_ic for ignore case.  

                For historical reference, this does basically what the Apache OFBiz prepareFind service does.
Used by
Element entity-find
Attributes
QName Type Fixed Default Use Annotation
default-order-by xs:string optional
If no orderByField parameter, order by this.
input-fields-map xs:string optional
The map to get form fields from. If empty will look at the
                    ec.web.parameters map if the web facade is available, otherwise the current context (ec.context).
paginate xs:string true optional
Indicate if this find should set pagination options even if there are
                    no pageSize and pageIndex parameters. Also adds a context field called "${entity-find.@list}Count"
                    with a count of the total possible results (ie without the offset/limit). Defaults to true.
[ top ]
Element econdition
Annotations
Adds a econdition to the query to compare the field-name field to a context
            field, a String value, or another field on the entity.
Used by
Attributes
QName Type Fixed Default Use Annotation
field-name xs:string required
The field on the entity to constrain on. If from, value and
                    to-field-name are all empty this is also used as the name of the context field to compare to.
from xs:string optional
Field expression in the context to compare the entity field to.
ignore xs:string false optional
Ignore the econdition (leave out of the find) if set to true.
                    Defaults to false.
ignore-case boolean false optional
Ignore case when doing the compare. Defaults to false.
ignore-if-empty boolean false optional
Leave out the constraint if the comparison value is empty or null.
                    Defaults to false.
operator operator-entity equals optional
Operator to apply to field-name on one side, and from, value, or to-field-name on the other side.

                        For the between operator the from should be a Collection with exactly 2 values in it.

                        For the in operator the from should be a Collection with 1 to many values in it.

                        For the like operator use the standard SQL wildcards, including "%" for any number of
                        characters (like *) and "_" for a single character (like ?), and escape them with a "!" in
                        from of each character to escape).

                        Defaults to equals.
to-field-name xs:string optional
Compare the field-name field to another field on the entity.
value xs:string optional
Comparison value, use ${} syntax to expand variables.
[ top ]
Element econditions
Annotations
The econditions element contains a list of econditions that are combined with either and or or.
                The default is and.

                You can have econditions under econditions, for building fairly complex econdition trees,
                and you can also drop in econdition-objects at any point.
Used by
Model date-filter | econdition | econditions | econdition-object
Children date-filter, econdition, econdition-object, econditions
Instance
<econditions combine="and">
  <date-filter from-field-name="fromDate" thru-field-name="thruDate" valid-date="">{1,1}</date-filter>
  <econdition field-name="" from="" ignore="false" ignore-case="false" ignore-if-empty="false" operator="equals" to-field-name="" value="">{1,1}</econdition>
  <econditions combine="and">{1,1}</econditions>
  <econdition-object field="">{1,1}</econdition-object>
</econditions>
Attributes
QName Type Fixed Default Use Annotation
combine restriction of xs:token and optional
Operator to use to combine econditions in the list.
[ top ]
Element econdition-object
Annotations
Add a econdition that has been defined elsewhere and is available in the
            current context.
Used by
Attributes
QName Type Fixed Default Use Annotation
field xs:string required
Field in the current context that implements the EntityCondition
                    interface.
[ top ]
Element having-econditions
Annotations
Similar to econditions but runs after the grouping and functions are done.
Used by
Model date-filter | econdition | econditions | econdition-object
Children date-filter, econdition, econdition-object, econditions
Instance
<having-econditions combine="and">
  <date-filter from-field-name="fromDate" thru-field-name="thruDate" valid-date="">{1,1}</date-filter>
  <econdition field-name="" from="" ignore="false" ignore-case="false" ignore-if-empty="false" operator="equals" to-field-name="" value="">{1,1}</econdition>
  <econditions combine="and">{1,1}</econditions>
  <econdition-object field="">{1,1}</econdition-object>
</having-econditions>
Attributes
QName Type Fixed Default Use Annotation
combine restriction of xs:token and optional
Operator to use to combine econditions in the list.
[ top ]
Element limit-range
Annotations
Limit the results by a start index and a size.
Used by
Element entity-find
Attributes
QName Type Fixed Default Use Annotation
size xs:string required
The number of results to include beyond the start.
start xs:string required
The start/beginning index of results to include.
[ top ]
Element limit-view
Annotations
Limit the results using parameters like those used to paginate results in a
            user interface.
Used by
Element entity-find
Attributes
QName Type Fixed Default Use Annotation
view-index xs:string required
Index of records to view, depends on view-size.
view-size xs:string required
Number of records to view, like the number of results per-screen.
[ top ]
Element use-iterator
Annotations
Specifies whether or not to use the EntityListIterator when doing the query. This is much more efficient
            for large data sets because the results are read incrementally instead of all at once. Note that when using
            this the use-cache setting will be ignored. Also note that an EntityListIterator must be closed when you
            are finished, but this is done automatically by the iterate operation. Must be true or false, defaults to
            false.
Used by
Element entity-find
[ top ]
Element entity-find-count
Annotations
Find the count of the number of records that match the given conditions.
            Conditions follow the same structure as in the entity-find operation.
Model (date-filter | econdition | econditions | econdition-object) , having-econditions{0,1} , select-field*
Children date-filter, econdition, econdition-object, econditions, having-econditions, select-field
Instance
<entity-find-count cache="" count-field="" distinct="false" entity-name="">
  <date-filter from-field-name="fromDate" thru-field-name="thruDate" valid-date="">{1,1}</date-filter>
  <econdition field-name="" from="" ignore="false" ignore-case="false" ignore-if-empty="false" operator="equals" to-field-name="" value="">{1,1}</econdition>
  <econditions combine="and">{1,1}</econditions>
  <econdition-object field="">{1,1}</econdition-object>
  <having-econditions combine="and">{0,1}</having-econditions>
  <select-field field-name="">{0,unbounded}</select-field>
</entity-find-count>
Attributes
QName Type Fixed Default Use Annotation
cache boolean optional
Look in the cache before finding in the datasource. The default for
                    this comes from the cache attribute on the entity definition.
count-field xs:string required
Name of the field (variable) to put result of the count in.
distinct boolean false optional
Get only distinct results, based on the combination of all fields
                    selected. Defaults to false.
entity-name xs:string required
Name of entity to search in.
[ top ]
Element entity-find-related-one
Annotations
Find a single value related to an existing value.
Attributes
QName Type Fixed Default Use Annotation
cache boolean optional
Look in the cache before finding in the datasource. The default for
                    this comes from the cache attribute on the entity definition.
for-update boolean false optional
Lock the selected record so only this transaction can change it until it is ended (committed or
                    rolled back). This does not have to be set to true in order to update the record, it just keeps
                    other transactions from updating it. In SQL this does a select for update. If this is true the
                    cache will not be used, regardless of the cache attribute here and on the entity definition.
relationship-name xs:string required
Name of the relationship to use, consists of the relationship title
                    and the related entity name, like: ${title}${related-entity-name}.
to-value-field xs:string required
Name of field to put the entity value result in.
value-field xs:string required
Name of the existing entity value in the context.
[ top ]
Element entity-find-related
Annotations
Find a list of values related to a specific value.
Attributes
QName Type Fixed Default Use Annotation
cache boolean optional
Look in the cache before finding in the datasource. The default for
                    this comes from the cache attribute on the entity definition.
for-update boolean false optional
Lock the selected record so only this transaction can change it until it is ended (committed or
                    rolled back). This does not have to be set to true in order to update the record, it just keeps
                    other transactions from updating it. In SQL this does a select for update. If this is true the
                    cache will not be used, regardless of the cache attribute here and on the entity definition.
list xs:string required
Name of the list to put the entity list result in.
map xs:string optional
A map containing extra constraints for the find.
order-by-list xs:string optional
A list of field names to order the results by.
relationship-name xs:string required
Name of the relationship to use, consists of the relationship title
                    and the related entity name,like: ${title}${related-entity-name}.
value-field xs:string required
Name of the existing entity value in the context.
[ top ]
Element entity-make-value
Annotations
The make-value tag uses the delegator to construct an entity value. The resulting value will not exist in
            the database, but will simply be assembled using the entity-name and fields map. The resulting EntityValue
            object will be placed in the method environment using the specified value-field.
Attributes
QName Type Fixed Default Use Annotation
entity-name xs:string required
The name of the entity to construct an instance of.
map xs:string optional
The name of a map in the method environment that will be used for the
                    entity fields.If the map is an EntityValue object then this will clone the value.
value-field xs:string required
The name of the field where the EntityValue object will be put.
[ top ]
Element entity-create
Annotations
The create-value tag persists the specified EntityValue object by creating a
            new instance of the entity in the datasource. An error will result if an instance of the entity exists in
            the datasource with the same primary key.
Attributes
QName Type Fixed Default Use Annotation
or-update boolean false optional
Update value if already exists instead of returning an error,
                    defaults to false.
value-field xs:string required
The name of the field that contains the EntityValue object.
[ top ]
Element entity-update
Annotations
Updates the specified EntityValue object in the datasource. An error will
            result if the record is not found in the datasource.
Attributes
QName Type Fixed Default Use Annotation
value-field xs:string required
The name of the field that contains the EntityValue object.
[ top ]
Element entity-delete
Annotations
Deletes the specified EntityValue object from the datasource. An error will
            result if the record is not found in the datasource.
Attributes
QName Type Fixed Default Use Annotation
value-field xs:string required
The name of the field that contains the EntityValue object.
[ top ]
Element entity-delete-related
Annotations
Given a value-field and a relationship-name, follows the relationship and deletes all related records.

            For a type one relationship it will remove a single record if it exists, and for a type many
            relationship it will remove all the records that are related to it.

            Instead of using cascading deletes you should have your code delete all related data with foreign keys
            pointing the the value-field record, and then delete the value-field.
Attributes
QName Type Fixed Default Use Annotation
relationship-name xs:string required
Name of a relationship to use to delete related records.
value-field xs:string required
Field that contains an EntityValue object to delete related records
                    from.
[ top ]
Element entity-delete-by-condition
Annotations
Deletes entity values that match the econditions.
Model (date-filter | econdition | econditions | econdition-object)
Children date-filter, econdition, econdition-object, econditions
Instance
<entity-delete-by-condition entity-name="">
  <date-filter from-field-name="fromDate" thru-field-name="thruDate" valid-date="">{1,1}</date-filter>
  <econdition field-name="" from="" ignore="false" ignore-case="false" ignore-if-empty="false" operator="equals" to-field-name="" value="">{1,1}</econdition>
  <econditions combine="and">{1,1}</econditions>
  <econdition-object field="">{1,1}</econdition-object>
</entity-delete-by-condition>
Attributes
QName Type Fixed Default Use Annotation
entity-name xs:string required
The name of the entity to remove instances of.
[ top ]
Element entity-set
Annotations
Looks for each field (pk, nonpk, or all) in the named map and if it exists
            there it will copy it into the named value object.
Attributes
QName Type Fixed Default Use Annotation
include restriction of xs:token all optional
map xs:string context optional
The name of a map in the method environment that will be used for the
                    entity fields. Defaults to the context root, which is where incoming parameters go by default.
prefix xs:string optional
If not null or empty will be pre-pended to each field name
                    (upper-casing the first letter of the field name first), and that will be used as the fields Map
                    lookup name instead of the field-name.
set-if-empty boolean true optional
Specifies whether or not to set fields that are null or empty.
                    Defaults to true.
value-field xs:string required
Field that contains an EntityValue object.
[ top ]
Element entity-sequenced-id-primary
Annotations
Get the next guaranteed unique seq id for this entity, and set it in the
            primary key field. This will set it in the first primary key field in the entity definition, but it really
            should be used for entities with only one primary key field.
Attributes
QName Type Fixed Default Use Annotation
value-field xs:string required
The EntityValue object to work on.
[ top ]
Element entity-sequenced-id-secondary
Annotations
Given an entity value object with all primary key fields except one already set will generate an ID for
                the remaining primary key field by looking at all records with the partial primary key and then adding
                increment-by to the highest value.
Attributes
QName Type Fixed Default Use Annotation
value-field xs:string required
The EntityValue object to work on.
[ top ]
Element iterate
Annotations
The operations contained by the iterate tag will be executed for each of the entries in the list,
            and will make the current entry available in the method environment by the entry-name specified.
            This tag can contain any of the xml-action operations, including the conditional/if operations.

            Any xml-action operation can be nested under the iterate tag.
Model CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations
Instance
<iterate entry="" key="" list="">
  <CallOperations>{1,1}</CallOperations>
  <EnvOperations>{1,1}</EnvOperations>
  <EntityMiscOperations>{1,1}</EntityMiscOperations>
  <EntityFindOperations>{1,1}</EntityFindOperations>
  <EntityValueOperations>{1,1}</EntityValueOperations>
  <EntityListOperations>{1,1}</EntityListOperations>
  <ControlOperations>{1,1}</ControlOperations>
  <IfBasicOperations>{1,1}</IfBasicOperations>
  <IfOtherOperations>{1,1}</IfOtherOperations>
  <OtherOperations>{1,1}</OtherOperations>
</iterate>
Attributes
QName Type Fixed Default Use Annotation
entry xs:string required
The name of the field that will contain each entry as we iterate
                    through the list.
key xs:string optional
If list points to a Map or Collection of Map.Entry the key will be put
                    where this refers to, the value where the entry attribute refers to.
list xs:string required
The name of the field that contains the list to iterate over.
[ top ]
Element message
Annotations
Adds the message (sub-element text) to the ExecutionContext MessageFacade,
            either the errors list if error=true or the messages list otherwise.
Type extension of xs:string
Attributes
QName Type Fixed Default Use Annotation
error boolean false optional
If true will be considered caused by an error, meaning
                            transaction will be rolled back, etc.
[ top ]
Element check-errors
Annotations
Check the ExecutionContext error message list (ec.message.errors) and if it is
            not empty return as an error immediately.
[ top ]
Element return
Annotations
Returns immediately.
Attributes
QName Type Fixed Default Use Annotation
error boolean false optional
If true will be considered caused by an error, meaning transaction
                    will be rolled back, etc.
message xs:string optional
Adds a message to the errors list (ec.message.errors) if error=true,
                    the messages list (ec.message.messages) otherwise.
[ top ]
Element assert
Annotations
Each condition under the assert element will be checked and if it fails an error will be added to the given
            error list. Note that while the definitions for the if-* operations are used, the tags should be empty
            because of the differing semantics.

            This is mainly used for testing, and for writing xml-actions that are meant to be used as part of a test
            suite.

            This is mostly useful for testing because the messages are targeted at a programmer, and not really at an
            end user.
Model IfCombineConditions | IfBasicOperations
Children IfBasicOperations, IfCombineConditions
Instance
<assert title="">
  <IfCombineConditions>{1,1}</IfCombineConditions>
  <IfBasicOperations>{1,1}</IfBasicOperations>
</assert>
Attributes
QName Type Fixed Default Use Annotation
title xs:string optional
A title that can be used in reports for testing.
[ top ]
Element xml-consume
Annotations
Used to process/consume an XML document. The document can be either a text
            file at a location or can be in a field in the current context that is either an XML text document or a
            org.w3c.dom.Document object or even a org.w3c.dom.Element object.
Model xml-consume-element*
Children xml-consume-element
Instance
<xml-consume field="" location="">
  <xml-consume-element element="" xpath="">{0,unbounded}</xml-consume-element>
</xml-consume>
Attributes
QName Type Fixed Default Use Annotation
field xs:string optional
location xs:string optional
[ top ]
Element xml-consume-element
Annotations
Process a single or list of XML elements looked up using an xpath expression relative to the current
            element (or root element if right under the xml-consume element).

            The sub-operations and xml-consume-element tags will be run for each element matching the xpath expression.
Used by
Model (CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations) , xml-consume-element*
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations, xml-consume-element
Instance
<xml-consume-element element="" xpath="">
  <CallOperations>{1,1}</CallOperations>
  <EnvOperations>{1,1}</EnvOperations>
  <EntityMiscOperations>{1,1}</EntityMiscOperations>
  <EntityFindOperations>{1,1}</EntityFindOperations>
  <EntityValueOperations>{1,1}</EntityValueOperations>
  <EntityListOperations>{1,1}</EntityListOperations>
  <ControlOperations>{1,1}</ControlOperations>
  <IfBasicOperations>{1,1}</IfBasicOperations>
  <IfOtherOperations>{1,1}</IfOtherOperations>
  <OtherOperations>{1,1}</OtherOperations>
  <xml-consume-element element="" xpath="">{0,unbounded}</xml-consume-element>
</xml-consume-element>
Attributes
QName Type Fixed Default Use Annotation
element xs:string optional
The name of the field the element/node object will go into for the
                    operations under this tag.This object can be treated either as a org.w3c.dom.Element or as a Map.
xpath xs:string optional
[ top ]
Element xml-produce
Annotations
Used to produce/create an XML document object. Must have at least one
            xml-produce-element operation under it and that becomes the root element.
Model xml-produce-element+
Children xml-produce-element
Instance
<xml-produce field="" output-type="string">
  <xml-produce-element element="" name="" parent-element="">{1,unbounded}</xml-produce-element>
</xml-produce>
Attributes
QName Type Fixed Default Use Annotation
field xs:string optional
output-type restriction of xs:token string optional
The type of output to produce. Either the document object created
                    while adding elements, or that object converted to a String.
[ top ]
Element xml-produce-element
Annotations
Create a single XML element, added to a document under the named parent
            element field. The element created becomes the parent element for any child xml-produce-element operations
            encountered.
Used by
Element xml-produce
Model (CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations)
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations
Instance
<xml-produce-element element="" name="" parent-element="">
  <CallOperations>{1,1}</CallOperations>
  <EnvOperations>{1,1}</EnvOperations>
  <EntityMiscOperations>{1,1}</EntityMiscOperations>
  <EntityFindOperations>{1,1}</EntityFindOperations>
  <EntityValueOperations>{1,1}</EntityValueOperations>
  <EntityListOperations>{1,1}</EntityListOperations>
  <ControlOperations>{1,1}</ControlOperations>
  <IfBasicOperations>{1,1}</IfBasicOperations>
  <IfOtherOperations>{1,1}</IfOtherOperations>
  <OtherOperations>{1,1}</OtherOperations>
</xml-produce-element>
Attributes
QName Type Fixed Default Use Annotation
element xs:string optional
The name of the field the element/node object will go into for the
                    operations under this tag. This object can be treated either as a org.w3c.dom.Element or as a Map
                    to set attributes on the element.
name xs:string required
parent-element xs:string optional
This operation is usually nested somewhere under another
                    xml-produce-element operation and under an xml-produce operation. In those cases there will be a
                    default parent element field that will be automatically used if this is not specified, otherwise an
                    element field must be specified here (with an object type org.w3c.dom.Element).
[ top ]
Element if
Annotations
The if operation offers a flexible way of specifying combinations of conditions, alternate conditions,
            and operations to run on true evaluation of the conditions or to run otherwise.

            The other if operations are meant for a specific, simple condition when used outside of the condition
            sub-element of this operation. The attributes of the other if operations are the same when used inside this
            operation.

            Note that while the definitions for the if-* operations are used, the tags should be empty because of the
            differing semantics.
Model condition{0,1} , then{0,1} , (CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations) , else-if* , else{0,1}
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations, condition, else, else-if, then
Instance
<if condition="">
  <condition>{0,1}</condition>
  <then>{0,1}</then>
  <else-if condition="">{0,unbounded}</else-if>
  <else>{0,1}</else>
</if>
Attributes
QName Type Fixed Default Use Annotation
condition xs:string optional
A boolean expression in Groovy. Will be AND combined with other
                    conditions if present.
[ top ]
Element then
Annotations
Operations to run if the corresponding condition evaluate to true.
Used by
Elements else-if, if, while
Model CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations
Instance
<then>
  <CallOperations>{1,1}</CallOperations>
  <EnvOperations>{1,1}</EnvOperations>
  <EntityMiscOperations>{1,1}</EntityMiscOperations>
  <EntityFindOperations>{1,1}</EntityFindOperations>
  <EntityValueOperations>{1,1}</EntityValueOperations>
  <EntityListOperations>{1,1}</EntityListOperations>
  <ControlOperations>{1,1}</ControlOperations>
  <IfBasicOperations>{1,1}</IfBasicOperations>
  <IfOtherOperations>{1,1}</IfOtherOperations>
  <OtherOperations>{1,1}</OtherOperations>
</then>
[ top ]
Element else-if
Annotations
The else-if element can be used to specify alternate conditional execution blocks.
            Each else-if element must contain two sub-elements: condition and then.

            If the condition of the parent is evaluated to false, each condition of the else-if sub-elements will be
            evaluated, and the operations under the element corresponding to the first condition that evaluates to true
            will be run.
Used by
Element if
Model condition{0,1} , then{0,1} , (CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations)
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations, condition, then
Instance
<else-if condition="">
  <condition>{0,1}</condition>
  <then>{0,1}</then>
</else-if>
Attributes
QName Type Fixed Default Use Annotation
condition xs:string optional
A boolean expression in Groovy. Will be AND combined with other
                    conditions if present.
[ top ]
Element else
Annotations
The else element can be used to contain operations that will run if the condition evaluates to false,
            and when under an if element when no else-if sub-conditions evaluate to true.
            It can contain any xml-actions operation.
Used by
Elements compare, if
Model CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations
Instance
<else>
  <CallOperations>{1,1}</CallOperations>
  <EnvOperations>{1,1}</EnvOperations>
  <EntityMiscOperations>{1,1}</EntityMiscOperations>
  <EntityFindOperations>{1,1}</EntityFindOperations>
  <EntityValueOperations>{1,1}</EntityValueOperations>
  <EntityListOperations>{1,1}</EntityListOperations>
  <ControlOperations>{1,1}</ControlOperations>
  <IfBasicOperations>{1,1}</IfBasicOperations>
  <IfOtherOperations>{1,1}</IfOtherOperations>
  <OtherOperations>{1,1}</OtherOperations>
</else>
[ top ]
Element while
Annotations
While loop operation, uses the same condition element as the if operation.
Model condition{0,1} , then{0,1} , (CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations)
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations, condition, then
Instance
<while condition="">
  <condition>{0,1}</condition>
  <then>{0,1}</then>
</while>
Attributes
QName Type Fixed Default Use Annotation
condition xs:string optional
A boolean expression in Groovy. Will be AND combined with other
                    conditions if present.
[ top ]
Element or
Annotations
To be true just one of the conditions underneath needs to be true.
            Will return true as soon as a condition is true, not evaluating remaining conditions.
Model IfCombineConditions | IfBasicOperations
Children IfBasicOperations, IfCombineConditions
Instance
<or>
  <IfCombineConditions>{1,1}</IfCombineConditions>
  <IfBasicOperations>{1,1}</IfBasicOperations>
</or>
[ top ]
Element and
Annotations
To be true all of the conditions underneath need to be true.
            Will return false as soon as a condition evaluates to false, not evaluating remaining conditions.
            If no conditions evaluate to false will return true.
Model IfCombineConditions | IfBasicOperations
Children IfBasicOperations, IfCombineConditions
Instance
<and>
  <IfCombineConditions>{1,1}</IfCombineConditions>
  <IfBasicOperations>{1,1}</IfBasicOperations>
</and>
[ top ]
Element not
Annotations
Can only have one condition underneath and simply reverse the boolean value of this condition.
Model IfCombineConditions | IfBasicOperations
Children IfBasicOperations, IfCombineConditions
Instance
<not>
  <IfCombineConditions>{1,1}</IfCombineConditions>
  <IfBasicOperations>{1,1}</IfBasicOperations>
</not>
[ top ]
Element compare
Annotations
The operations contained by the if-compare tag will only be executed if the comparison returns true.
            This tag can contain any of the xml-action operations, including the conditional/if operations.
Model (CallOperations | EnvOperations | EntityMiscOperations | EntityFindOperations | EntityValueOperations | EntityListOperations | ControlOperations | IfBasicOperations | IfOtherOperations | OtherOperations) , else{0,1}
Children CallOperations, ControlOperations, EntityFindOperations, EntityListOperations, EntityMiscOperations, EntityValueOperations, EnvOperations, IfBasicOperations, IfOtherOperations, OtherOperations, else
Instance
<compare field="" format="" operator="equals" to-field="" type="Object" value="">
  <CallOperations>{1,1}</CallOperations>
  <EnvOperations>{1,1}</EnvOperations>
  <EntityMiscOperations>{1,1}</EntityMiscOperations>
  <EntityFindOperations>{1,1}</EntityFindOperations>
  <EntityValueOperations>{1,1}</EntityValueOperations>
  <EntityListOperations>{1,1}</EntityListOperations>
  <ControlOperations>{1,1}</ControlOperations>
  <IfBasicOperations>{1,1}</IfBasicOperations>
  <IfOtherOperations>{1,1}</IfOtherOperations>
  <OtherOperations>{1,1}</OtherOperations>
  <else>{0,1}</else>
</compare>
Attributes
QName Type Fixed Default Use Annotation
field xs:string required
The name of the field in the context (environment) that will be
                    compared.
format xs:string optional
Format string based on the type of the object (date, number, etc).
operator operator equals optional
to-field xs:string optional
The name of the context field that the main field will be compared to.
                    If left empty will default to the field attribute's value.
type object-type Object optional
value xs:string optional
The value that the field will compared to. Will evaluate to a String
                    but can be converted to other types.
[ top ]
Element expression
Annotations
A boolean expression should be inline under this element (to avoid problems
            with character encoding, etc). When not under a condition element any xml-action operation can be nested
            under this tag, and will only be run if it evaluates to true.
Type xs:string
[ top ]
Element log
Annotations
Logs a message using Log4J.
Attributes
QName Type Fixed Default Use Annotation
level restriction of xs:token info optional
The logging/debug level to use.
message xs:string optional
The message to log. Can insert variables using the ${} syntax.
[ top ]