public interface FlowNodeInstanceService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIVITY_INSTANCE_TOKEN_COUNT |
static java.lang.String |
ACTIVITYINSTANCE_DISPLAY_DESCRIPTION |
static java.lang.String |
ACTIVITYINSTANCE_DISPLAY_NAME |
static java.lang.String |
ACTIVITYINSTANCE_STATE |
static java.lang.String |
EXECUTED_BY_MODIFIED |
static java.lang.String |
EXECUTED_BY_SUBSTITUTE_MODIFIED |
static java.lang.String |
EXPECTED_END_DATE_MODIFIED |
static java.lang.String |
FLOWNODE_INSTANCE |
static java.lang.String |
LOOPINSTANCE_LOOPMAX_MODIFIED |
static java.lang.String |
MULTIINSTANCE_LOOPCARDINALITY_MODIFIED |
static java.lang.String |
MULTIINSTANCE_NUMBEROFINSTANCE_MODIFIED |
static java.lang.String |
STATE_CATEGORY |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteArchivedFlowNodeInstances(java.util.List<java.lang.Long> sourceObjectIds) |
void |
deleteFlowNodeInstance(SFlowNodeInstance sFlowNodeInstance) |
SAFlowNodeInstance |
getArchivedFlowNodeInstance(long archivedFlowNodeInstanceId) |
java.util.List<SAFlowNodeInstance> |
getArchivedFlowNodeInstances(long rootContainerId,
int fromIndex,
int maxResults) |
SFlowNodeInstance |
getFlowNodeInstance(long flowNodeInstanceId) |
java.util.List<java.lang.Long> |
getFlowNodeInstanceIdsToRestart(QueryOptions queryOptions)
retrieve ids of elements that need to be restarted
Called on start node to set the flag to tell the engine to restart these flow nodes
Should not be called when the engine is started!
|
java.util.List<SFlowNodeInstance> |
getFlowNodeInstancesOfActivity(long parentActivityInstanceId,
int fromIndex,
int maxResults)
get the flow node instances directly contained in the given activity instance
|
java.util.List<SFlowNodeInstance> |
getFlowNodeInstancesOfProcess(long processInstanceId,
int fromIndex,
int maxResults)
get the flow node instances directly contained in the given process instance
|
<T extends SAFlowNodeInstance> |
getLastArchivedFlowNodeInstance(java.lang.Class<T> entityClass,
long sourceObjectFlowNodeInstanceId) |
long |
getNumberOfArchivedFlowNodeInstances(java.lang.Class<? extends SAFlowNodeInstance> entityClass,
QueryOptions queryOptions)
Retrieve the total number of the archived flow nodes matching the given search criteria.
|
long |
getNumberOfArchivedFlowNodeInstancesSupervisedBy(long supervisorId,
java.lang.Class<? extends SAFlowNodeInstance> entityClass,
QueryOptions queryOptions)
Retrieve the total number of the archived flow nodes matching the given search criteria, for a specific supervisor.
|
java.util.List<SFlowNodeInstanceStateCounter> |
getNumberOfArchivedFlownodesInAllStates(long processInstanceId)
Counts the number of archived flownode instances in a specific state.
|
long |
getNumberOfFlowNodeInstances(java.lang.Class<? extends SFlowNodeInstance> entityClass,
QueryOptions countOptions) |
long |
getNumberOfFlowNodeInstancesSupervisedBy(java.lang.Long supervisorId,
java.lang.Class<? extends SFlowNodeInstance> entityClass,
QueryOptions countOptions) |
int |
getNumberOfFlowNodes(long rootContainerId)
get the number of flow node is this root container
|
java.util.List<SFlowNodeInstanceStateCounter> |
getNumberOfFlownodesInAllStates(long processInstanceId)
Counts the number of flownode instances in all states.
|
java.util.Set<java.lang.Long> |
getSourceObjectIdsOfArchivedFlowNodeInstances(java.util.List<java.lang.Long> sourceProcessInstanceIds)
get all flow nodes contained in the list of root source process instance ids
|
<T extends SAFlowNodeInstance> |
searchArchivedFlowNodeInstances(java.lang.Class<T> entityClass,
QueryOptions queryOptions)
Retrieve the total number of the archived flow nodes matching the given search criteria.
|
<T extends SAFlowNodeInstance> |
searchArchivedFlowNodeInstancesSupervisedBy(long supervisorId,
java.lang.Class<T> entityClass,
QueryOptions queryOptions)
Retrieve the total number of the archived flow nodes matching the given search criteria, for a specific supervisor.
|
<T extends SFlowNodeInstance> |
searchFlowNodeInstances(java.lang.Class<T> entityClass,
QueryOptions searchOptions) |
<T extends SFlowNodeInstance> |
searchFlowNodeInstancesSupervisedBy(java.lang.Long supervisorId,
java.lang.Class<T> entityClass,
QueryOptions searchOptions) |
void |
setExecutedBy(SFlowNodeInstance sFlowNodeInstance,
long userId)
Set execute by for the specific flow node instance
|
void |
setExecutedBySubstitute(SFlowNodeInstance sFlowNodeInstance,
long executerSubstituteId)
Set execute by delegate for the specific flow node instance
|
void |
setExecuting(SFlowNodeInstance flowNodeInstance) |
void |
setExpectedEndDate(SFlowNodeInstance flowNodeInstance,
java.lang.Long dueDate) |
void |
setState(SFlowNodeInstance flowNodeInstance,
FlowNodeState state) |
void |
setStateCategory(SFlowNodeInstance flowElementInstance,
SStateCategory stateCategory) |
void |
setTaskPriority(SFlowNodeInstance flowNodeInstance,
STaskPriority priority) |
void |
updateDisplayDescription(SFlowNodeInstance flowNodeInstance,
java.lang.String displayDescription) |
void |
updateDisplayName(SFlowNodeInstance flowNodeInstance,
java.lang.String displayName) |
static final java.lang.String FLOWNODE_INSTANCE
static final java.lang.String ACTIVITYINSTANCE_STATE
static final java.lang.String ACTIVITY_INSTANCE_TOKEN_COUNT
static final java.lang.String ACTIVITYINSTANCE_DISPLAY_DESCRIPTION
static final java.lang.String LOOPINSTANCE_LOOPMAX_MODIFIED
static final java.lang.String MULTIINSTANCE_LOOPCARDINALITY_MODIFIED
static final java.lang.String MULTIINSTANCE_NUMBEROFINSTANCE_MODIFIED
static final java.lang.String ACTIVITYINSTANCE_DISPLAY_NAME
static final java.lang.String STATE_CATEGORY
static final java.lang.String EXECUTED_BY_MODIFIED
static final java.lang.String EXECUTED_BY_SUBSTITUTE_MODIFIED
static final java.lang.String EXPECTED_END_DATE_MODIFIED
SFlowNodeInstance getFlowNodeInstance(long flowNodeInstanceId) throws SFlowNodeNotFoundException, SFlowNodeReadException
flowNodeInstanceId - SFlowNodeNotFoundExceptionSFlowNodeReadExceptionjava.util.List<SFlowNodeInstance> getFlowNodeInstancesOfProcess(long processInstanceId, int fromIndex, int maxResults) throws SFlowNodeReadException, SBonitaReadException
processInstanceId - the parent process isntancefromIndex - maxResults - SFlowNodeReadExceptionSBonitaReadExceptionjava.util.List<SFlowNodeInstance> getFlowNodeInstancesOfActivity(long parentActivityInstanceId, int fromIndex, int maxResults) throws SFlowNodeReadException, SBonitaReadException
parentActivityInstanceId - the parent process instancefromIndex - maxResults - SFlowNodeReadExceptionSBonitaReadExceptionvoid setState(SFlowNodeInstance flowNodeInstance, FlowNodeState state) throws SFlowNodeModificationException
flowNodeInstance - state - SFlowNodeModificationExceptionvoid setTaskPriority(SFlowNodeInstance flowNodeInstance, STaskPriority priority) throws SFlowNodeModificationException
flowNodeInstance - priority - SFlowNodeModificationExceptionvoid updateDisplayDescription(SFlowNodeInstance flowNodeInstance, java.lang.String displayDescription) throws SFlowNodeModificationException
flowNodeInstance - displayDescription - SFlowNodeModificationExceptionvoid updateDisplayName(SFlowNodeInstance flowNodeInstance, java.lang.String displayName) throws SFlowNodeModificationException
flowNodeInstance - displayName - SFlowNodeModificationExceptionvoid setStateCategory(SFlowNodeInstance flowElementInstance, SStateCategory stateCategory) throws SFlowNodeModificationException
flowElementInstance - stateCategory - SFlowNodeModificationExceptionlong getNumberOfFlowNodeInstances(java.lang.Class<? extends SFlowNodeInstance> entityClass, QueryOptions countOptions) throws SBonitaReadException
entityClass - countOptions - SBonitaReadExceptionlong getNumberOfFlowNodeInstancesSupervisedBy(java.lang.Long supervisorId,
java.lang.Class<? extends SFlowNodeInstance> entityClass,
QueryOptions countOptions)
throws SBonitaReadException
entityClass - countOptions - SBonitaReadException<T extends SFlowNodeInstance> java.util.List<T> searchFlowNodeInstances(java.lang.Class<T> entityClass, QueryOptions searchOptions) throws SBonitaReadException
entityClass - searchOptions - SBonitaReadException<T extends SFlowNodeInstance> java.util.List<T> searchFlowNodeInstancesSupervisedBy(java.lang.Long supervisorId, java.lang.Class<T> entityClass, QueryOptions searchOptions) throws SBonitaReadException
entityClass - searchOptions - SBonitaReadExceptionjava.util.List<SFlowNodeInstanceStateCounter> getNumberOfFlownodesInAllStates(long processInstanceId) throws SBonitaReadException
processInstanceId - the ID of the process instance to search flownodes for.SBonitaReadException - if a read exception occurs.java.util.List<SFlowNodeInstanceStateCounter> getNumberOfArchivedFlownodesInAllStates(long processInstanceId) throws SBonitaReadException
processInstanceId - the ID of the process instance to search flownodes for. This is the ID of the process instance before it was archived
(corresponding to the sourceObjectId in the archives)SBonitaReadException - if a read exception occurs.void setExecutedBy(SFlowNodeInstance sFlowNodeInstance, long userId) throws SFlowNodeModificationException
sFlowNodeInstance - the flowNodeInstance will be updateduserId - value for executedBySFlowNodeModificationExceptionvoid setExecutedBySubstitute(SFlowNodeInstance sFlowNodeInstance, long executerSubstituteId) throws SFlowNodeModificationException
sFlowNodeInstance - the flowNodeInstance will be updatedexecuterSubstituteId - value for executedBySubstituteSFlowNodeModificationExceptionlong getNumberOfArchivedFlowNodeInstances(java.lang.Class<? extends SAFlowNodeInstance> entityClass, QueryOptions queryOptions) throws SBonitaReadException
entityClass - The type of the archived flow node to search forqueryOptions - The search options to filter the resultsSBonitaReadExceptionlong getNumberOfArchivedFlowNodeInstancesSupervisedBy(long supervisorId,
java.lang.Class<? extends SAFlowNodeInstance> entityClass,
QueryOptions queryOptions)
throws SBonitaReadException
supervisorId - The identifier of the supervisorentityClass - The type of the archived flow node to search forqueryOptions - The search options to filter the resultsSBonitaReadException<T extends SAFlowNodeInstance> java.util.List<T> searchArchivedFlowNodeInstances(java.lang.Class<T> entityClass, QueryOptions queryOptions) throws SBonitaReadException
entityClass - The type of the archived flow node to search forqueryOptions - The search options to filter the resultsSBonitaReadException<T extends SAFlowNodeInstance> java.util.List<T> searchArchivedFlowNodeInstancesSupervisedBy(long supervisorId, java.lang.Class<T> entityClass, QueryOptions queryOptions) throws SBonitaReadException
supervisorId - The identifier of the supervisorentityClass - The type of the archived flow node to search forqueryOptions - The search options to filter the resultsSBonitaReadExceptionvoid setExpectedEndDate(SFlowNodeInstance flowNodeInstance, java.lang.Long dueDate) throws SFlowNodeModificationException
flowNodeInstance - dueDate - SFlowNodeModificationExceptionjava.util.List<SAFlowNodeInstance> getArchivedFlowNodeInstances(long rootContainerId, int fromIndex, int maxResults) throws SFlowNodeReadException
rootContainerId - fromIndex - maxResults - SFlowNodeReadExceptionSAFlowNodeInstance getArchivedFlowNodeInstance(long archivedFlowNodeInstanceId) throws SFlowNodeReadException, SFlowNodeNotFoundException
archivedFlowNodeInstanceId - SFlowNodeReadExceptionSFlowNodeNotFoundException<T extends SAFlowNodeInstance> T getLastArchivedFlowNodeInstance(java.lang.Class<T> entityClass, long sourceObjectFlowNodeInstanceId) throws SBonitaReadException
sourceObjectFlowNodeInstanceId - The source identifier of the flow node instanceSBonitaReadExceptionvoid setExecuting(SFlowNodeInstance flowNodeInstance) throws SFlowNodeModificationException
flowNodeInstance - SFlowNodeModificationExceptionvoid deleteFlowNodeInstance(SFlowNodeInstance sFlowNodeInstance) throws SFlowNodeReadException, SFlowNodeDeletionException
sFlowNodeInstance - SFlowNodeReadExceptionSFlowNodeDeletionExceptionjava.util.List<java.lang.Long> getFlowNodeInstanceIdsToRestart(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - SBonitaReadExceptionint getNumberOfFlowNodes(long rootContainerId)
throws SBonitaReadException
rootContainerId - SBonitaReadExceptionjava.util.Set<java.lang.Long> getSourceObjectIdsOfArchivedFlowNodeInstances(java.util.List<java.lang.Long> sourceProcessInstanceIds)
throws SBonitaReadException
sourceProcessInstanceIds - root source process instance idsSBonitaReadExceptionvoid deleteArchivedFlowNodeInstances(java.util.List<java.lang.Long> sourceObjectIds)
throws SBonitaException
SBonitaException