public interface ProcessingStatus
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static int |
SEVERITY_DONOTRECORD
Indicates that this status should never be recorded in a
ProcessingStatus object.
|
static int |
SEVERITY_FAIL
A severity level of Fail.
|
static int |
SEVERITY_GOOD
Indicates that this status is good and there have been no
problems.
|
static int |
SEVERITY_INFO
A severity level of Informational.
|
static int |
SEVERITY_WARN
A severity level of Warning.
|
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int aSeverity,
java.lang.String aMessageName,
java.lang.String aMessageParms)
Adds a new status event to this one.
|
boolean |
add(ProcessingStatus aProcessingStatus)
Adds a new status event to this one.
|
void |
backoutWorst()
Removes the most severe status message from this instance.
|
void |
clear()
Clears all status information from this instance.
|
java.lang.String |
getLatestMessage()
Get the latest status message added to this instance.
|
java.lang.String |
getLatestMessageName()
Get the name of the latest message added to this status.
|
java.lang.String |
getLatestMessageParms()
Get the latest message parameters added to this status.
|
int |
getLatestSeverity()
Get the severity of the latest status added to this instance.
|
java.lang.String |
getLatestSeverityText()
Text description of the latest severity status.
|
PRThread |
getThread()
Get the Thread being used by this status object.
|
java.lang.String |
getWorstMessage()
Get the status message from this instance.
|
java.lang.String |
getWorstMessageName()
Get the name of the message from this status's message ID.
|
java.lang.String |
getWorstMessageParms()
Get the message parameters for this status.
|
int |
getWorstSeverity()
Get the severity of this instance.
|
boolean |
isLessSevereThan(int aSeverity)
Compare a severity level with that of this instance.
|
boolean |
logMissingMessages()
Check if missing messages will be logged to Log-Message during
getWorstMessage() and getLatestMessage() calls. |
void |
set(int aSeverity,
java.lang.String aMessageName,
java.lang.String aMessageParms)
Sets the current status of this instance with a new status
and message.
|
void |
set(ProcessingStatus aProcessingStatus)
Sets the current status of this instance with a new status.
|
void |
setLogMissingMessages(boolean aLogMissingMessages)
Activates or deactivate logging of missing messages to
Log-Message during
getWorstMessage() and getLatestMessage() calls. |
void |
updateMethodStatus()
Updates contents of pxThread.pxMethodStatus property.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final int SEVERITY_GOOD
static final int SEVERITY_DONOTRECORD
static final int SEVERITY_INFO
static final int SEVERITY_WARN
static final int SEVERITY_FAIL
boolean add(ProcessingStatus aProcessingStatus)
aProcessingStatus
- the new status to addtrue
if this object is updated as a result of this callboolean add(int aSeverity, java.lang.String aMessageName, java.lang.String aMessageParms)
aSeverity
- the new severityaMessageName
- the new message identifier (a key to Rule-Message)aMessageParms
- the new message parameters (may be null)true
if this object is updated as a result of this callvoid backoutWorst()
void clear()
java.lang.String getLatestMessage()
logMissingMessages()
has been previously called.
Note that the latest status will differ from the worst status
if the latest is of an equal or lower severity.java.lang.String getLatestMessageParms()
java.lang.String getLatestMessageName()
int getLatestSeverity()
java.lang.String getLatestSeverityText()
java.lang.String getWorstMessage()
logMissingMessages()
has been previously called.java.lang.String getWorstMessageParms()
java.lang.String getWorstMessageName()
int getWorstSeverity()
PRThread getThread()
boolean isLessSevereThan(int aSeverity)
aSeverity
- a severity to compare against this instancetrue
if this instance is less severe than aSeverityboolean logMissingMessages()
getWorstMessage()
and getLatestMessage()
calls.true
if missing messages are being loggedvoid set(int aSeverity, java.lang.String aMessageName, java.lang.String aMessageParms)
aSeverity
- the new severityaMessageName
- the new message identifier (a key to Rule-Message)aMessageParms
- the new message parameters (may be null)void set(ProcessingStatus aProcessingStatus)
aProcessingStatus
- the new statusvoid setLogMissingMessages(boolean aLogMissingMessages)
getWorstMessage()
and getLatestMessage()
calls.aLogMissingMessages
- void updateMethodStatus()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.