Interface WorkflowContext
public interface WorkflowContext
Core top level workflow context
-
Method Summary
Modifier and TypeMethodDescription<R> RgetLastCompletionResult(Class<R> resultClass, Type resultType) Returns all current contexts being propagated by aContextPropagator.io.temporal.api.failure.v1.FailuremapWorkflowExceptionToFailure(Throwable exception) Convert exception to the serialized Failure that can be reported to the server.
This method is needed when framework code needs to serialize aTemporalFailureinstance with details object produced by the application code.
The framework code is not aware of DataConverter so this is working around this layering.
-
Method Details
-
getReplayContext
ReplayWorkflowContext getReplayContext() -
mapWorkflowExceptionToFailure
Convert exception to the serialized Failure that can be reported to the server.
This method is needed when framework code needs to serialize aTemporalFailureinstance with details object produced by the application code.
The framework code is not aware of DataConverter so this is working around this layering.- Parameters:
exception- throwable to convert- Returns:
- Serialized failure
-
getWorkflowImplementationOptions
-
getLastCompletionResult
-
getContextPropagators
List<ContextPropagator> getContextPropagators()- Returns:
- the list of configured context propagators
-
getPropagatedContexts
Returns all current contexts being propagated by aContextPropagator. The key is theContextPropagator.getName()and the value is the object returned byContextPropagator.getCurrentContext() -
getRunningSignalHandlers
Map<Long,SignalHandlerInfo> getRunningSignalHandlers() -
getRunningUpdateHandlers
Map<String,UpdateHandlerInfo> getRunningUpdateHandlers() -
getVersioningBehavior
VersioningBehavior getVersioningBehavior()
-