Creates a Custom Message for the Listener to send to all connected Managers.
NOTE In FileNet P8 4.0.0 and later, a pre-defined constant value may be specified to indicate whether the content of the message is informational only, a warning, or of a more critical nature. Although a critical level may be specified, the System Manager does not attempt to assign meaning to the Custom Message; it is considered to be application-specific. For more information, see Recording Custom Messages.
void recordCustomMessage(String message, [optional] int criticality);
INFO
WARNING
CRITICAL
FATAL
public static final int
value.
Prior to 4.0.0, all Custom Messages were automatically considered to be
at the INFO
critical level. To allow for backward compatibility, when no critical
level is specified, the INFO
level is automatically
assigned.Listener listener = new Listener("sampleApp", "4.0");
listener.recordCustomMessage("This is a Custom Message.");
Listener listener = new Listener("sampleApp", "4.0");
listener.recordCustomMessage("This is a Warning Message.", WARNING);
...