Package io.temporal.workflow
Interface DynamicUpdateHandler
-
public interface DynamicUpdateHandlerUse DynamicUpdateHandler to process any update dynamically. This is useful for a library level code and implementation of DSLs.Use
Workflow.registerListener(Object)to register an implementation of the DynamicUpdateListener. Only one such listener can be registered per workflow execution.When registered any signals which don't have a specific handler will be delivered to it.
- See Also:
DynamicQueryHandler,DynamicSignalHandler,DynamicWorkflow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HandlerUnfinishedPolicygetUnfinishedPolicy(java.lang.String updateName)Returns the actions taken if a workflow exits with a running instance of this handler.EncodedValueshandleExecute(java.lang.String updateName, EncodedValues args)default voidhandleValidate(java.lang.String updateName, EncodedValues args)
-
-
-
Method Detail
-
handleValidate
default void handleValidate(java.lang.String updateName, EncodedValues args)
-
handleExecute
EncodedValues handleExecute(java.lang.String updateName, EncodedValues args)
-
getUnfinishedPolicy
default HandlerUnfinishedPolicy getUnfinishedPolicy(java.lang.String updateName)
Returns the actions taken if a workflow exits with a running instance of this handler.
-
-