Class FunctionRef
- java.lang.Object
-
- io.serverlessworkflow.api.functions.FunctionRef
-
- All Implemented Interfaces:
Serializable
public class FunctionRef extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FunctionRef.Invoke
-
Constructor Summary
Constructors Constructor Description FunctionRef()
No args constructor for use in serializationFunctionRef(String refName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
getArguments()
Function argumentsFunctionRef.Invoke
getInvoke()
Specifies if the function should be invoked sync or async.String
getRefName()
Name of the referenced function (Required)String
getSelectionSet()
Only used if function type is 'graphql'.void
setArguments(com.fasterxml.jackson.databind.JsonNode arguments)
Function argumentsvoid
setInvoke(FunctionRef.Invoke invoke)
Specifies if the function should be invoked sync or async.void
setRefName(String refName)
Name of the referenced function (Required)void
setSelectionSet(String selectionSet)
Only used if function type is 'graphql'.FunctionRef
withArguments(com.fasterxml.jackson.databind.JsonNode arguments)
FunctionRef
withInvoke(FunctionRef.Invoke invoke)
FunctionRef
withRefName(String refName)
FunctionRef
withSelectionSet(String selectionSet)
-
-
-
Constructor Detail
-
FunctionRef
public FunctionRef()
No args constructor for use in serialization
-
FunctionRef
public FunctionRef(String refName)
- Parameters:
refName
-
-
-
Method Detail
-
getRefName
public String getRefName()
Name of the referenced function (Required)
-
setRefName
public void setRefName(String refName)
Name of the referenced function (Required)
-
withRefName
public FunctionRef withRefName(String refName)
-
getArguments
public com.fasterxml.jackson.databind.JsonNode getArguments()
Function arguments
-
setArguments
public void setArguments(com.fasterxml.jackson.databind.JsonNode arguments)
Function arguments
-
withArguments
public FunctionRef withArguments(com.fasterxml.jackson.databind.JsonNode arguments)
-
getSelectionSet
public String getSelectionSet()
Only used if function type is 'graphql'. A string containing a valid GraphQL selection set
-
setSelectionSet
public void setSelectionSet(String selectionSet)
Only used if function type is 'graphql'. A string containing a valid GraphQL selection set
-
withSelectionSet
public FunctionRef withSelectionSet(String selectionSet)
-
getInvoke
public FunctionRef.Invoke getInvoke()
Specifies if the function should be invoked sync or async. Default is sync.
-
setInvoke
public void setInvoke(FunctionRef.Invoke invoke)
Specifies if the function should be invoked sync or async. Default is sync.
-
withInvoke
public FunctionRef withInvoke(FunctionRef.Invoke invoke)
-
-