public interface EventInstanceRepository
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EVENT_INSTANCE |
static java.lang.String |
EVENT_TRIGGER_INSTANCE |
static int |
IN_REQUEST_SIZE |
static java.lang.String |
MESSAGE_INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
createEventInstance(SEventInstance eventInstance) |
void |
createMessageInstance(SMessageInstance messageInstance) |
void |
createTimerEventTriggerInstance(STimerEventTriggerInstance sEventTriggerInstance)
STimerEventTriggerInstance is used to keep track of currently running timers
using
ProcessRuntimeAPI.searchTimerEventTriggerInstances(long, SearchOptions) |
void |
createWaitingEvent(SWaitingEvent waitingEvent) |
void |
deleteEventTriggerInstance(STimerEventTriggerInstance eventTriggerInstance) |
void |
deleteMessageInstance(SMessageInstance messageInstance) |
void |
deleteMessageInstanceByIds(java.util.List<java.lang.Long> ids) |
void |
deleteWaitingEvent(SWaitingEvent waitingEvent) |
java.util.List<SBoundaryEventInstance> |
getActivityBoundaryEventInstances(long activityInstanceId,
int fromIndex,
int maxResults) |
SWaitingErrorEvent |
getBoundaryWaitingErrorEvent(long relatedActivityInstanceId,
java.lang.String errorCode) |
java.util.List<SEventInstance> |
getEventInstances(long rootContainerId,
int fromIndex,
int maxResults,
java.lang.String fieldName,
OrderByType orderByType) |
<T extends STimerEventTriggerInstance> |
getEventTriggerInstance(java.lang.Class<T> entityClass,
long eventTriggerInstanceId) |
java.util.List<SMessageEventCouple> |
getMessageEventCouples(int fromIndex,
int maxResults) |
SMessageInstance |
getMessageInstance(long messageInstanceId) |
java.util.List<java.lang.Long> |
getMessageInstanceIdOlderThanCreationDate(long creationDate,
QueryOptions queryOptions) |
long |
getNumberOfTimerEventTriggerInstances(long processInstanceId,
QueryOptions queryOptions)
Get the number of STimerEventTriggerInstance on the specific process instance & corresponding to the criteria
|
long |
getNumberOfWaitingEvents(java.lang.Class<? extends SWaitingEvent> entityClass,
QueryOptions countOptions) |
java.util.Optional<STimerEventTriggerInstance> |
getTimerEventTriggerInstanceOfFlowNode(long flowNodeInstanceId) |
java.util.List<SWaitingEvent> |
getWaitingEventsForFlowNodeId(long flowNodeInstanceId) |
SWaitingMessageEvent |
getWaitingMessage(long waitingMessageId) |
SWaitingSignalEvent |
getWaitingSignalEvent(long id) |
java.util.List<SWaitingSignalEvent> |
getWaitingSignalEvents(java.lang.String signalName,
int fromIndex,
int maxResults) |
int |
resetInProgressWaitingEvents()
Resets all Waiting Message Events marked as 'in progress", so that they are eligible to match Message Instances
again.
|
int |
resetProgressMessageInstances()
Resets all Message Instances marked as handled, so that they are eligible to match Waiting Events again.
|
java.util.List<SWaitingEvent> |
searchStartWaitingEvents(long processDefinitionId,
QueryOptions queryOptions) |
java.util.List<STimerEventTriggerInstance> |
searchTimerEventTriggerInstances(long processInstanceId,
QueryOptions queryOptions)
Search the list of STimerEventTriggerInstance on the specific process instance & corresponding to the criteria
|
<T extends SWaitingEvent> |
searchWaitingEvents(java.lang.Class<T> entityClass,
QueryOptions searchOptions) |
void |
updateEventTriggerInstance(STimerEventTriggerInstance sTimerEventTriggerInstance,
EntityUpdateDescriptor descriptor)
Update an event trigger instance.
|
void |
updateMessageInstance(SMessageInstance messageInstance,
EntityUpdateDescriptor descriptor) |
void |
updateWaitingMessage(SWaitingMessageEvent waitingMessageEvent,
EntityUpdateDescriptor descriptor) |
static final java.lang.String EVENT_INSTANCE
static final java.lang.String EVENT_TRIGGER_INSTANCE
static final java.lang.String MESSAGE_INSTANCE
static final int IN_REQUEST_SIZE
void createEventInstance(SEventInstance eventInstance) throws SEventInstanceCreationException
SEventInstanceCreationExceptionvoid createTimerEventTriggerInstance(STimerEventTriggerInstance sEventTriggerInstance) throws SEventTriggerInstanceCreationException
ProcessRuntimeAPI.searchTimerEventTriggerInstances(long, SearchOptions)void createMessageInstance(SMessageInstance messageInstance) throws SMessageInstanceCreationException
void createWaitingEvent(SWaitingEvent waitingEvent) throws SWaitingEventCreationException
SWaitingEventCreationExceptionSWaitingErrorEvent getBoundaryWaitingErrorEvent(long relatedActivityInstanceId, java.lang.String errorCode) throws SWaitingEventReadException
SWaitingEventReadExceptionjava.util.List<SEventInstance> getEventInstances(long rootContainerId, int fromIndex, int maxResults, java.lang.String fieldName, OrderByType orderByType) throws SEventInstanceReadException
SEventInstanceReadExceptionjava.util.List<SBoundaryEventInstance> getActivityBoundaryEventInstances(long activityInstanceId, int fromIndex, int maxResults) throws SEventInstanceReadException
activityInstanceId - fromIndex - maxResults - SEventInstanceReadException<T extends STimerEventTriggerInstance> T getEventTriggerInstance(java.lang.Class<T> entityClass, long eventTriggerInstanceId) throws SEventTriggerInstanceReadException
entityClass - eventTriggerInstanceId - SEventTriggerInstanceReadExceptionvoid deleteMessageInstance(SMessageInstance messageInstance) throws SMessageModificationException
SMessageModificationExceptionvoid deleteWaitingEvent(SWaitingEvent waitingEvent) throws SWaitingEventModificationException
java.util.List<SWaitingSignalEvent> getWaitingSignalEvents(java.lang.String signalName, int fromIndex, int maxResults) throws SEventTriggerInstanceReadException
signalName - fromIndex - maxResults - SEventTriggerInstanceReadExceptionjava.util.List<SWaitingEvent> searchStartWaitingEvents(long processDefinitionId, QueryOptions queryOptions) throws SBonitaReadException
processDefinitionId - queryOptions - SBonitaReadExceptionjava.util.List<SMessageEventCouple> getMessageEventCouples(int fromIndex, int maxResults) throws SEventTriggerInstanceReadException
SWaitingMessageEvent getWaitingMessage(long waitingMessageId) throws SWaitingEventReadException
SWaitingEventReadExceptionSMessageInstance getMessageInstance(long messageInstanceId) throws SMessageInstanceReadException
SMessageInstanceReadExceptionvoid deleteMessageInstanceByIds(java.util.List<java.lang.Long> ids)
throws SMessageModificationException
SMessageModificationExceptionjava.util.List<java.lang.Long> getMessageInstanceIdOlderThanCreationDate(long creationDate,
QueryOptions queryOptions)
throws SEventTriggerInstanceReadException,
SMessageInstanceReadException
void updateWaitingMessage(SWaitingMessageEvent waitingMessageEvent, EntityUpdateDescriptor descriptor) throws SWaitingEventModificationException
void updateMessageInstance(SMessageInstance messageInstance, EntityUpdateDescriptor descriptor) throws SMessageModificationException
SMessageModificationException<T extends SWaitingEvent> java.util.List<T> searchWaitingEvents(java.lang.Class<T> entityClass, QueryOptions searchOptions) throws SBonitaReadException
SBonitaReadExceptionlong getNumberOfWaitingEvents(java.lang.Class<? extends SWaitingEvent> entityClass, QueryOptions countOptions) throws SBonitaReadException
SBonitaReadExceptionjava.util.Optional<STimerEventTriggerInstance> getTimerEventTriggerInstanceOfFlowNode(long flowNodeInstanceId) throws SBonitaReadException
flowNodeInstanceId - the flow node instance idSBonitaReadExceptionSWaitingSignalEvent getWaitingSignalEvent(long id) throws SEventTriggerInstanceReadException, SEventTriggerInstanceNotFoundException
void deleteEventTriggerInstance(STimerEventTriggerInstance eventTriggerInstance) throws SEventTriggerInstanceDeletionException
eventTriggerInstance - SEventTriggerInstanceDeletionExceptionint resetProgressMessageInstances()
throws SMessageModificationException
SMessageModificationException - if an error occurs when resetting the 'handled' flag.int resetInProgressWaitingEvents()
throws SWaitingEventModificationException
SWaitingEventModificationException - if an error occurs when resetting the 'progress' flag.long getNumberOfTimerEventTriggerInstances(long processInstanceId,
QueryOptions queryOptions)
throws SBonitaReadException
processInstanceId - The identifier of the process instancequeryOptions - Criteria of the searchSBonitaReadExceptionjava.util.List<STimerEventTriggerInstance> searchTimerEventTriggerInstances(long processInstanceId, QueryOptions queryOptions) throws SBonitaReadException
processInstanceId - The identifier of the process instancequeryOptions - Criteria of the searchSBonitaReadExceptionvoid updateEventTriggerInstance(STimerEventTriggerInstance sTimerEventTriggerInstance, EntityUpdateDescriptor descriptor) throws SEventTriggerInstanceModificationException
sTimerEventTriggerInstance - The event trigger instance to updatedescriptor - The fields to updateSEventTriggerInstanceModificationExceptionjava.util.List<SWaitingEvent> getWaitingEventsForFlowNodeId(long flowNodeInstanceId) throws SEventTriggerInstanceReadException