Class WorkflowBean

java.lang.Object
ch.ivyteam.ivy.jsf.bean.wf.WorkflowBean

public class WorkflowBean extends Object
CancelBean for reset your current Task and redirection to a DefaultPage.
API:
This is a public API.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method to cancel your Html Dialog.
    void
    cancelTo(String redirectPage)
    Method to cancel your Html Dialog with a specific redirect page.
    void
    Resets the current task and redirects the user to the application home.
  • Method Details

    • cancel

      public void cancel() throws IOException
      Method to cancel your Html Dialog.
      Example: <p:commandLink actionListener="#{ivyWorkflowView.cancel()}" process="@this" value="Cancel" />
      You will be redirected to the DefaultApplicationHomePage if your task is not persistent, otherwise you will be redirected to the DefaultTaskListPage. The current task will be reseted.
      Throws:
      IOException
      See Also:
      API:
      This public API is available in Java.
    • cancelToHome

      public void cancelToHome() throws IOException
      Resets the current task and redirects the user to the application home.
      Example: <p:commandLink actionListener="#{ivyWorkflowView.cancelToHome()}" process="@this" value="Cancel" />
      Throws:
      IOException
      See Also:
      API:
      This public API is available in Java.
    • cancelTo

      public void cancelTo(String redirectPage) throws IOException
      Method to cancel your Html Dialog with a specific redirect page.
      Example: <p:commandButton actionListener="#{ivyWorkflowView.cancel(ivy.html.processStartListRef())}" process="@this" value="Cancel" />
      You will be redirected to the given URL. The current task will be reseted.
      Parameters:
      redirectPage - page to redirect to
      Throws:
      IOException
      See Also:
      API:
      This public API is available in Java.