Package org.bonitasoft.engine.work
Interface WorkService
- All Superinterfaces:
LifecycleService,TenantLifecycleService
- All Known Implementing Classes:
WorkServiceImpl
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
Modifier and TypeMethodDescriptionbooleanvoidregisterWork(WorkDescriptor workDescriptor) This operation MUST be called within an active transaction.Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService
pause, resume, start, stopMethods inherited from interface org.bonitasoft.engine.commons.TenantLifecycleService
init
-
Method Details
-
registerWork
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
-