Skip to main content

AWE Maintain Schema

Generated from maintain.xsd. It includes query.xsd.

This Schema defines the way an AWE Maintain file must be structured

12 elements, 20 declared attributes (20 documented).

Elements​

Elements: maintain, target, send-email, commit, retrieve-data, multiple, serve, queue, delete, insert, update, include-target

maintain​

Root element of a maintain file. It contains the targets.

Type: maintainType

Contains: target (0..n)

Contained by: none (document root)

Attributes: none

target​

Named group of operations that run in order in one transaction. The changes are committed at each commit element and at the end of the target; an error rolls back what was not committed.

Type: targetType

Contains: insert (0..n), update (0..n), delete (0..n), serve (0..n), queue (0..n), commit (0..n), multiple (0..n), send-email (0..n), include-target (0..n), retrieve-data (0..n)

Contained by: maintain

AttributeTypeRequiredDefaultDescription
namestringyesUnique identifier of the target. Screens launch the target by this name.
labelstringnoLocalization key of the title of the response. When omitted a generic success title is used.
exclusivetrue, falsenoIntended to prevent concurrent executions of the target. The engine reads it but does not use it yet.
publictrue, falsenoAllows the target to be launched without an authenticated session. Default false.

send-email​

Sends an email defined in the email file.

Type: emailType

Contains: no child elements

Contained by: target

AttributeTypeRequiredDefaultDescription
idstringyesId of the email, defined in the email file, that is sent.
labelstringnoLocalization key of the message returned when the operation finishes without a message of its own.

commit​

Commits the changes made so far in the target.

Contains: no child elements

Contained by: target

Attributes: none

retrieve-data​

Runs a query (SQL, service, enumerated or queue) and stores every returned column as a parameter named after its alias, for the following operations.

Type: retrieveDataType

Contains: table (0..n), computed (0..n), compound (0..n), field (0..n), constant (0..n), operation (0..n), case (0..n), over (0..n), join (0..n), union (0..n), variable (0..n), where (0..n), having (0..n), order-by (0..n), group-by (0..n), totalize (0..n)

Contained by: target

AttributeTypeRequiredDefaultDescription
distincttrue, falsenoReturns only distinct rows (SELECT DISTINCT). Default false.
enumeratedidentifierTypenoId of an enumerated group whose values fill the query instead of a database table. Only used by enumerated queries.
serviceidentifierTypenoId of the service, defined in the services file, that returns the data instead of a database. Only used by service queries.
queueidentifierTypenoId of the JMS queue, defined in the queues file, used to obtain the data. Only used by queue queries.
cacheabletrue, falsenoCaches the result using the query id plus the resolved request parameters as key, so the same call is not executed again during the cache lifetime. Default false.
managed-paginationtrue, falsenoControls how a SQL query is paginated. When true or omitted, the database returns only the requested page (limit and offset plus a count query), unless the query has a totalize element or the page size is 0. When false, all rows are fetched and the page is cut in memory. Not applied to totalized queries.
post-processtrue, falsenoOnly for service queries. When true (default) AWE processes the returned data list (transforms, translations, computed fields). Set it to false to keep the service result untouched.
publictrue, falsenoAllows the query to be launched without an authenticated session. Default false.

multiple​

Inserts, updates or deletes the rows sent by a grid, according to the row type of each row.

Type: multipleType

Contains: table (0..n), field (0..n), variable (0..n)

Contained by: target

AttributeTypeRequiredDefaultDescription
auditstringnoName of the audit table that stores the audit rows of the operations.
labelstringnoLocalization key of the message returned when the operation finishes without a message of its own.
gridstringyesId of the grid that sends the rows. The row type of each row (insert, update or delete) is read from the request parameter named after the grid followed by -RowTyp.

serve​

Calls a Java or web service.

Type: serveType

Contains: variable (0..n)

Contained by: target

AttributeTypeRequiredDefaultDescription
servicestringyesId of the service, defined in the services file, that is called.
labelstringnoLocalization key of the message returned when the operation finishes without a message of its own.

queue​

Sends a message to a JMS queue.

Type: queueType

Contains: variable (0..n)

Contained by: target

AttributeTypeRequiredDefaultDescription
namestringyesId of the JMS queue, defined in the queues file, that receives the message.
labelstringnoLocalization key of the message returned when the operation finishes without a message of its own.

delete​

Deletes the rows that match its where clause.

Type: deleteType

Contains: table (0..n), field (0..n), constant (0..n), operation (0..n), variable (0..n), where (0..n)

Contained by: target

AttributeTypeRequiredDefaultDescription
multipletrue, auditnoRuns the operation once per value of the list variables (true), or only audits once per value (audit). When omitted the operation runs once.
auditstringnoName of the audit table that stores the audit rows of the operation. The table must exist and have the audit user, date and action columns.
batchtrue, falsenoRuns the statements in JDBC batches. Default false.
batch-sizeintegernoNumber of statements per batch. When omitted, the value of the database configuration property is used.
labelstringnoLocalization key of the message returned when the operation finishes without a message of its own.

insert​

Inserts a row, or the rows of a query.

Type: insertType

Contains: table (0..n), field (0..n), constant (0..n), operation (0..n), variable (0..n)

Contained by: target

AttributeTypeRequiredDefaultDescription
multipletrue, auditnoRuns the operation once per value of the list variables (true), or only audits once per value (audit). When omitted the operation runs once.
auditstringnoName of the audit table that stores the audit rows of the operation. The table must exist and have the audit user, date and action columns.
batchtrue, falsenoRuns the statements in JDBC batches. Default false.
batch-sizeintegernoNumber of statements per batch. When omitted, the value of the database configuration property is used.
labelstringnoLocalization key of the message returned when the operation finishes without a message of its own.
querystringnoId of a query whose rows are inserted (INSERT INTO SELECT). The number of fields must match the columns of the query.

update​

Updates the rows that match its where clause.

Type: updateType

Contains: table (0..n), field (0..n), constant (0..n), operation (0..n), variable (0..n), where (0..n)

Contained by: target

AttributeTypeRequiredDefaultDescription
multipletrue, auditnoRuns the operation once per value of the list variables (true), or only audits once per value (audit). When omitted the operation runs once.
auditstringnoName of the audit table that stores the audit rows of the operation. The table must exist and have the audit user, date and action columns.
batchtrue, falsenoRuns the statements in JDBC batches. Default false.
batch-sizeintegernoNumber of statements per batch. When omitted, the value of the database configuration property is used.
labelstringnoLocalization key of the message returned when the operation finishes without a message of its own.

include-target​

Runs the operations of another target at this point.

Type: includeTargetType

Contains: variable (0..n)

Contained by: target

AttributeTypeRequiredDefaultDescription
namestringyesName of the target whose operations are run at this point. The target must exist in a maintain file.

Simple types​

multipleRestriction​

true runs the operation once per value of the list variables; audit runs it once and audits once per value.

Base type: string

Allowed values: true, audit