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 classSubFlowRef.Invokestatic classSubFlowRef.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.InvokegetInvoke()Specifies if the function should be invoked sync or async.SubFlowRef.OnParentCompletegetOnParentComplete()If invoke is 'async', specifies how subflow execution should behave when parent workflow completes.StringgetVersion()Version of the sub-workflow to be invokedStringgetWorkflowId()Unique id of the sub-workflow to be invoked (Required)voidsetInvoke(SubFlowRef.Invoke invoke)Specifies if the function should be invoked sync or async.voidsetOnParentComplete(SubFlowRef.OnParentComplete onParentComplete)If invoke is 'async', specifies how subflow execution should behave when parent workflow completes.voidsetVersion(String version)Version of the sub-workflow to be invokedvoidsetWorkflowId(String workflowId)Unique id of the sub-workflow to be invoked (Required)SubFlowRefwithInvoke(SubFlowRef.Invoke invoke)SubFlowRefwithOnParentComplete(SubFlowRef.OnParentComplete onParentComplete)SubFlowRefwithVersion(String version)SubFlowRefwithWorkflowId(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)
-
-