Skip to main content
Skip table of contents

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:

  • Load: Loads the global parameters defined in the adapter parameter groups to the process context (input XML = output XML)
  • Unload: Unloads the global parameters defined in the adapter parameter groups from the process context (input XML = output XML)
  • LoadFromXML: Loads the global parameters from the XML document to the process context
  • UnloadFromXML: Unloads the global parameters from the XML document from the process context
  • Export: Outputs all currently set global parameters to the process context (doesn't need any input document)

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: DEFAULT, Prod, Dev, Test

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
<?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
<?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
<?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>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.