Class WorkflowController
java.lang.Object
com.jk.web.faces.controllers.JKWebController
com.jk.webstack.services.workflow.WorkflowController
- All Implemented Interfaces:
Serializable
This class is a controller used for managing work flows in a web application.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
- See Also:
-
Field Summary
Fields inherited from class com.jk.web.faces.controllers.JKWebController
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapprovePayload
(String entityName, int id) This method is yet to be implemented (TBI).findPayload
(int id) This method finds a pay-load by its ID.This method gets the list of filters associated with this controller.This method retrieves the currently selected pay-load.This method retrieves a list of pay-loads.rejectPayload
(String entityName, int id) This method rejects a pay-load with the given entity name and ID.void
reset()
This method resets the controller's state, clearing pay-load and filter lists.void
setFilterList2
(List filterList2) This method sets the list of filters associated with this controller to the provided one.Methods inherited from class com.jk.web.faces.controllers.JKWebController
context, error, error, executeAsyc, getContextParam, getContextPath, getFromAppliaction, getFromRequest, getFromSession, getParam, getParamterFromRequest, getRoles, getTenantId, getUserName, getViewScopedManagedBean, handleException, init, isDebug, isDevelopmentMode, logAction, postConstruct, redirect, request, session, showErrorDialogMessage, showInfoDialogMessage, showWarningDialogMessage, success, success, suggestName, updateUi, warning
-
Constructor Details
-
WorkflowController
public WorkflowController()
-
-
Method Details
-
getPayloads
This method retrieves a list of pay-loads.- Returns:
- a list of PayloadModel objects.
-
getPayload
This method retrieves the currently selected pay-load.- Returns:
- the currently selected pay-load.
-
approvePayload
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
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
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
This method gets the list of filters associated with this controller.- Returns:
- the list of filters associated with this controller.
-
setFilterList2
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.
-