Package com.saperion.ngc.servlet.process
Class LongRunningProcessHelper
- java.lang.Object
-
- com.saperion.ngc.servlet.process.LongRunningProcessHelper
-
public final class LongRunningProcessHelper extends java.lang.ObjectHelper class used to start and control long running processes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinishProcess()Marks the current process as finished.LRPControlBeangetControlBean()static LongRunningProcessHelpergetForSession()static LongRunningProcessHelpergetForSession(javax.servlet.http.HttpSession session)voidstartProcess(LRPControlBean controlBean)Starts the process as configured in the provided control bean.
-
-
-
Method Detail
-
getForSession
public static LongRunningProcessHelper getForSession()
- Returns:
- the
LongRunningProcessHelperfor the current session.
-
getForSession
public static LongRunningProcessHelper getForSession(javax.servlet.http.HttpSession session)
- Parameters:
session- the current session- Returns:
- the
LongRunningProcessHelperfor the current session
-
startProcess
public void startProcess(LRPControlBean controlBean) throws ProcessAlreadyRunningException
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
public LRPControlBean getControlBean()
- Returns:
- the control bean for the process currently running in this session
-
finishProcess
public void finishProcess()
Marks the current process as finished.
-
-