public interface EventInstanceService extends FlowNodeInstanceService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EVENT_INSTANCE |
static java.lang.String |
EVENT_TRIGGER_INSTANCE |
static java.lang.String |
MESSAGE_INSTANCE |
ACTIVITY_INSTANCE_TOKEN_COUNT, ACTIVITYINSTANCE_DISPLAY_DESCRIPTION, ACTIVITYINSTANCE_DISPLAY_NAME, ACTIVITYINSTANCE_STATE, EXECUTED_BY_MODIFIED, EXECUTED_BY_SUBSTITUTE_MODIFIED, EXPECTED_END_DATE_MODIFIED, FLOWNODE_INSTANCE, LOOPINSTANCE_LOOPMAX_MODIFIED, MULTIINSTANCE_LOOPCARDINALITY_MODIFIED, MULTIINSTANCE_NUMBEROFINSTANCE_MODIFIED, STATE_CATEGORY| 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 |
deleteWaitingEvent(SWaitingEvent waitingEvent) |
void |
deleteWaitingEvents(SFlowNodeInstance flowNodeInstance) |
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) |
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) |
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) |
deleteArchivedFlowNodeInstances, deleteFlowNodeInstance, getArchivedFlowNodeInstance, getArchivedFlowNodeInstances, getFlowNodeInstance, getFlowNodeInstanceIdsToRestart, getFlowNodeInstancesOfActivity, getFlowNodeInstancesOfProcess, getLastArchivedFlowNodeInstance, getNumberOfArchivedFlowNodeInstances, getNumberOfArchivedFlowNodeInstancesSupervisedBy, getNumberOfArchivedFlownodesInAllStates, getNumberOfFlowNodeInstances, getNumberOfFlowNodeInstancesSupervisedBy, getNumberOfFlowNodes, getNumberOfFlownodesInAllStates, getSourceObjectIdsOfArchivedFlowNodeInstances, searchArchivedFlowNodeInstances, searchArchivedFlowNodeInstancesSupervisedBy, searchFlowNodeInstances, searchFlowNodeInstancesSupervisedBy, setExecutedBy, setExecutedBySubstitute, setExecuting, setExpectedEndDate, setState, setStateCategory, setTaskPriority, updateDisplayDescription, updateDisplayNamestatic final java.lang.String EVENT_INSTANCE
static final java.lang.String EVENT_TRIGGER_INSTANCE
static final java.lang.String MESSAGE_INSTANCE
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 - searchOptions - SBonitaReadExceptionjava.util.List<SMessageEventCouple> getMessageEventCouples(int fromIndex, int maxResults) throws SEventTriggerInstanceReadException
SWaitingMessageEvent getWaitingMessage(long waitingMessageId) throws SWaitingEventReadException
SWaitingEventReadExceptionSMessageInstance getMessageInstance(long messageInstanceId) throws SMessageInstanceReadException
SMessageInstanceReadExceptionvoid 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 - SEventTriggerInstanceDeletionExceptionvoid deleteWaitingEvents(SFlowNodeInstance flowNodeInstance) throws SWaitingEventModificationException, SBonitaReadException
flowNodeInstance - SWaitingEventModificationExceptionSFlowNodeReadExceptionSBonitaReadExceptionint 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 instancesearchOptions - Criteria of the searchSBonitaReadExceptionjava.util.List<STimerEventTriggerInstance> searchTimerEventTriggerInstances(long processInstanceId, QueryOptions queryOptions) throws SBonitaReadException
processInstanceId - The identifier of the process instancesearchOptions - Criteria of the searchSBonitaReadExceptionvoid updateEventTriggerInstance(STimerEventTriggerInstance sTimerEventTriggerInstance, EntityUpdateDescriptor descriptor) throws SEventTriggerInstanceModificationException
sTimerEventTriggerInstance - The event trigger instance to updatedescriptor - The fields to updateSEventTriggerModificationExceptionSEventTriggerInstanceModificationException