Package org.adempiere.webui.apps
Class BackgroundJob
java.lang.Object
org.adempiere.webui.apps.BackgroundJob
Background job for process (AD_Process)
- 
Method Summary
Modifier and TypeMethodDescriptionstatic BackgroundJobcreate(ProcessInfo processInfo) Create new background job instancestatic List<MPInstance>getRunningJobForUser(int AD_User_ID) Run jobwithContext(Properties ctx) Set context.withInitialDelay(int delay) Set initial delay in milliseconds (default is 1000)withNotificationType(String notificationType) Set notification type.withProcessUI(IProcessUI processUI) Set optional process UI. 
- 
Method Details
- 
create
Create new background job instance- Parameters:
 processInfo-- Returns:
 - BackgroundJob
 
 - 
withContext
Set context. Optional, default is Env.getCtx()- Parameters:
 ctx-- Returns:
 - BackgroundJob
 
 - 
withProcessUI
Set optional process UI.- Parameters:
 processUI-- Returns:
 - BackgroundJob
 
 - 
withNotificationType
Set notification type. Optional, default is login user's notification type- Parameters:
 notificationType-- Returns:
 - BackgroundJob
 
 - 
withInitialDelay
Set initial delay in milliseconds (default is 1000)- Parameters:
 delay- initial delay in milliseconds- Returns:
 - BackgroundJob
 
 - 
run
Run job- Parameters:
 createInstanceParaCallback- callback to create process instance parameters (AD_PInstance_Para)- Returns:
 
 - 
getRunningJobForUser
- Parameters:
 AD_User_ID-- Returns:
 - List of running background jobs for AD_User_ID
 
 
 -