Alerts and Clears
Alerts are generated when a ConsequenceAction invokes the sendAlertMessage on the RulebaseEngine microagent. The method takes a single argument named 'message'. The value of the argument may be one of the following objects:
AlertLow, AlertMedium, and AlertHigh correspond to alert with level from low to high. They are useful for sending non-alert type messages. All methods take a single string argument called 'alertMsg'. Alerts are cleared when the Test Object (that generated the alert) transitions T->F.
The following code fragment constructs a valid ConsequenceAction which generates a medium alert with text "process down":
DataElement[] args =
{new DataElement("message", new AlertMedium("process down"))};
MethodInvocation mi =
new MethodInvocation("sendAlertMessage", args);
ConsequenceAction ca =
new ConsequenceAction("COM.TIBCO.hawk.microagent.RuleBaseEngine", mi);