public class ObjectLogEvent extends LogEvent
ACTIVATION_CANCELLED, ACTIVATION_CREATED, AFTER_ACTIVATION_FIRE, AFTER_PACKAGE_ADDED, AFTER_PACKAGE_REMOVED, AFTER_RULE_ADDED, AFTER_RULE_REMOVED, AFTER_RULEFLOW_COMPLETED, AFTER_RULEFLOW_CREATED, AFTER_RULEFLOW_GROUP_ACTIVATED, AFTER_RULEFLOW_GROUP_DEACTIVATED, AFTER_RULEFLOW_NODE_EXITED, AFTER_RULEFLOW_NODE_TRIGGERED, AFTER_TASK_INSTANCE_COMPLETED, AFTER_TASK_INSTANCE_CREATED, AFTER_VARIABLE_INSTANCE_CHANGED, BEFORE_ACTIVATION_FIRE, BEFORE_PACKAGE_ADDED, BEFORE_PACKAGE_REMOVED, BEFORE_RULE_ADDED, BEFORE_RULE_REMOVED, BEFORE_RULEFLOW_COMPLETED, BEFORE_RULEFLOW_CREATED, BEFORE_RULEFLOW_GROUP_ACTIVATED, BEFORE_RULEFLOW_GROUP_DEACTIVATED, BEFORE_RULEFLOW_NODE_EXITED, BEFORE_RULEFLOW_NODE_TRIGGERED, BEFORE_TASK_INSTANCE_COMPLETED, BEFORE_TASK_INSTANCE_CREATED, BEFORE_VARIABLE_INSTANCE_CHANGED, INSERTED, RETRACTED, UPDATED
Constructor and Description |
---|
ObjectLogEvent(int type,
long factId,
String objectToString)
Create a new activation log event.
|
Modifier and Type | Method and Description |
---|---|
long |
getFactId()
Returns the fact id of the object this event is about.
|
String |
getObjectToString()
Returns a toString of the fact this event is about at the
time the event was created.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public ObjectLogEvent(int type, long factId, String objectToString)
type
- The type of event. This can only be LogEvent.OBJECT_ASSERTED,
LogEvent.OBJECT_MODIFIED or LogEvent.OBJECT_RETRACTED.factId
- The id of the factobjectToString
- A toString of the factpublic 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 long getFactId()
public String getObjectToString()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.