Interface IWorkflowInvoker

All Superinterfaces:
org.apache.wicket.util.io.IClusterable, Serializable
All Known Implementing Classes:
ActionDescription, BranchAwareStdWorkflow, CompatibilityWorkflowPlugin.WorkflowAction, ConfirmDialog, DestinationDialog, FeedbackStdWorkflow, StdWorkflow, TextDialog

public interface IWorkflowInvoker extends org.apache.wicket.util.io.IClusterable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    default void
    reject(String reason)
    If a workflow invocation has failed it can be rejected.
    default void
    resolve(String result)
    After a workflow invocation has finished successfully it can be resolved.
  • Method Details

    • invokeWorkflow

      void invokeWorkflow() throws Exception
      Throws:
      Exception
    • resolve

      default void resolve(String result)
      After a workflow invocation has finished successfully it can be resolved. This is introduced to allow workflow calls to be invoked from javascript via a promise API. For backwards compatibility this method has a default implementation.
      Parameters:
      result - The result of a workflow call. Can be null.
      Since:
      14.3
    • reject

      default void reject(String reason)
      If a workflow invocation has failed it can be rejected. This is introduced to allow workflow calls to be invoked from javascript via a promise API. For backwards compatibility this method has a default implementation.
      Parameters:
      reason - The reason the workflow invocation failed. Can be null.
      Since:
      14.3