Class WorkflowController

java.lang.Object
com.jk.web.faces.controllers.JKWebController
com.jk.webstack.services.workflow.WorkflowController
All Implemented Interfaces:
Serializable

@ViewScoped public class WorkflowController extends JKWebController
This class is a controller used for managing work flows in a web application.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
See Also:
  • Constructor Details

    • WorkflowController

      public WorkflowController()
  • Method Details

    • getPayloads

      public List<PayloadModel> getPayloads()
      This method retrieves a list of pay-loads.
      Returns:
      a list of PayloadModel objects.
    • getPayload

      public PayloadModel getPayload()
      This method retrieves the currently selected pay-load.
      Returns:
      the currently selected pay-load.
    • approvePayload

      public String approvePayload(String entityName, int id)
      This method is yet to be implemented (TBI).
      Parameters:
      entityName - Specifies the parameter of the method that is yet to be implemented (TBI).
      id - Specifies the parameter of the method that is yet to be implemented (TBI).
      Returns:
      null.
    • rejectPayload

      public String rejectPayload(String entityName, int id)
      This method rejects a pay-load with the given entity name and ID.
      Parameters:
      entityName - Specifies the name of the entity to reject.
      id - Specifies the ID of the entity to reject.
      Returns:
      null.
    • findPayload

      public PayloadModel findPayload(int id)
      This method finds a pay-load by its ID.
      Parameters:
      id - Specifies the ID of the pay-load to find.
      Returns:
      the found PayloadModel object or null if not found.
    • getFilterList2

      public List getFilterList2()
      This method gets the list of filters associated with this controller.
      Returns:
      the list of filters associated with this controller.
    • setFilterList2

      public void setFilterList2(List filterList2)
      This method sets the list of filters associated with this controller to the provided one.
      Parameters:
      filterList2 - Specifies the new list of filters associated with this controller.
    • reset

      public void reset()
      This method resets the controller's state, clearing pay-load and filter lists.