|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.audit.event.LogEvent
org.drools.audit.event.ActivationLogEvent
public class ActivationLogEvent
An activation event logged by the WorkingMemoryLogger. It is a snapshot of the event as it was thrown by the working memory. It contains the activation id, the name of the rule and a String representing the declarations of the activation, which is a list of name-value-pairs for each of the declarations in the tuple of the activation. The name is the identifier (=name) of the declaration, and the value is a toString of the value of the parameter, followed by the id of the fact between parentheses. e.g. param1=10; param2=Person[John Doe] Such a String representation is used to create a snapshot of the current state of the activation by storing a toString of the facts bound in the activation. If necessary, this event could be extended to contain a map of declarations too.
Field Summary |
---|
Constructor Summary | |
---|---|
ActivationLogEvent()
|
|
ActivationLogEvent(int type,
String activationId,
String rule,
String declarations,
String ruleFlowGroup)
Create a new activation log event. |
Method Summary | |
---|---|
String |
getActivationId()
Returns a unique id for the activation. |
String |
getDeclarations()
Returns a String representation of the declarations in the activation. |
String |
getRule()
Returns the name of the rule of the activation. |
String |
getRuleFlowGroup()
|
void |
readExternal(ObjectInput in)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.drools.audit.event.LogEvent |
---|
getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActivationLogEvent()
public ActivationLogEvent(int type, String activationId, String rule, String declarations, String ruleFlowGroup)
type
- The type of event. This can only be ACTIVATION_CREATED, ACTIVATION_CANCELLED,
BEFORE_ACTIVATION_FIRE or AFTER_ACTIVATION_FIRE.activationId
- The id of the activationrule
- The name of the rule of the activationdeclarations
- A String representation of the declarations in the
activation.Method Detail |
---|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in class LogEvent
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in class LogEvent
IOException
public String getActivationId()
public String getRule()
public String getDeclarations()
public String getRuleFlowGroup()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |