Mini-language Reference
The Apache Open For Business Project
Note |
---|
This is a draft document. It can be modified at any time by anyone. |
The <simple-method>
element
Contains a block of code.
Code Block | ||||
---|---|---|---|---|
| ||||
<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 | ||
---|---|---|
| ||
Eliminate unused and seldom used attributes. |
Assignment Operations
<add-error>
Adds a message to the error list.
Code Block | ||||
---|---|---|---|---|
| ||||
<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
optional | |
optional |
Info | ||
---|---|---|
| ||
Currently, child elements are optional. Require at least one child element. |
<clear-field>
<create-object>
<env-to-env>
Warning |
---|
Deprecated. Use <set>. |
<env-to-field>
Warning |
---|
Deprecated. Use <set>. |
<fail-message>
<fail-property>
<field-to-env>
Warning |
---|
Deprecated. Use <set>. |
<field-to-field>
Warning |
---|
Deprecated. Use <set>. |
<field-to-list>
<field-to-request>
<field-to-result>
<field-to-session>
<first-from-list>
<list-to-list>
<map-to-map>
<now-date-to-env>
<now-timestamp-to-env>
<order-map-list>
<property-to-field>
<request-parameters-to-list>
<request-to-field>
<session-to-field>
<set>
<set-calendar>
<set-service-fields>
<string-append>
<string-to-field>
<string-to-list>
<to-string>
<webapp-property-to-field>
Conditional/Looping Statements
<and>
<assert>
<check-id>
<check-errors>
<check-permission>
<condition>
<else>
<else-if>
<if>
<if-compare>
<if-compare-field>
<if-empty>
<if-has-permission>
<if-instance-of>
<if-not-empty>
<if-regexp>
<if-validate-method>
<iterate>
<iterate-map>
<loop>
<not>
<or>
<return>
<then>
<while>
<xor>
Call Operations
<call-bsh>
<call-class-method>
<call-object-method>
<script>
<call-service>
<call-service-asynch>
<call-map-processor>
<call-simple-method>
Entity Operations
<clear-cache-line>
<clear-entity-caches>
<clone-value>
<condition>
<condition-expr>
<condition-list>
<condition-object>
<create-value>
<entity-and>
<entity-condition>
<entity-count>
<entity-data>
<entity-one>
<field-map>
<filter-list-by-and>
<filter-list-by-date>
<find-by-and>
<find-by-primary-key>
<get-related>
<get-related-one>
<having-condition-list>
<make-next-seq-id>
<make-value>
<order-by>
<order-value-list>
<refresh-value>
<remove-by-and>
<remove-list>
<remove-related>
<remove-value>
<select-field>
<sequenced-id-to-env>
<set-current-user-login>
<set-nonpk-fields>
<set-pk-fields>
<store-list>
<store-value>
<transaction-begin>
<transaction-commit>
<transaction-rollback>
Calculate Operations
Warning |
---|
Deprecated. Use a UEL expression. |