Class ArchiveProcessInstancesHandler
- java.lang.Object
-
- org.bonitasoft.engine.execution.handler.ArchiveProcessInstancesHandler
-
- All Implemented Interfaces:
java.io.Serializable,SHandler<SUpdateEvent>,SProcessInstanceHandler<SUpdateEvent>
public class ArchiveProcessInstancesHandler extends java.lang.Object implements SProcessInstanceHandler<SUpdateEvent>
- Author:
- Baptiste Mesta, Elias Ricken de Medeiros, Celine Souchet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArchiveProcessInstancesHandler(long tenantId)ArchiveProcessInstancesHandler(long tenantId, java.lang.String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(SUpdateEvent event)Performs the action corresponding to the given Eventjava.lang.StringgetIdentifier()Returns a unique identifier for each instance of the HandlerbooleanisInterested(SUpdateEvent event)Precise if the current Handler is interested by the given event.
-
-
-
Method Detail
-
execute
public void execute(SUpdateEvent event) throws SHandlerExecutionException
Description copied from interface:SHandlerPerforms the action corresponding to the given Event- Specified by:
executein interfaceSHandler<SUpdateEvent>- Throws:
SHandlerExecutionException
-
isInterested
public boolean isInterested(SUpdateEvent event)
Description copied from interface:SHandlerPrecise if the current Handler is interested by the given event. If so, it could run the execute(SEvent e) method.- Specified by:
isInterestedin interfaceSHandler<SUpdateEvent>
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from interface:SHandlerReturns a unique identifier for each instance of the Handler- Specified by:
getIdentifierin interfaceSHandler<SUpdateEvent>
-
-