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 TypeMethodDescriptionvoid
Marks the current process as finished.static LongRunningProcessHelper
static LongRunningProcessHelper
getForSession
(jakarta.servlet.http.HttpSession session) void
startProcess
(LRPControlBean controlBean) Starts the process as configured in the provided control bean.
-
Method Details
-
getForSession
- Returns:
- the
LongRunningProcessHelper
for the current session.
-
getForSession
- Parameters:
session
- the current session- Returns:
- the
LongRunningProcessHelper
for 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.
-