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 ActionDataFilter
getActionDataFilter()
String
getCondition()
Expression, if defined, must evaluate to true for this action to be performed.EventRef
getEventRef()
Event ReferencesFunctionRef
getFunctionRef()
String
getId()
Unique action identifierString
getName()
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.String
getRetryRef()
References a defined workflow retry definition.Sleep
getSleep()
SubFlowRef
getSubFlowRef()
void
setActionDataFilter(ActionDataFilter actionDataFilter)
void
setCondition(String condition)
Expression, if defined, must evaluate to true for this action to be performed.void
setEventRef(EventRef eventRef)
Event Referencesvoid
setFunctionRef(FunctionRef functionRef)
void
setId(String id)
Unique action identifiervoid
setName(String name)
Unique action definition namevoid
setNonRetryableErrors(List<String> nonRetryableErrors)
List of unique references to defined workflow errors for which the action should not be retried.void
setRetryableErrors(List<String> retryableErrors)
List of unique references to defined workflow errors for which the action should be retried.void
setRetryRef(String retryRef)
References a defined workflow retry definition.void
setSleep(Sleep sleep)
void
setSubFlowRef(SubFlowRef subFlowRef)
Action
withActionDataFilter(ActionDataFilter actionDataFilter)
Action
withCondition(String condition)
Action
withEventRef(EventRef eventRef)
Action
withFunctionRef(FunctionRef functionRef)
Action
withId(String id)
Action
withName(String name)
Action
withNonRetryableErrors(List<String> nonRetryableErrors)
Action
withRetryableErrors(List<String> retryableErrors)
Action
withRetryRef(String retryRef)
Action
withSleep(Sleep sleep)
Action
withSubFlowRef(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
-
-