Package com.jscape.inet.mft.workflow
Class AbstractAction
- java.lang.Object
-
- com.jscape.inet.mft.workflow.AbstractAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractAction.LogActionField-
Nested classes/interfaces inherited from interface com.jscape.inet.mft.workflow.Action
Action.ActionException
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.jscape.inet.mftserver.operation.Domain domain, com.jscape.inet.mft.events.DomainEvent<?> event, ExpressionContext expressionContext, java.lang.String triggerName, java.lang.String triggerTaskId)java.lang.StringgetDisplayName()Returns action display name.java.lang.StringgetGroup()Returns action group name.intgetPriority()Returns the action priority.java.lang.StringgetPropertyDescription(java.lang.String propertyName)Returns action property description.java.lang.StringgetPropertyExample(java.lang.String propertyName)Returns action property usage example.java.lang.ObjectgetResult()java.lang.StringgetResultMessage()Returns result message for logging.java.lang.StringgetTriggerErrorMessage()Returns an error message passed to Trigger Error Event.java.lang.StringgetTriggerName()Returns parent trigger name.booleanisLogAction()Returns action loggable flag.booleanisSuccess()Returns action success flag.voidsetLogAction(boolean value)Sets action loggable flag.voidsetPriority(int value)Sets the action priority.voidsetTriggerErrorMessage(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
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:ActionReturns action display name.- Specified by:
getDisplayNamein interfaceAction- Returns:
- action display name
-
getPropertyDescription
public java.lang.String getPropertyDescription(java.lang.String propertyName)
Description copied from interface:ActionReturns action property description. Used for creating action properties help panel in Manager GUI.- Specified by:
getPropertyDescriptionin interfaceAction- Parameters:
propertyName- the property name- Returns:
- property description text
-
getPropertyExample
public java.lang.String getPropertyExample(java.lang.String propertyName)
Description copied from interface:ActionReturns action property usage example. Used for creating action properties help panel in Manager GUI.- Specified by:
getPropertyExamplein interfaceAction- Parameters:
propertyName- the property name- Returns:
- property usage example
-
getGroup
public java.lang.String getGroup()
Description copied from interface:ActionReturns action group name.
-
isLogAction
public boolean isLogAction()
Description copied from interface:ActionReturns action loggable flag.- Specified by:
isLogActionin interfaceAction- Returns:
trueif action should be logged;falseotherwise
-
setLogAction
public void setLogAction(boolean value)
Description copied from interface:ActionSets action loggable flag.- Specified by:
setLogActionin interfaceAction- Parameters:
value- iftrueaction will be logged
-
getTriggerName
public java.lang.String getTriggerName()
Description copied from interface:ActionReturns parent trigger name.- Specified by:
getTriggerNamein interfaceAction- Returns:
- parent trigger name
-
getResultMessage
public java.lang.String getResultMessage()
Description copied from interface:ActionReturns result message for logging.- Specified by:
getResultMessagein interfaceAction- Returns:
- a result message
-
getTriggerErrorMessage
public java.lang.String getTriggerErrorMessage()
Description copied from interface:ActionReturns an error message passed to Trigger Error Event.- Specified by:
getTriggerErrorMessagein interfaceAction- Returns:
- an error message
-
setTriggerErrorMessage
public void setTriggerErrorMessage(java.lang.String value)
-
isSuccess
public boolean isSuccess()
Description copied from interface:ActionReturns action success flag.
-
getPriority
public int getPriority()
Description copied from interface:ActionReturns the action priority.- Specified by:
getPriorityin interfaceAction- Returns:
- the action priority
-
setPriority
public void setPriority(int value)
Description copied from interface:ActionSets the action priority.- Specified by:
setPriorityin interfaceAction- Parameters:
value- the action priority
-
execute
public void execute(com.jscape.inet.mftserver.operation.Domain domain, com.jscape.inet.mft.events.DomainEvent<?> event, ExpressionContext expressionContext, java.lang.String triggerName, java.lang.String triggerTaskId) throws Action.ActionException- Specified by:
executein interfaceAction- Throws:
Action.ActionException
-
-