| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractAction.LogActionField |
Action.ActionException| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
ACTION_PRIORITY_DESCRIPTOR
A property descriptor for 'Priority' property.
|
static int |
DEFAULT_PRIORITY
Default action priority.
|
static PropertyDescriptor |
LOG_ACTION_DESCRIPTOR
A property descriptor for 'LogAction' property.
|
static PropertyDescriptor |
TRIGGER_ERROR_MESSAGE_DESCRIPTOR
A property descriptor for 'TriggerErrorMessage' property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(com.jscape.util.event.EventContext context,
java.lang.String triggerName)
Executes action for specified event context and trigger name.
|
int |
getPriority()
Returns the action priority.
|
java.lang.String |
getPropertyDescription(java.lang.String propertyName)
Returns action property description.
|
java.lang.String |
getPropertyExample(java.lang.String propertyName)
Returns action property usage example.
|
java.lang.String |
getResultMessage()
Returns result message for logging.
|
java.lang.String |
getTriggerErrorMessage()
Returns an error message passed to Trigger Error Event.
|
java.lang.String |
getTriggerName()
Returns parent trigger name.
|
boolean |
isLogAction()
Returns action loggable flag.
|
boolean |
isSuccess()
Returns action success flag.
|
void |
setEvent(java.lang.Object event)
Sets the event object.
|
void |
setEventContext(java.util.Map<java.lang.String,java.lang.Object> value)
Sets action event context as a map of event property name to property value.
|
void |
setLogAction(boolean value)
Sets action loggable flag.
|
void |
setPriority(int value)
Sets the action priority.
|
void |
setTriggerErrorMessage(java.lang.String value) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getPropertyDescriptorspublic static final PropertyDescriptor ACTION_PRIORITY_DESCRIPTOR
public static final PropertyDescriptor TRIGGER_ERROR_MESSAGE_DESCRIPTOR
public static final PropertyDescriptor LOG_ACTION_DESCRIPTOR
public static final int DEFAULT_PRIORITY
public java.lang.String getPropertyDescription(java.lang.String propertyName)
ActiongetPropertyDescription in interface ActionpropertyName - the property namepublic java.lang.String getPropertyExample(java.lang.String propertyName)
ActiongetPropertyExample in interface ActionpropertyName - the property namepublic boolean isLogAction()
ActionisLogAction in interface Actiontrue if action should be logged;
false otherwisepublic void setLogAction(boolean value)
ActionsetLogAction in interface Actionvalue - if true action will be loggedpublic java.lang.String getTriggerName()
ActiongetTriggerName in interface Actionpublic java.lang.String getResultMessage()
ActiongetResultMessage in interface Actionpublic java.lang.String getTriggerErrorMessage()
ActiongetTriggerErrorMessage in interface Actionpublic void setTriggerErrorMessage(java.lang.String value)
public boolean isSuccess()
Actionpublic void setEvent(java.lang.Object event)
Actionpublic void setEventContext(java.util.Map<java.lang.String,java.lang.Object> value)
ActionsetEventContext in interface Actionvalue - event contextpublic int getPriority()
ActiongetPriority in interface Actionpublic void setPriority(int value)
ActionsetPriority in interface Actionvalue - the action prioritypublic void execute(com.jscape.util.event.EventContext context,
java.lang.String triggerName)
throws Action.ActionException
Actionexecute in interface Actioncontext - an event contexttriggerName - a trigger nameAction.ActionException - if an execution error occursCopyright © JSCAPE LLC. 1999-2019. All Rights Reserved