public class FlowRuntimeGlobals extends Object
| Constructor and Description |
|---|
FlowRuntimeGlobals() |
| Modifier and Type | Method and Description |
|---|---|
static CompleterClientFactory |
getCompleterClientFactory()
return the current Fn Flow client factory;
|
static Optional<CompletionId> |
getCurrentCompletionId()
Get the current completion ID - returns an empty optional if the current invocation is not a completion
|
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Get the default object mapper to use for Flow Invocations
this will return a runtime-local
|
static void |
resetCompleterClientFactory()
Resets the state of the completer client factory to defaults; this is primarily for testing
|
static void |
setCompleterClientFactory(CompleterClientFactory currentClientFactory)
override the default completer client factory
|
static void |
setCurrentCompletionId(CompletionId completionId)
Set the current Completion ID
|
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public static Optional<CompletionId> getCurrentCompletionId()
public static void setCurrentCompletionId(CompletionId completionId)
completionId - a completion ID - set to null to clear the current completion IDpublic static void resetCompleterClientFactory()
public static void setCompleterClientFactory(CompleterClientFactory currentClientFactory)
currentClientFactory - a new client factory to be used to create flowspublic static CompleterClientFactory getCompleterClientFactory()
Copyright © 2021. All rights reserved.