Class SubFlowRef
- java.lang.Object
-
- io.serverlessworkflow.api.functions.SubFlowRef
-
- All Implemented Interfaces:
Serializable
public class SubFlowRef extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubFlowRef.Invoke
static class
SubFlowRef.OnParentComplete
-
Constructor Summary
Constructors Constructor Description SubFlowRef()
No args constructor for use in serializationSubFlowRef(String workflowId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubFlowRef.Invoke
getInvoke()
Specifies if the function should be invoked sync or async.SubFlowRef.OnParentComplete
getOnParentComplete()
If invoke is 'async', specifies how subflow execution should behave when parent workflow completes.String
getVersion()
Version of the sub-workflow to be invokedString
getWorkflowId()
Unique id of the sub-workflow to be invoked (Required)void
setInvoke(SubFlowRef.Invoke invoke)
Specifies if the function should be invoked sync or async.void
setOnParentComplete(SubFlowRef.OnParentComplete onParentComplete)
If invoke is 'async', specifies how subflow execution should behave when parent workflow completes.void
setVersion(String version)
Version of the sub-workflow to be invokedvoid
setWorkflowId(String workflowId)
Unique id of the sub-workflow to be invoked (Required)SubFlowRef
withInvoke(SubFlowRef.Invoke invoke)
SubFlowRef
withOnParentComplete(SubFlowRef.OnParentComplete onParentComplete)
SubFlowRef
withVersion(String version)
SubFlowRef
withWorkflowId(String workflowId)
-
-
-
Constructor Detail
-
SubFlowRef
public SubFlowRef()
No args constructor for use in serialization
-
SubFlowRef
public SubFlowRef(String workflowId)
- Parameters:
workflowId
-
-
-
Method Detail
-
getWorkflowId
public String getWorkflowId()
Unique id of the sub-workflow to be invoked (Required)
-
setWorkflowId
public void setWorkflowId(String workflowId)
Unique id of the sub-workflow to be invoked (Required)
-
withWorkflowId
public SubFlowRef withWorkflowId(String workflowId)
-
getVersion
public String getVersion()
Version of the sub-workflow to be invoked
-
setVersion
public void setVersion(String version)
Version of the sub-workflow to be invoked
-
withVersion
public SubFlowRef withVersion(String version)
-
getOnParentComplete
public SubFlowRef.OnParentComplete getOnParentComplete()
If invoke is 'async', specifies how subflow execution should behave when parent workflow completes. Default is 'terminate'
-
setOnParentComplete
public void setOnParentComplete(SubFlowRef.OnParentComplete onParentComplete)
If invoke is 'async', specifies how subflow execution should behave when parent workflow completes. Default is 'terminate'
-
withOnParentComplete
public SubFlowRef withOnParentComplete(SubFlowRef.OnParentComplete onParentComplete)
-
getInvoke
public SubFlowRef.Invoke getInvoke()
Specifies if the function should be invoked sync or async. Default is sync.
-
setInvoke
public void setInvoke(SubFlowRef.Invoke invoke)
Specifies if the function should be invoked sync or async. Default is sync.
-
withInvoke
public SubFlowRef withInvoke(SubFlowRef.Invoke invoke)
-
-