Class Action
- java.lang.Object
-
- io.serverlessworkflow.api.actions.Action
-
- All Implemented Interfaces:
Serializable
public class Action extends Object implements Serializable
Action Definition- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Action()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionDataFiltergetActionDataFilter()StringgetCondition()Expression, if defined, must evaluate to true for this action to be performed.EventRefgetEventRef()Event ReferencesFunctionRefgetFunctionRef()StringgetId()Unique action identifierStringgetName()Unique action definition nameList<String>getNonRetryableErrors()List of unique references to defined workflow errors for which the action should not be retried.List<String>getRetryableErrors()List of unique references to defined workflow errors for which the action should be retried.StringgetRetryRef()References a defined workflow retry definition.SleepgetSleep()SubFlowRefgetSubFlowRef()voidsetActionDataFilter(ActionDataFilter actionDataFilter)voidsetCondition(String condition)Expression, if defined, must evaluate to true for this action to be performed.voidsetEventRef(EventRef eventRef)Event ReferencesvoidsetFunctionRef(FunctionRef functionRef)voidsetId(String id)Unique action identifiervoidsetName(String name)Unique action definition namevoidsetNonRetryableErrors(List<String> nonRetryableErrors)List of unique references to defined workflow errors for which the action should not be retried.voidsetRetryableErrors(List<String> retryableErrors)List of unique references to defined workflow errors for which the action should be retried.voidsetRetryRef(String retryRef)References a defined workflow retry definition.voidsetSleep(Sleep sleep)voidsetSubFlowRef(SubFlowRef subFlowRef)ActionwithActionDataFilter(ActionDataFilter actionDataFilter)ActionwithCondition(String condition)ActionwithEventRef(EventRef eventRef)ActionwithFunctionRef(FunctionRef functionRef)ActionwithId(String id)ActionwithName(String name)ActionwithNonRetryableErrors(List<String> nonRetryableErrors)ActionwithRetryableErrors(List<String> retryableErrors)ActionwithRetryRef(String retryRef)ActionwithSleep(Sleep sleep)ActionwithSubFlowRef(SubFlowRef subFlowRef)
-
-
-
Method Detail
-
getId
public String getId()
Unique action identifier
-
setId
public void setId(String id)
Unique action identifier
-
getName
public String getName()
Unique action definition name
-
setName
public void setName(String name)
Unique action definition name
-
getFunctionRef
public FunctionRef getFunctionRef()
-
setFunctionRef
public void setFunctionRef(FunctionRef functionRef)
-
withFunctionRef
public Action withFunctionRef(FunctionRef functionRef)
-
getEventRef
public EventRef getEventRef()
Event References
-
setEventRef
public void setEventRef(EventRef eventRef)
Event References
-
getSubFlowRef
public SubFlowRef getSubFlowRef()
-
setSubFlowRef
public void setSubFlowRef(SubFlowRef subFlowRef)
-
withSubFlowRef
public Action withSubFlowRef(SubFlowRef subFlowRef)
-
getSleep
public Sleep getSleep()
-
setSleep
public void setSleep(Sleep sleep)
-
getRetryRef
public String getRetryRef()
References a defined workflow retry definition. If not defined the default retry policy is assumed
-
setRetryRef
public void setRetryRef(String retryRef)
References a defined workflow retry definition. If not defined the default retry policy is assumed
-
getNonRetryableErrors
public List<String> getNonRetryableErrors()
List of unique references to defined workflow errors for which the action should not be retried. Used only when `autoRetries` is set to `true`
-
setNonRetryableErrors
public void setNonRetryableErrors(List<String> nonRetryableErrors)
List of unique references to defined workflow errors for which the action should not be retried. Used only when `autoRetries` is set to `true`
-
getRetryableErrors
public List<String> getRetryableErrors()
List of unique references to defined workflow errors for which the action should be retried. Used only when `autoRetries` is set to `false`
-
setRetryableErrors
public void setRetryableErrors(List<String> retryableErrors)
List of unique references to defined workflow errors for which the action should be retried. Used only when `autoRetries` is set to `false`
-
getActionDataFilter
public ActionDataFilter getActionDataFilter()
-
setActionDataFilter
public void setActionDataFilter(ActionDataFilter actionDataFilter)
-
withActionDataFilter
public Action withActionDataFilter(ActionDataFilter actionDataFilter)
-
getCondition
public String getCondition()
Expression, if defined, must evaluate to true for this action to be performed. If false, action is disregarded
-
setCondition
public void setCondition(String condition)
Expression, if defined, must evaluate to true for this action to be performed. If false, action is disregarded
-
-