...
Calls a service asynchronously and ignores the result, so no return messages are used; that doesn't mean no errors will result, but they would just be system errors like database failures, etc which all have system error messages.
Attribute Name | Required? | Description |
---|---|---|
service-name | Y | |
in-map-name | Y | |
include-user-login | N | Defaults to "true". |
call-bsh
Runs an external bsh script from the classpath if resource is specified and then runs the inlined bsh script if any is specified.
The bsh context is the current simple-method environment including maps, lists and special objects whose names are defined in the simple-method attributes.
The current env cannot be modified, but if a Map is returned by the bsh block the entries in the map will be put into the current env.
Error messages go on the error list and are handled with the check-errors tag.
Attribute Name | Required? | Description |
---|---|---|
resource | N | |
error-list-name | N | Defaults to "error_list". |
call-simple-method
The call-simple-method tag calls another simple-method in the same context as the current one. In other words the called simple-method will have the same environment as the calling simple-method, including all environment fields, and either the event or service objects that the calling simple-method was called with.
Attribute Name | Required? | Description |
---|---|---|
xml-resource | N | The full path and filename on the classpath of the XML file which contains an external simple-method to execute. This is only required if a simple-method in a different file is desired. |
method-name | Y | The name of the simple-method to execute in the specified xml-resource, or in the current XML file if no xml-resource is specified. |
Java Call Operations
create-object
Creates an object of the given class and if the field-name is specified saves it in that field.
The string and field sub-elements are passed to the constructor method as arguments in the order they are specified. If the sub-elements do not match the constructor method arguments an error will be returned.
Attribute Name | Required? | Description |
---|---|---|
class-name | Y | The name of the class to construct an object of. |
field-name | N | The name of a field to put the new object in. If not specified the object will be created but ignored after that. |
map-name | N | The name of the map the field will go in. If not specified the field will be put in the environment. |
Sub-Element Name | How Many | Description |
---|---|---|
string | 0 to many | Used to specify an inline String argument to the constructor method. |
field | 0 to many | Used to specify a field to be passed as an argument to the constructor method. The field can be in a map in the environment or if no map-name is specified then the field will come directly from the environment. |
call-object-method
Calls a method on an existing object that exists in a field in the environment or in a map in the environment.
The string and field sub-elements are passed to the method as arguments in the order they are specified. If the sub-elements do not match the method arguments an error will be returned.
The return value will be put in the named field if an value is returned and if a field and optionally a map name are specified.
Attribute Name | Required? | Description |
---|---|---|
obj-field-name | Y | The name of the field the object is in that has the method to be called. |
obj-map-name | N | The name of the map the field of the object is in that has the method to be called. If this is not specified the environment will be used to find the field in. |
method-name | Y | The name of the method to call on the given object. |
ret-field-name | N | The name of the field to put the result in. If not specified any return value will be ignored. |
ret-map-name | N | The name of the map the field of the return value is in. If not specified but the field name is then the environment will be used to find the field in. |
Sub-Element Name | How Many | Description |
---|---|---|
string | 0 to many | Used to specify an inline String argument to the method call. |
field | 0 to many | Used to specify a field to be passed as an argument to the method call. The field can be in a map in the environment or if no map-name is specified then the field will come directly from the environment. |
call-class-method
Calls a static method on a class.
The string and field sub-elements are passed to the method as arguments in the order they are specified. If the sub-elements do not match the method arguments an error will be returned.
The return value will be put in the named field if an value is returned and if a field and optionally a map name are specified.