|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.mft.workflow.AbstractAction
public abstract class AbstractAction
Introduces a basic implementation of the Action
interface
and simplifies further actions development.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.jscape.inet.mft.workflow.Action |
---|
Action.ActionException |
Method Summary | |
---|---|
void |
execute(com.jscape.util.event.EventContext context,
java.lang.String triggerName)
Executes action for specified event context and trigger name. |
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 |
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 |
setTriggerErrorMessage(java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jscape.inet.mft.workflow.Action |
---|
getDescription, getPropertyDescriptors |
Method Detail |
---|
public boolean isLogAction()
Action
isLogAction
in interface Action
true
if action should be logged;
false
otherwisepublic void setLogAction(boolean value)
Action
setLogAction
in interface Action
value
- if true
action will be loggedpublic java.lang.String getTriggerName()
Action
getTriggerName
in interface Action
public java.lang.String getResultMessage()
Action
getResultMessage
in interface Action
public java.lang.String getTriggerErrorMessage()
Action
getTriggerErrorMessage
in interface Action
public void setTriggerErrorMessage(java.lang.String value)
public boolean isSuccess()
Action
isSuccess
in interface Action
true
if action was successful executed;
false
otherwisepublic void setEventContext(java.util.Map<java.lang.String,java.lang.Object> value)
Action
setEventContext
in interface Action
value
- event contextpublic void execute(com.jscape.util.event.EventContext context, java.lang.String triggerName) throws Action.ActionException
Action
execute
in interface Action
context
- an event contexttriggerName
- a trigger name
Action.ActionException
- if an execution error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |