public class ProcessInstanceServiceImpl extends Object implements org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService
| Constructor and Description |
|---|
ProcessInstanceServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceRead,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService activityService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.core.process.instance.api.event.EventInstanceService bpmEventInstanceService,
org.bonitasoft.engine.data.instance.api.DataInstanceService dataInstanceService,
org.bonitasoft.engine.archive.ArchiveService archiveService,
org.bonitasoft.engine.core.process.instance.api.TransitionService transitionService,
ProcessDefinitionService processDefinitionService,
org.bonitasoft.engine.core.connector.ConnectorInstanceService connectorInstanceService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.core.document.api.DocumentService documentService,
org.bonitasoft.engine.core.process.comment.api.SCommentService commentService,
org.bonitasoft.engine.core.process.instance.api.TokenService tokenService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIfCallerIsNotActive(long callerId) |
void |
createProcessInstance(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance) |
void |
deleteArchivedParentProcessInstanceAndElements(org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance saProcessInstance) |
long |
deleteArchivedParentProcessInstancesAndElements(List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> saProcessInstances) |
void |
deleteArchivedProcessInstance(org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance archivedProcessInstance) |
void |
deleteArchivedProcessInstanceElements(long processInstanceId,
long processDefinitionId) |
void |
deleteArchivedProcessInstancesOfProcessInstance(long processInstanceId) |
protected void |
deleteConnectorInstancesIfNecessary(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
SProcessDefinition processDefinition) |
void |
deleteFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
SProcessDefinition processDefinition) |
long |
deleteParentProcessInstanceAndElements(List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> sProcessInstances) |
void |
deleteParentProcessInstanceAndElements(long processInstanceId) |
void |
deleteParentProcessInstanceAndElements(org.bonitasoft.engine.core.process.instance.model.SProcessInstance sProcessInstance) |
void |
deleteProcessInstance(long processInstanceId) |
void |
deleteProcessInstance(org.bonitasoft.engine.core.process.instance.model.SProcessInstance sProcessInstance) |
protected void |
deleteProcessInstanceElements(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance) |
List<Long> |
getArchivedChildrenSourceObjectIdsFromRootProcessInstance(long rootProcessIntanceId,
int fromIndex,
int maxResults,
org.bonitasoft.engine.persistence.OrderByType sortingOrder) |
org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance |
getArchivedProcessInstance(long archivedProcessInstanceId) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> |
getArchivedProcessInstancesInAllStates(List<Long> processInstanceIds) |
List<Long> |
getChildInstanceIdsOfProcessInstance(long processInstanceId,
int fromIndex,
int maxResults,
String sortingField,
org.bonitasoft.engine.persistence.OrderByType sortingOrder) |
org.bonitasoft.engine.core.process.instance.model.SProcessInstance |
getChildOfActivity(long activityInstId) |
org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance |
getLastArchivedProcessInstance(long processInstanceId) |
long |
getNumberOfArchivedProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfArchivedProcessInstancesInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions) |
long |
getNumberOfArchivedProcessInstancesSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions) |
long |
getNumberOfArchivedProcessInstancesWithoutSubProcess(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfChildInstancesOfProcessInstance(long processInstanceId) |
long |
getNumberOfFailedProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfOpenProcessInstancesInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfOpenProcessInstancesInvolvingUsersManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfOpenProcessInstancesSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfProcessInstances(long processDefinitionId) |
long |
getNumberOfProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
org.bonitasoft.engine.core.process.instance.model.SProcessInstance |
getProcessInstance(long processInstanceId) |
List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> |
getProcessInstancesInState(org.bonitasoft.engine.persistence.QueryOptions queryOptions,
ProcessInstanceState state) |
List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> |
getProcessInstancesInStates(org.bonitasoft.engine.persistence.QueryOptions queryOptions,
ProcessInstanceState... states) |
List<Long> |
getSourceProcesInstanceIdsOfArchProcessInstancesFromDefinition(long processDefinitionId,
int fromIndex,
int maxResults,
org.bonitasoft.engine.persistence.OrderByType sortingOrder) |
protected Set<Integer> |
getStateIdsFromStates(ProcessInstanceState... states) |
protected void |
logArchivedProcessInstanceNotFound(org.bonitasoft.engine.commons.exceptions.SBonitaException e) |
protected void |
logProcessInstanceNotFound(org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException e) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> |
searchArchivedProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> |
searchArchivedProcessInstancesInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> |
searchArchivedProcessInstancesSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> |
searchArchivedProcessInstancesWithoutSubProcess(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> |
searchFailedProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> |
searchOpenProcessInstancesInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> |
searchOpenProcessInstancesInvolvingUsersManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> |
searchOpenProcessInstancesSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> |
searchProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
void |
setMigrationPlanId(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance,
long migrationPlanId) |
void |
setState(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance,
ProcessInstanceState state) |
void |
setStateCategory(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance,
org.bonitasoft.engine.core.process.instance.model.SStateCategory stateCatetory) |
void |
updateProcess(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) |
public ProcessInstanceServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceRead,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.core.process.instance.api.ActivityInstanceService activityService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.core.process.instance.api.event.EventInstanceService bpmEventInstanceService,
org.bonitasoft.engine.data.instance.api.DataInstanceService dataInstanceService,
org.bonitasoft.engine.archive.ArchiveService archiveService,
org.bonitasoft.engine.core.process.instance.api.TransitionService transitionService,
ProcessDefinitionService processDefinitionService,
org.bonitasoft.engine.core.connector.ConnectorInstanceService connectorInstanceService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.core.document.api.DocumentService documentService,
org.bonitasoft.engine.core.process.comment.api.SCommentService commentService,
org.bonitasoft.engine.core.process.instance.api.TokenService tokenService)
public void createProcessInstance(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceCreationException
createProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceCreationExceptionpublic org.bonitasoft.engine.core.process.instance.model.SProcessInstance getProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundException
getProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundExceptionpublic void deleteProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundException
deleteProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundExceptionpublic long deleteParentProcessInstanceAndElements(List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> sProcessInstances) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException, org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionException, org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteParentProcessInstanceAndElements in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic void deleteParentProcessInstanceAndElements(long processInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteParentProcessInstanceAndElements in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic void deleteParentProcessInstanceAndElements(org.bonitasoft.engine.core.process.instance.model.SProcessInstance sProcessInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteParentProcessInstanceAndElements in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionprotected void logProcessInstanceNotFound(org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException e)
protected void logArchivedProcessInstanceNotFound(org.bonitasoft.engine.commons.exceptions.SBonitaException e)
public long deleteArchivedParentProcessInstancesAndElements(List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> saProcessInstances) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException, org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionException, org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteArchivedParentProcessInstancesAndElements in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic void deleteArchivedParentProcessInstanceAndElements(org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance saProcessInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteArchivedParentProcessInstanceAndElements in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic void deleteArchivedProcessInstance(org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance archivedProcessInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteArchivedProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic void deleteArchivedProcessInstanceElements(long processInstanceId,
long processDefinitionId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteArchivedProcessInstanceElements in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic List<Long> getSourceProcesInstanceIdsOfArchProcessInstancesFromDefinition(long processDefinitionId, int fromIndex, int maxResults, org.bonitasoft.engine.persistence.OrderByType sortingOrder) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException
getSourceProcesInstanceIdsOfArchProcessInstancesFromDefinition in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionpublic void deleteProcessInstance(org.bonitasoft.engine.core.process.instance.model.SProcessInstance sProcessInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionprotected void checkIfCallerIsNotActive(long callerId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionException
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceHierarchicalDeletionExceptionprotected void deleteProcessInstanceElements(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionprotected void deleteConnectorInstancesIfNecessary(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
SProcessDefinition processDefinition)
throws org.bonitasoft.engine.core.connector.exception.SConnectorInstanceReadException,
org.bonitasoft.engine.core.connector.exception.SConnectorInstanceDeletionException
org.bonitasoft.engine.core.connector.exception.SConnectorInstanceReadExceptionorg.bonitasoft.engine.core.connector.exception.SConnectorInstanceDeletionExceptionpublic void deleteArchivedProcessInstancesOfProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
deleteArchivedProcessInstancesOfProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void deleteFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
SProcessDefinition processDefinition)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
deleteFlowNodeInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic void setState(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance,
ProcessInstanceState state)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
setState in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic void setMigrationPlanId(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance,
long migrationPlanId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
setMigrationPlanId in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic void setStateCategory(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance,
org.bonitasoft.engine.core.process.instance.model.SStateCategory stateCatetory)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
setStateCategory in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic List<Long> getChildInstanceIdsOfProcessInstance(long processInstanceId, int fromIndex, int maxResults, String sortingField, org.bonitasoft.engine.persistence.OrderByType sortingOrder) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException
getChildInstanceIdsOfProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionpublic org.bonitasoft.engine.core.process.instance.model.SProcessInstance getChildOfActivity(long activityInstId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundException,
org.bonitasoft.engine.persistence.SBonitaReadException
getChildOfActivity in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfChildInstancesOfProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException
getNumberOfChildInstancesOfProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionpublic long getNumberOfProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfProcessInstances in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> searchProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchProcessInstances in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfOpenProcessInstancesSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfOpenProcessInstancesSupervisedBy in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> searchOpenProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchOpenProcessInstancesSupervisedBy in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfOpenProcessInstancesInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfOpenProcessInstancesInvolvingUser in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> searchOpenProcessInstancesInvolvingUser(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchOpenProcessInstancesInvolvingUser in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfOpenProcessInstancesInvolvingUsersManagedBy(long managerUserId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfOpenProcessInstancesInvolvingUsersManagedBy in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> searchOpenProcessInstancesInvolvingUsersManagedBy(long managerUserId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchOpenProcessInstancesInvolvingUsersManagedBy in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfArchivedProcessInstancesWithoutSubProcess(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfArchivedProcessInstancesWithoutSubProcess in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> searchArchivedProcessInstancesWithoutSubProcess(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchArchivedProcessInstancesWithoutSubProcess in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> searchArchivedProcessInstancesSupervisedBy(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchArchivedProcessInstancesSupervisedBy in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfArchivedProcessInstancesSupervisedBy(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfArchivedProcessInstancesSupervisedBy in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfArchivedProcessInstancesInvolvingUser(long userId,
org.bonitasoft.engine.persistence.QueryOptions countOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfArchivedProcessInstancesInvolvingUser in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfArchivedProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfArchivedProcessInstances in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> searchArchivedProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchArchivedProcessInstances in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> searchArchivedProcessInstancesInvolvingUser(long userId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchArchivedProcessInstancesInvolvingUser in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void updateProcess(org.bonitasoft.engine.core.process.instance.model.SProcessInstance processInstance,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException
updateProcess in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationExceptionpublic org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance getArchivedProcessInstance(long archivedProcessInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException
getArchivedProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance> getArchivedProcessInstancesInAllStates(List<Long> processInstanceIds) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException
getArchivedProcessInstancesInAllStates in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> getProcessInstancesInStates(org.bonitasoft.engine.persistence.QueryOptions queryOptions, ProcessInstanceState... states) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException
getProcessInstancesInStates in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionprotected Set<Integer> getStateIdsFromStates(ProcessInstanceState... states)
public List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> getProcessInstancesInState(org.bonitasoft.engine.persistence.QueryOptions queryOptions, ProcessInstanceState state) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadException
getProcessInstancesInState in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceReadExceptionpublic List<Long> getArchivedChildrenSourceObjectIdsFromRootProcessInstance(long rootProcessIntanceId, int fromIndex, int maxResults, org.bonitasoft.engine.persistence.OrderByType sortingOrder) throws org.bonitasoft.engine.persistence.SBonitaReadException
getArchivedChildrenSourceObjectIdsFromRootProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance getLastArchivedProcessInstance(long processInstanceId)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getLastArchivedProcessInstance in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfFailedProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfFailedProcessInstances in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SProcessInstance> searchFailedProcessInstances(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchFailedProcessInstances in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfProcessInstances(long processDefinitionId)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfProcessInstances in interface org.bonitasoft.engine.core.process.instance.api.ProcessInstanceServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.