org.bonitasoft.engine.core.process.instance.impl
public abstract class FlowNodeInstancesServiceImpl extends Object implements org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceService
ACTIVITY_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 |
|---|
FlowNodeInstancesServiceImpl(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 |
deleteArchivedFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance saFlowNodeInstance) |
void |
deleteFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance sFlowNodeInstance) |
org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance |
getArchivedFlowNodeInstance(long archivedFlowNodeInstanceId) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> |
getArchivedFlowNodeInstances(long rootContainerId,
int fromIndex,
int maxResults) |
org.bonitasoft.engine.archive.ArchiveService |
getArchiveService() |
protected org.bonitasoft.engine.events.EventService |
getEventService() |
org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance |
getFlowNodeInstance(long flowNodeInstanceId) |
List<Long> |
getFlowNodeInstanceIdsToRestart(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> |
getFlowNodeInstances(long rootContainerId,
int fromIndex,
int maxResults) |
<T extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> |
getLastArchivedFlowNodeInstance(Class<T> entityClass,
long sourceObjectFlowNodeInstanceId) |
protected org.bonitasoft.engine.log.technical.TechnicalLoggerService |
getLogger() |
long |
getNumberOfArchivedFlowNodeInstances(Class<? extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> entityClass,
org.bonitasoft.engine.persistence.QueryOptions countOptions) |
long |
getNumberOfArchivedFlowNodeInstancesSupervisedBy(long supervisorId,
Class<? extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> entityClass,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
long |
getNumberOfFlowNodeInstances(Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass,
org.bonitasoft.engine.persistence.QueryOptions countOptions) |
long |
getNumberOfFlowNodeInstancesSupervisedBy(Long supervisorId,
Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
protected org.bonitasoft.engine.services.PersistenceService |
getPersistenceService() |
long |
getProcessInstanceId(long containerId,
String containerType) |
protected org.bonitasoft.engine.core.process.instance.model.builder.SFlowNodeInstanceLogBuilder |
getQueriableLog(org.bonitasoft.engine.queriablelogger.model.builder.ActionType actionType,
String message,
org.bonitasoft.engine.core.process.instance.model.SFlowElementInstance flowElementInstance) |
protected org.bonitasoft.engine.recorder.Recorder |
getRecorder() |
protected <T> List<T> |
getUnmodifiableList(List<T> selectList) |
protected <T extends org.bonitasoft.engine.queriablelogger.model.builder.SLogBuilder> |
initializeLogBuilder(T logBuilder,
String message) |
<T extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> |
searchArchivedFlowNodeInstances(Class<T> entityClass,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> |
searchArchivedFlowNodeInstancesSupervisedBy(long supervisorId,
Class<? extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> entityClass,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> |
searchFlowNodeInstances(Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> |
searchFlowNodeInstancesSupervisedBy(Long supervisorId,
Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
void |
setExecutedBy(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long userId) |
void |
setExecutedBySubstitute(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long executerSubstituteId) |
void |
setExecuting(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance) |
void |
setExpectedEndDate(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long dueDate) |
void |
setState(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState state) |
void |
setStateCategory(org.bonitasoft.engine.core.process.instance.model.SFlowElementInstance flowElementInstance,
org.bonitasoft.engine.core.process.instance.model.SStateCategory stateCategory) |
void |
setTaskPriority(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
org.bonitasoft.engine.core.process.instance.model.STaskPriority priority) |
void |
updateDisplayDescription(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
String displayDescription) |
void |
updateDisplayName(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
String displayName) |
protected void |
updateFlowNode(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
String eventName,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) |
protected <T extends org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction> |
updateLog(org.bonitasoft.engine.queriablelogger.model.builder.ActionType actionType,
T logBuilder) |
public FlowNodeInstancesServiceImpl(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 org.bonitasoft.engine.archive.ArchiveService getArchiveService()
protected <T extends org.bonitasoft.engine.queriablelogger.model.builder.SLogBuilder> void initializeLogBuilder(T logBuilder,
String message)
protected <T extends org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction> void updateLog(org.bonitasoft.engine.queriablelogger.model.builder.ActionType actionType,
T logBuilder)
protected org.bonitasoft.engine.core.process.instance.model.builder.SFlowNodeInstanceLogBuilder getQueriableLog(org.bonitasoft.engine.queriablelogger.model.builder.ActionType actionType,
String message,
org.bonitasoft.engine.core.process.instance.model.SFlowElementInstance flowElementInstance)
public void setState(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
org.bonitasoft.engine.core.process.instance.api.states.FlowNodeState state)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
setState in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic void setExecuting(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
setExecuting in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic void updateDisplayName(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
String displayName)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
updateDisplayName in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic void updateDisplayDescription(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
String displayDescription)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
updateDisplayDescription in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic void setTaskPriority(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
org.bonitasoft.engine.core.process.instance.model.STaskPriority priority)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
setTaskPriority in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance getFlowNodeInstance(long flowNodeInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException
getFlowNodeInstance in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> getFlowNodeInstances(long rootContainerId, int fromIndex, int maxResults) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException
getFlowNodeInstances in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> getArchivedFlowNodeInstances(long rootContainerId, int fromIndex, int maxResults) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException
getArchivedFlowNodeInstances in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionpublic org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance getArchivedFlowNodeInstance(long archivedFlowNodeInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException
getArchivedFlowNodeInstance in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundExceptionpublic <T extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> T getLastArchivedFlowNodeInstance(Class<T> entityClass, long sourceObjectFlowNodeInstanceId) throws org.bonitasoft.engine.persistence.SBonitaSearchException
getLastArchivedFlowNodeInstance in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic void setStateCategory(org.bonitasoft.engine.core.process.instance.model.SFlowElementInstance flowElementInstance,
org.bonitasoft.engine.core.process.instance.model.SStateCategory stateCategory)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
setStateCategory in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic void setExecutedBy(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long userId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
setExecutedBy in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic void setExecutedBySubstitute(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long executerSubstituteId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
setExecutedBySubstitute in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic void setExpectedEndDate(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long dueDate)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
setExpectedEndDate in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionprotected void updateFlowNode(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
String eventName,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationExceptionpublic long getNumberOfFlowNodeInstances(Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass, org.bonitasoft.engine.persistence.QueryOptions countOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfFlowNodeInstances in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> searchFlowNodeInstances(Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchFlowNodeInstances in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfFlowNodeInstancesSupervisedBy(Long supervisorId, Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfFlowNodeInstancesSupervisedBy in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> searchFlowNodeInstancesSupervisedBy(Long supervisorId, Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchFlowNodeInstancesSupervisedBy in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfArchivedFlowNodeInstances(Class<? extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> entityClass, org.bonitasoft.engine.persistence.QueryOptions countOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfArchivedFlowNodeInstances in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic <T extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> List<T> searchArchivedFlowNodeInstances(Class<T> entityClass, org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchArchivedFlowNodeInstances in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic long getNumberOfArchivedFlowNodeInstancesSupervisedBy(long supervisorId,
Class<? extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> entityClass,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfArchivedFlowNodeInstancesSupervisedBy in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> searchArchivedFlowNodeInstancesSupervisedBy(long supervisorId, Class<? extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> entityClass, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchArchivedFlowNodeInstancesSupervisedBy in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionprotected org.bonitasoft.engine.events.EventService getEventService()
protected org.bonitasoft.engine.recorder.Recorder getRecorder()
protected org.bonitasoft.engine.services.PersistenceService getPersistenceService()
protected org.bonitasoft.engine.log.technical.TechnicalLoggerService getLogger()
public void deleteFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance sFlowNodeInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeDeletionException
deleteFlowNodeInstance in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeDeletionExceptionpublic void deleteArchivedFlowNodeInstance(org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance saFlowNodeInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeDeletionException
deleteArchivedFlowNodeInstance in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeDeletionExceptionpublic List<Long> getFlowNodeInstanceIdsToRestart(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException
getFlowNodeInstanceIdsToRestart in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionpublic long getProcessInstanceId(long containerId,
String containerType)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException
getProcessInstanceId in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.