Class ProcessManagerImpl
java.lang.Object
org.chenile.workflow.service.impl.StateEntityServiceImpl<Process>
org.chenile.orchestrator.process.service.impl.ProcessManagerImpl
- All Implemented Interfaces:
ProcessManager, StateEntityService<Process>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ProcessConfigurator(package private) ProcessRepositoryFields inherited from class StateEntityServiceImpl
entityStore -
Constructor Summary
ConstructorsConstructorDescriptionProcessManagerImpl(STM<Process> stm, STMActionsInfoProvider stmActionsInfoProvider, EntityStore<Process> entityStore) -
Method Summary
Modifier and TypeMethodDescriptionAn implementation of the create method that delegates to the entity store after filling up the mandatory attributes.getSubProcesses(String processId, boolean recursive) private voidgetSubProcesses(List<Process> childProcesses, Process process, boolean recursive) private voidmakeProcessLeafIfConfigured(Process process) Methods inherited from class StateEntityServiceImpl
config, getAllowedActionsAndMetadata, getAllowedActionsAndMetadata, makeStateEntityResponse, process, processById, processEntity, retrieveMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StateEntityService
config, getAllowedActionsAndMetadata, getAllowedActionsAndMetadata, process, processById, retrieve
-
Field Details
-
processConfigurator
-
processRepository
-
-
Constructor Details
-
ProcessManagerImpl
public ProcessManagerImpl(STM<Process> stm, STMActionsInfoProvider stmActionsInfoProvider, EntityStore<Process> entityStore) - Parameters:
stm- the state machine that has read the corresponding State Transition DiagramstmActionsInfoProvider- the provider that gives out info about the state diagramentityStore- the store for persisting the entity
-
-
Method Details
-
create
Description copied from class:StateEntityServiceImplAn implementation of the create method that delegates to the entity store after filling up the mandatory attributes. It makes sure that it empties out the state if state has been supplied because we want STM to supply the initial state.- Specified by:
createin interfaceStateEntityService<Process>- Overrides:
createin classStateEntityServiceImpl<Process>- Parameters:
process- the state entity that needs to be created.- Returns:
- the entity with the allowed actions
-
makeProcessLeafIfConfigured
-
getSubProcesses
- Specified by:
getSubProcessesin interfaceProcessManager
-
getSubProcesses
-