Class DatabaseProcessConfigurator
java.lang.Object
org.chenile.orchestrator.process.config.reader.ProcessConfiguratorBase
org.chenile.orchestrator.process.config.reader.ProcessConfigurator
org.chenile.orchestrator.process.service.defs.DatabaseProcessConfigurator
- All Implemented Interfaces:
IProcessConfigurator
Resolves process definitions from the
process_definition table.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final Map<String, ProcessDef> private final ObjectMapperprivate final ProcessDefinitionRepositoryFields inherited from class ProcessConfiguratorBase
processes -
Constructor Summary
ConstructorsConstructorDescriptionDatabaseProcessConfigurator(ProcessDefinitionRepository processDefinitionRepository) DatabaseProcessConfigurator(ProcessDefinitionRepository processDefinitionRepository, ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidInvalidate cached definitions and misses; subsequent lookups reload from the database.findByName(String name) findByPredecessorProcessType(String processType) private ProcessDeftoProcessDef(ProcessDefinition definition) Methods inherited from class ProcessConfigurator
read, read, read, validate
-
Field Details
-
processDefinitionRepository
-
objectMapper
-
cache
-
allDefinitionsLoaded
private boolean allDefinitionsLoaded
-
-
Constructor Details
-
DatabaseProcessConfigurator
-
DatabaseProcessConfigurator
public DatabaseProcessConfigurator(ProcessDefinitionRepository processDefinitionRepository, ObjectMapper objectMapper)
-
-
Method Details
-
findByName
- Specified by:
findByNamein interfaceIProcessConfigurator- Overrides:
findByNamein classProcessConfiguratorBase
-
findByPredecessorProcessType
- Specified by:
findByPredecessorProcessTypein interfaceIProcessConfigurator- Overrides:
findByPredecessorProcessTypein classProcessConfiguratorBase
-
clearCache
public void clearCache()Invalidate cached definitions and misses; subsequent lookups reload from the database. -
toProcessDef
-
CHENILE