public class EventInstanceServiceImpl extends FlowNodeInstancesServiceImpl implements org.bonitasoft.engine.core.process.instance.api.event.EventInstanceService
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_RESET_IN_PROGRESS_WAITING_EVENTS |
EVENT_INSTANCE, EVENT_TRIGGER_INSTANCE, MESSAGE_INSTANCEACTIVITY_INSTANCE_TOKEN_COUNT, ACTIVITYINSTANCE_DISPLAY_DESCRIPTION, ACTIVITYINSTANCE_DISPLAY_DESCRIPTION_MODIFIED, ACTIVITYINSTANCE_DISPLAY_NAME, ACTIVITYINSTANCE_STATE, ARCHIVED_FLOWNODE_INSTANCE, EXECUTED_BY_MODIFIED, EXECUTED_BY_SUBSTITUTE_MODIFIED, EXPECTED_END_DATE_MODIFIED, FLOWNODE_INSTANCE, LOOPINSTANCE_LOOPMAX_MODIFIED, MULTIINSTANCE_LOOPCARDINALITY_MODIFIED, MULTIINSTANCE_NUMBEROFINSTANCE_MODIFIED, STATE_CATEGORY| Constructor and Description |
|---|
EventInstanceServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.services.PersistenceService persistenceService,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.archive.ArchiveService archiveService) |
| Modifier and Type | Method and Description |
|---|---|
void |
createEventInstance(org.bonitasoft.engine.core.process.instance.model.event.SEventInstance eventInstance) |
void |
createEventTriggerInstance(org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance eventTriggerInstance) |
void |
createMessageInstance(org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance messageInstance) |
void |
createWaitingEvent(org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent waitingEvent) |
void |
deleteEventTriggerInstance(org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance eventTriggerInstance) |
void |
deleteEventTriggerInstances(long eventInstanceId) |
void |
deleteMessageInstance(org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance messageInstance) |
void |
deleteWaitingEvent(org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent waitingEvent) |
void |
deleteWaitingEvents(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance) |
List<org.bonitasoft.engine.core.process.instance.model.event.SBoundaryEventInstance> |
getActivityBoundaryEventInstances(long activityInstanceId,
int fromIndex,
int maxResults) |
org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingErrorEvent |
getBoundaryWaitingErrorEvent(long relatedActivityInstanceId,
String errorCode) |
List<org.bonitasoft.engine.core.process.instance.model.event.SEventInstance> |
getEventInstances(long rootContainerId,
int fromIndex,
int maxResults,
String fieldName,
org.bonitasoft.engine.persistence.OrderByType orderByType) |
<T extends org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> |
getEventTriggerInstance(Class<T> entityClass,
long eventTriggerInstanceId) |
List<org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> |
getEventTriggerInstances(long eventInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageEventCouple> |
getMessageEventCouples(int fromIndex,
int maxResults) |
org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance |
getMessageInstance(long messageInstanceId) |
long |
getNumberOfEventTriggerInstances(Class<? extends org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> entityClass,
org.bonitasoft.engine.persistence.QueryOptions countOptions) |
long |
getNumberOfTimerEventTriggerInstances(long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfWaitingEvents(Class<? extends org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent> entityClass,
org.bonitasoft.engine.persistence.QueryOptions countOptions) |
org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingMessageEvent |
getWaitingMessage(long waitingMessageId) |
List<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingSignalEvent> |
getWaitingSignalEvents(String signalName,
int fromIndex,
int maxResults) |
int |
resetInProgressWaitingEvents() |
int |
resetProgressMessageInstances() |
<T extends org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> |
searchEventTriggerInstances(Class<T> entityClass,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
List<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent> |
searchStartWaitingEvents(long processDefinitionId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.event.trigger.STimerEventTriggerInstance> |
searchTimerEventTriggerInstances(long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
<T extends org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent> |
searchWaitingEvents(Class<T> entityClass,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
void |
updateEventTriggerInstance(org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance sEventTriggerInstance,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) |
void |
updateMessageInstance(org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance messageInstance,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) |
void |
updateWaitingMessage(org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingMessageEvent waitingMessageEvent,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) |
deleteArchivedFlowNodeInstance, deleteFlowNodeInstance, getArchivedFlowNodeInstance, getArchivedFlowNodeInstances, getArchiveService, getEventService, getFlowNodeInstance, getFlowNodeInstanceIdsToRestart, getFlowNodeInstances, getLastArchivedFlowNodeInstance, getLogger, getNumberOfArchivedFlowNodeInstances, getNumberOfArchivedFlowNodeInstancesSupervisedBy, getNumberOfArchivedFlownodesInAllStates, getNumberOfFlowNodeInstances, getNumberOfFlowNodeInstancesSupervisedBy, getNumberOfFlowNodes, getNumberOfFlownodesInAllStates, getPersistenceService, getRecorder, getUnmodifiableList, initializeLogBuilder, searchArchivedFlowNodeInstances, searchArchivedFlowNodeInstancesSupervisedBy, searchFlowNodeInstances, searchFlowNodeInstancesSupervisedBy, setExecutedBy, setExecutedBySubstitute, setExecuting, setExpectedEndDate, setState, setStateCategory, setTaskPriority, updateDisplayDescription, updateDisplayName, updateFlowNode, updateLog, updateOneFieldclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteArchivedFlowNodeInstance, deleteFlowNodeInstance, getArchivedFlowNodeInstance, getArchivedFlowNodeInstances, getFlowNodeInstance, getFlowNodeInstanceIdsToRestart, getFlowNodeInstances, getLastArchivedFlowNodeInstance, getNumberOfArchivedFlowNodeInstances, getNumberOfArchivedFlowNodeInstancesSupervisedBy, getNumberOfArchivedFlownodesInAllStates, getNumberOfFlowNodeInstances, getNumberOfFlowNodeInstancesSupervisedBy, getNumberOfFlowNodes, getNumberOfFlownodesInAllStates, searchArchivedFlowNodeInstances, searchArchivedFlowNodeInstancesSupervisedBy, searchFlowNodeInstances, searchFlowNodeInstancesSupervisedBy, setExecutedBy, setExecutedBySubstitute, setExecuting, setExpectedEndDate, setState, setStateCategory, setTaskPriority, updateDisplayDescription, updateDisplayNamepublic static final String QUERY_RESET_IN_PROGRESS_WAITING_EVENTS
public EventInstanceServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.services.PersistenceService persistenceService,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.archive.ArchiveService archiveService)
public void createEventInstance(org.bonitasoft.engine.core.process.instance.model.event.SEventInstance eventInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.SEventInstanceCreationException
createEventInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.SEventInstanceCreationExceptionpublic void createEventTriggerInstance(org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance eventTriggerInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceCreationException
createEventTriggerInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceCreationExceptionpublic void createMessageInstance(org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance messageInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageInstanceCreationException
createMessageInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageInstanceCreationExceptionpublic void createWaitingEvent(org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent waitingEvent)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventCreationException
createWaitingEvent in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventCreationExceptionpublic void deleteEventTriggerInstance(org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance eventTriggerInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceDeletionException
deleteEventTriggerInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceDeletionExceptionpublic void deleteEventTriggerInstances(long eventInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceDeletionException
deleteEventTriggerInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceDeletionExceptionpublic void deleteMessageInstance(org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance messageInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageModificationException
deleteMessageInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageModificationExceptionpublic void deleteWaitingEvent(org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent waitingEvent)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventModificationException
deleteWaitingEvent in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventModificationExceptionpublic void deleteWaitingEvents(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventModificationException,
org.bonitasoft.engine.persistence.SBonitaReadException
deleteWaitingEvents in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventModificationExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.event.SBoundaryEventInstance> getActivityBoundaryEventInstances(long activityInstanceId, int fromIndex, int maxResults) throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.SEventInstanceReadException
getActivityBoundaryEventInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.SEventInstanceReadExceptionpublic org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingErrorEvent getBoundaryWaitingErrorEvent(long relatedActivityInstanceId,
String errorCode)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventReadException
getBoundaryWaitingErrorEvent in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.event.SEventInstance> getEventInstances(long rootContainerId, int fromIndex, int maxResults, String fieldName, org.bonitasoft.engine.persistence.OrderByType orderByType) throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.SEventInstanceReadException
getEventInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.SEventInstanceReadExceptionpublic <T extends org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> T getEventTriggerInstance(Class<T> entityClass, long eventTriggerInstanceId) throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadException
getEventTriggerInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> getEventTriggerInstances(long eventInstanceId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadException
getEventTriggerInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadExceptionpublic int resetProgressMessageInstances()
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageModificationException
resetProgressMessageInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageModificationExceptionpublic int resetInProgressWaitingEvents()
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventModificationException
resetInProgressWaitingEvents in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventModificationExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageEventCouple> getMessageEventCouples(int fromIndex, int maxResults) throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadException
getMessageEventCouples in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadExceptionpublic org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance getMessageInstance(long messageInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageInstanceReadException
getMessageInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageInstanceReadExceptionpublic long getNumberOfWaitingEvents(Class<? extends org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent> entityClass, org.bonitasoft.engine.persistence.QueryOptions countOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfWaitingEvents in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent> searchStartWaitingEvents(long processDefinitionId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchStartWaitingEvents in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingMessageEvent getWaitingMessage(long waitingMessageId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventReadException
getWaitingMessage in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingSignalEvent> getWaitingSignalEvents(String signalName, int fromIndex, int maxResults) throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadException
getWaitingSignalEvents in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceReadExceptionpublic long getNumberOfEventTriggerInstances(Class<? extends org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> entityClass, org.bonitasoft.engine.persistence.QueryOptions countOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfEventTriggerInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic <T extends org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance> List<T> searchEventTriggerInstances(Class<T> entityClass, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchEventTriggerInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfTimerEventTriggerInstances(long processInstanceId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfTimerEventTriggerInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.event.trigger.STimerEventTriggerInstance> searchTimerEventTriggerInstances(long processInstanceId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchTimerEventTriggerInstances in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic <T extends org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent> List<T> searchWaitingEvents(Class<T> entityClass, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchWaitingEvents in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void updateMessageInstance(org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance messageInstance,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageModificationException
updateMessageInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageModificationExceptionpublic void updateWaitingMessage(org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingMessageEvent waitingMessageEvent,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventModificationException
updateWaitingMessage in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SWaitingEventModificationExceptionpublic void updateEventTriggerInstance(org.bonitasoft.engine.core.process.instance.model.event.trigger.SEventTriggerInstance sEventTriggerInstance,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceModificationException
updateEventTriggerInstance in interface org.bonitasoft.engine.core.process.instance.api.event.EventInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceModificationExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.