IncPermanentResponse
Group |
|
Class Name |
com.ebd.hub.datawizard.util.IncPermanentResponse |
Function |
This class is able to increment a permanent value if a (preceding) response route was successful. |
Configuration File |
None. The configuration is done with a parameter string. |
Description
The class IncRermanentResponse can alter one or several permanent values. It is able to increment permanent values (e.g. interchange numbers) only if a (preceding) response route was successful. By using appropriate dependencies of the response routes, it can be achieved that the class is only executed in the case of successful data transfer.
To do so, the field Additional parameters expects a string (e.g. by using a variable) containing a list of commands, separated by a | (pipe). Empty commands will be ignored without producing an error. An error might be produced if the previous value of a permanent value has not been an integer value. If a permanent value has not existed before, it will be created with the value 0 and incremented. If Custom in phase 6 of the logging configuration is on, every altered value of a permanent value will be shown in the message log.
Hint: Profiles, that use this class should check the box Profile is a singleton.
Parameter Description
Each command consists of 1 to 4 tokens, separated by semicolon, with the following syntax:
<permanentName>;<global>;<stepSize>;<ignoreError> |
Parameter Name |
Description |
permanentName |
Name of the permanent value, which should be incremented. Default: default. |
global |
(true or false) Allows other profiles to access the permanent value (so profile-wide or system-wide permanent value). Default: false. |
stepSize |
Integer value (positive or negative) to be added. Default: 1. |
ignoreError |
If the keyword ignore is set, an occurring error will be ignored. The error will be written into the message log, but the response route will not terminate with an error. Subsequent commands will be executed. Default: The flag is not set. |
Example
DOCNUM and DOCNUM;false;1 are equivalent. Both commands increment the permanent value DOCNUM by 1 (only for this profile).