Package com.saperion.ngc.servlet.process
Class LongRunningProcessHelper
java.lang.Object
com.saperion.ngc.servlet.process.LongRunningProcessHelper
Helper class used to start and control long running processes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidMarks the current process as finished.static LongRunningProcessHelperstatic LongRunningProcessHelpergetForSession(jakarta.servlet.http.HttpSession session) voidstartProcess(LRPControlBean controlBean) Starts the process as configured in the provided control bean.
-
Method Details
-
getForSession
- Returns:
- the
LongRunningProcessHelperfor the current session.
-
getForSession
- Parameters:
session- the current session- Returns:
- the
LongRunningProcessHelperfor the current session
-
startProcess
Starts the process as configured in the provided control bean.- Parameters:
controlBean- control bean- Throws:
ProcessAlreadyRunningException- thrown when another process is already running in this session
-
getControlBean
- Returns:
- the control bean for the process currently running in this session
-
finishProcess
public void finishProcess()Marks the current process as finished.
-