public interface MessageRecorder
Provides message recording capabilities in a scripted environment. The recorded messages are displayed in the Service's Monitoring tab in the Usage Logs section. The messages are only displayed if an auditing policy is attached to the operation implemented by the process.
The content of the message must be in string format to record. The following is an example of recording a message.
msg = processContext.getVariable("message"); recorder.record("Recorded Message", msg.getContentAsString(), 0);
In this example a label for the audited message content is specified and the value of 0 is used as the parameterType to indicate we are auditing an input message.
Modifier and Type | Method and Description |
---|---|
void |
record(java.lang.String label,
java.lang.String message)
Records an IN message with a given label.
|
void |
record(java.lang.String label,
java.lang.String message,
int parameterType)
Records a message with a given label.
|
void record(java.lang.String label, java.lang.String message, int parameterType)
label
- Label of the recorded message.message
- Message to record.parameterType
- 0 = IN, 1 = OUT, 2 = FAULTvoid record(java.lang.String label, java.lang.String message)
label
- Label of the recorded message.message
- Message to record.
Rogue Wave, Inc. Copyright (C) 2000-2019, All rights reserved
This software is the confidential and proprietary information of Rogue Wave, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Rogue Wave, Inc.