The execute script (Integration function) function enables the execution of Java code as script.

Parameter a defines the script either directly as Java code (text) or specifies a file path to a text file with such content.
The parameters b, ..., j are optional for the function call. Assigned values can be addressed in the script using the corresponding letters (b, ..., j).
In addition, the script has read access to all variables, lists and maps available in the profile:
Variables can be addressed by the variable name (e.g.
VAR_FILENAME).script.getList("list_name") returns an entity of thejava.util.Listtype that corresponds to the list with the namelist_name.script.getMap("map_name")returns an entity of thejava.util.Maptype, which corresponds to the map with the namemap_name.
In addition, there is access to DOM objects (type: org.jdom.Document), which can be created with the Lobster_data standard function call SOAP-WebService:
script.getDocument("document_name")returns an entity of theorg.jdom.Documenttype whose content corresponds to the DOM object nameddocument_name.
â–ºNOTEâ—„ A created DOM entity can be deleted inside the script using the script.deleteDocument("document_name")method or outside the script using the standard Lobster_data function delete DOM object(a).
The return value of the function can be optionally set via return "result" (see examples with and without return).
Parameter
Parameter | Description |
|---|---|
a | Script or (relative) file path |
b, ..., j | Script parameters b, ..., j |
Examples
Parameter a | Parameter b | Parameter c | Parameter d | ... | Parameter j | Return value |
|---|---|---|---|---|---|---|
Concatenate strings of parameter b and c from the function call: b+c |
|
|
| |||
Return the value of the variable return VAR_FILENAME; |
| |||||
Call a script provided as a configuration file:
./conf/MyScript.txt |
|
| ||||
Get a value from a map (in parameter c) or a variable depending on the value in parameter b: |
|
|
| |||
Call a script that formats the DOM object provided as parameter b as a string:
./conf/webservice/DOM_script.java |
|
|