Package org.bonitasoft.engine.work
Interface WorkService
-
- All Superinterfaces:
LifecycleService,TenantLifecycleService
- All Known Implementing Classes:
WorkServiceImpl
public interface WorkService extends TenantLifecycleService
This service allows register the execution of a work at the end of the current transaction- Author:
- Charles Souillard, Baptiste Mesta, Matthieu Chaffotte
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisStopped()voidregisterWork(WorkDescriptor workDescriptor)This operation MUST be called within an active transaction.-
Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService
pause, resume, start, stop
-
Methods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
-
-
-
Method Detail
-
registerWork
void registerWork(WorkDescriptor workDescriptor) throws SWorkRegisterException
This operation MUST be called within an active transaction. If no active transaction is found, a SWorkRegisterException is thrown- Parameters:
workDescriptor-- Throws:
SWorkRegisterException- Since:
- 6.0
-
isStopped
boolean isStopped()
- Returns:
- true if the work service is stopped
- Since:
- 6.3
-
-