OpenWGA 7.7 - TMLScript reference
DesignMethod :
addProblem(occasionKey, problemKey [, params])
addProblem(occasion, problemKey [, params])
On object | Design |
Usage |
Registers a problem |
Description |
This problem has two variants, depending if you previously called startProblemOccasion() to register self-clearing problems, or not: Variant 1 simple takes a string occasion key. Variant 2 uses the occasion object return by startProblemOccasion(). See Registering problems for a description of the problem registration functionality. |
Parameters |
occasionKey (String): Variant1: A string key for the problem occasion occasion (Java-Object of type de.innovationgate.wgpublisher.problems.ProblemOccasion): Varian2: An occasion object previously created by a call to startProblemOccasion() problemKey (String): A string key identifying the problem params (Lookup table, Optional): Additional parameters for the problem. The following predefined keys can be used:
All other keys are used as message parameters for the problem messages. |
Allowed in script types |
|