Class CmmnEngineConfigurator
java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfigurator
org.flowable.cmmn.engine.configurator.CmmnEngineConfigurator
- All Implemented Interfaces:
EngineConfigurator
- Direct Known Subclasses:
SpringCmmnEngineConfigurator
- Author:
- Joram Barrez
-
Field Summary
FieldsFields inherited from class org.flowable.common.engine.impl.AbstractEngineConfigurator
enableMybatisXmlMappingValidation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeInit(AbstractEngineConfiguration engineConfiguration) Called before any initialisation has been done.voidconfigure(AbstractEngineConfiguration engineConfiguration) Called when the engine boots up, before it is usable, but after the initialisation of internal objects is done.protected voidcopyProcessEngineProperties(ProcessEngineConfigurationImpl processEngineConfiguration) protected List<EngineDeployer>protected JobServiceConfigurationgetJobServiceConfiguration(AbstractEngineConfiguration engineConfiguration) protected StringintWhen theEngineConfiguratorinstances are used, they are first ordered by this priority number (lowest to highest).protected ProcessEngineConfigurationImplgetProcessEngineConfiguration(AbstractEngineConfiguration engineConfiguration) protected voidinitCaseInstanceService(ProcessEngineConfigurationImpl processEngineConfiguration) protected CmmnEngineprotected voidinitProcessInstanceService(ProcessEngineConfigurationImpl processEngineConfiguration) protected voidinitProcessInstanceStateChangedCallbacks(ProcessEngineConfigurationImpl processEngineConfiguration) setCmmnEngineConfiguration(CmmnEngineConfiguration cmmnEngineConfiguration) Methods inherited from class org.flowable.common.engine.impl.AbstractEngineConfigurator
createDocumentBuilderFactory, getMybatisTypeAliases, getMybatisTypeHandlers, initClock, initCommandContextFactory, initDataSource, initDbProperties, initDbSqlSessionFactory, initEngineConfigurations, initEventDispatcher, initEventRegistryEventConsumers, initialiseCommonProperties, initIdGenerator, initObjectMapper, initServiceConfigurations, initSessionFactories, initVariableTypes, isEnableMybatisXmlMappingValidation, registerCustomDeployers, registerCustomMybatisMappings, setEnableMybatisXmlMappingValidation
-
Field Details
-
cmmnEngineConfiguration
-
-
Constructor Details
-
CmmnEngineConfigurator
public CmmnEngineConfigurator()
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:EngineConfiguratorWhen theEngineConfiguratorinstances are used, they are first ordered by this priority number (lowest to highest). If you have dependencies betweenEngineConfiguratorinstances, use the priorities accordingly to order them as needed. -
getCustomDeployers
- Specified by:
getCustomDeployersin classAbstractEngineConfigurator
-
getMybatisCfgPath
- Specified by:
getMybatisCfgPathin classAbstractEngineConfigurator- Returns:
- The path to the Mybatis cfg file that is normally used for the engine (so the full cfg, not an individual mapper). Return null in case no custom mappers should be loaded.
-
beforeInit
Description copied from interface:EngineConfiguratorCalled before any initialisation has been done. This can for example be useful to change configuration settings before anything that uses those properties is created. Allows to tweak the engine by passing theAbstractEngineConfigurationwhich allows tweaking it programmatically. An example is the jdbc url. When aEngineConfiguratorinstance wants to change it, it needs to do it in this method, or otherwise the datasource would already have been created with the 'old' value for the jdbc url.- Specified by:
beforeInitin interfaceEngineConfigurator- Overrides:
beforeInitin classAbstractEngineConfigurator
-
configure
Description copied from interface:EngineConfiguratorCalled when the engine boots up, before it is usable, but after the initialisation of internal objects is done. Allows to tweak the engine by passing theAbstractEngineConfigurationwhich allows tweaking it programmatically. An example is the ldap user/group manager, which is an addition to the engine. No default properties need to be overridden for this (otherwise theEngineConfigurator.beforeInit(AbstractEngineConfiguration)method should be used) so the logic contained in this method is executed after initialisation of the default objects. Probably a better name would be 'afterInit' (cfrEngineConfigurator.beforeInit(AbstractEngineConfiguration)), but not possible due to backwards compatibility. -
copyProcessEngineProperties
protected void copyProcessEngineProperties(ProcessEngineConfigurationImpl processEngineConfiguration) -
getProcessEngineConfiguration
protected ProcessEngineConfigurationImpl getProcessEngineConfiguration(AbstractEngineConfiguration engineConfiguration) -
getJobServiceConfiguration
protected JobServiceConfiguration getJobServiceConfiguration(AbstractEngineConfiguration engineConfiguration) -
initProcessInstanceService
protected void initProcessInstanceService(ProcessEngineConfigurationImpl processEngineConfiguration) -
initCaseInstanceService
-
initProcessInstanceStateChangedCallbacks
protected void initProcessInstanceStateChangedCallbacks(ProcessEngineConfigurationImpl processEngineConfiguration) -
getEntityInsertionOrder
- Specified by:
getEntityInsertionOrderin classAbstractEngineConfigurator
-
getEntityDeletionOrder
- Specified by:
getEntityDeletionOrderin classAbstractEngineConfigurator
-
initCmmnEngine
-
getCmmnEngineConfiguration
-
setCmmnEngineConfiguration
public CmmnEngineConfigurator setCmmnEngineConfiguration(CmmnEngineConfiguration cmmnEngineConfiguration)
-