Global Parameter Initializer (previously: Custom Placeholder Initializer) (deprecated)
Global Parameter Initializer
: Manages global parameters within the current process. The loading and unloading of parameters from the process context can be controlled by means of adapter parameters or an XML document.
Properties
Operation | Defines the operation executed by the adapter Possible values:
|
Parameters
Adapter | Main adapter class (do not change!) Possible values: de.softproject.integration.adapter.globalparameter.GlobalParameterInitializerAdapter: Main class (default) |
groups | List of the global parameter groups to be loaded from the global parameter storage (Global Parameter Configuration; previously: Custom Placeholder Storage Editor). Values can be separated by comma or semicolon. Example: |
Status values
1 (successful) | The operation was successful |
0 (empty) | No global parameters were loaded to the process context |
-1 (failed) | The operation failed due to a technical error |
Input
The operations LoadFromXML
and UnloadFromXML
expect the following XML format:
LoadFromXML
<?xml version="1.0" encoding="UTF-8"?>
<Placeholder>
<Group name="DEV">
<Key name="message">Hello developer!</Key>
</Group>
<Group name="DEFAULT">
<Key name="message">Hello world!</Key>
</Group>
</Placeholder>
The two global parameter groups DEFAULT
and DEV
with the corresponding global parameter message
are stored in the parameter context.
UnloadFromXML
<?xml version="1.0" encoding="UTF-8"?>
<Placeholder>
<Group name="DEV" />
<Group name="DEFAULT">
<Key name="message" />
</Group>
</Placeholder>
All global parameters of the group DEV
and the global parameter message
from the DEFAULT
global parameter group are removed from the process context.
Output
The operation Get
outputs all current global parameters within the process context. The operations LoadFromXML
and UnloadFromXML
output the processed elements.
<?xml version="1.0" encoding="UTF-8"?>
<Placeholder>
<Group name="DEV">
<Key name="message">Hello developer!</Key>
</Group>
<Group name="DEFAULT">
<Key name="message">Hello world!</Key>
</Group>
</Placeholder>