Interface DynamicSignalHandler


public interface DynamicSignalHandler
Use DynamicSignalHandler to process any signal dynamically. This is useful for library-level code and implementation of DSLs.

Use Workflow.registerListener(Object) to register an implementation of the DynamicSignalListener. 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:
  • Method Details

    • handle

      void handle(String signalName, EncodedValues args)
    • getUnfinishedPolicy

      default HandlerUnfinishedPolicy getUnfinishedPolicy(String signalName)
      Returns the actions taken if a workflow exits with a running instance of this handler.
    • getDescription

      default String getDescription()
      Short description of the Update handler.