public abstract class FlowNodeInstanceServiceImpl extends Object implements org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceService
| Modifier and Type | Field and Description |
|---|---|
protected org.bonitasoft.engine.core.process.instance.model.builder.BPMInstanceBuilders |
instanceBuilders |
ACTIVITY_INSTANCE_TOKEN_COUNT, ACTIVITYINSTANCE_DISPLAY_DESCRIPTION, ACTIVITYINSTANCE_DISPLAY_DESCRIPTION_MODIFIED, ACTIVITYINSTANCE_DISPLAY_NAME, ACTIVITYINSTANCE_STATE, ARCHIVED_FLOWNODE_INSTANCE, EXECUTED_BY_DELEGATE_MODIFIED, EXECUTED_BY_MODIFIED, EXPECTED_END_DATE_MODIFIED, FLOWNODE_INSTANCE, LOOPINSTANCE_LOOPMAX_MODIFIED, MULTIINSTANCE_LOOPCARDINALITY_MODIFIED, MULTIINSTANCE_NUMBEROFINSTANCE_MODIFIED, STATE_CATEGORY| Constructor and Description |
|---|
FlowNodeInstanceServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceRead,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.core.process.instance.model.builder.BPMInstanceBuilders instanceBuilders,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger) |
| 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) |
List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> |
getActiveFlowNodes(long rootContainerId) |
org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance |
getArchivedFlowNodeInstance(long archivedFlowNodeInstanceId,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> |
getArchivedFlowNodeInstances(long rootContainerId,
int fromIndex,
int maxResults) |
protected org.bonitasoft.engine.events.EventService |
getEventService() |
org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance |
getFlowNodeInstance(long flowNodeInstanceId) |
List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> |
getFlowNodeInstances(long rootContainerId,
int fromIndex,
int maxResults) |
List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> |
getFlowNodeInstancesToRestart(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
protected org.bonitasoft.engine.core.process.instance.model.builder.BPMInstanceBuilders |
getInstanceBuilders() |
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 |
getNumberOfFlowNodeInstances(Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass,
org.bonitasoft.engine.persistence.QueryOptions countOptions) |
protected org.bonitasoft.engine.persistence.ReadPersistenceService |
getPersistenceRead() |
protected org.bonitasoft.engine.core.process.instance.model.builder.SFlowNodeInstanceLogBuilder |
getQueriableLog(org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction.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) |
List<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> |
searchArchivedFlowNodeInstances(Class<? extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> entityClass,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> |
searchFlowNodeInstances(Class<? extends org.bonitasoft.engine.persistence.PersistentObject> entityClass,
org.bonitasoft.engine.persistence.QueryOptions searchOptions) |
void |
setExecutedBy(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long userId) |
void |
setExecutedByDelegate(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long executerDelegateId) |
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.HasCRUDEAction.ActionType actionType,
T logBuilder) |
protected final org.bonitasoft.engine.core.process.instance.model.builder.BPMInstanceBuilders instanceBuilders
public FlowNodeInstanceServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceRead,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.core.process.instance.model.builder.BPMInstanceBuilders instanceBuilders,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger)
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.HasCRUDEAction.ActionType actionType,
T logBuilder)
protected org.bonitasoft.engine.core.process.instance.model.builder.SFlowNodeInstanceLogBuilder getQueriableLog(org.bonitasoft.engine.queriablelogger.model.builder.HasCRUDEAction.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 List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> getActiveFlowNodes(long rootContainerId) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException
getActiveFlowNodes 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.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,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService)
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 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 setExecutedByDelegate(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long executerDelegateId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeModificationException
setExecutedByDelegate 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 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 List<org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> searchArchivedFlowNodeInstances(Class<? extends org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance> 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.SBonitaSearchExceptionprotected org.bonitasoft.engine.events.EventService getEventService()
protected org.bonitasoft.engine.recorder.Recorder getRecorder()
protected org.bonitasoft.engine.persistence.ReadPersistenceService getPersistenceRead()
protected org.bonitasoft.engine.core.process.instance.model.builder.BPMInstanceBuilders getInstanceBuilders()
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.SFlowNodeReadException,
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.SFlowNodeReadExceptionorg.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.SFlowNodeReadException,
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.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeDeletionExceptionpublic List<org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance> getFlowNodeInstancesToRestart(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException
getFlowNodeInstancesToRestart in interface org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionCopyright © 2013 BonitaSoft. All Rights Reserved.