Package com.flowable.policy.engine
Class PolicyEngineConfiguration
java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfiguration
org.flowable.common.engine.impl.AbstractBuildableEngineConfiguration<PolicyEngine>
com.flowable.policy.engine.PolicyEngineConfiguration
- All Implemented Interfaces:
PolicyEngineConfigurationApi
,org.flowable.common.spring.SpringEngineConfiguration
,Aware
,ApplicationContextAware
,Lifecycle
,Phased
,SmartLifecycle
public class PolicyEngineConfiguration
extends org.flowable.common.engine.impl.AbstractBuildableEngineConfiguration<PolicyEngine>
implements org.flowable.common.spring.SpringEngineConfiguration, PolicyEngineConfigurationApi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ApplicationContext
protected final PolicyDataManagers
static final String
static final String
protected PolicyDeploymentManager
protected String
protected String
protected Resource[]
protected final PolicyEntityManagers
protected String
protected org.flowable.common.engine.impl.history.HistoryLevel
static final String
protected final Object
protected org.flowable.common.engine.impl.persistence.deploy.DeploymentCache
<PolicyDefinitionCacheEntry> protected int
protected PolicyDefinitionDeployer
protected String
protected PolicyRepositoryService
protected PolicyResourceConverter
protected boolean
protected PlatformTransactionManager
protected Integer
Fields inherited from class org.flowable.common.engine.impl.AbstractBuildableEngineConfiguration
postEngineBuildConsumer, runPostEngineBuildConsumer
Fields inherited from class org.flowable.common.engine.impl.AbstractEngineConfiguration
additionalEventDispatchActions, additionalSchemaManagers, agendaOperationExecutionListeners, agendaOperationRunner, allConfigurators, alwaysLookupLatestDefinitionVersion, beans, byteArrayDataManager, byteArrayEntityManager, classLoader, clock, commandContextFactory, commandExecutor, commandInterceptors, commandInvoker, commonSchemaManager, configurators, customMybatisInterceptors, customMybatisMappers, customMybatisXMLMappers, customPostCommandInterceptors, customPostDeployers, customPreCommandInterceptors, customPreDeployers, customSessionFactories, DATABASE_TYPE_COCKROACHDB, DATABASE_TYPE_DB2, DATABASE_TYPE_H2, DATABASE_TYPE_HSQL, DATABASE_TYPE_MSSQL, DATABASE_TYPE_MYSQL, DATABASE_TYPE_ORACLE, DATABASE_TYPE_POSTGRES, databaseCatalog, databaseSchema, databaseSchemaUpdate, databaseTablePrefix, databaseType, databaseTypeMappings, databaseWildcardEscapeCharacter, dataSource, dataSourceJndiName, DB_SCHEMA_UPDATE_CREATE, DB_SCHEMA_UPDATE_CREATE_DROP, DB_SCHEMA_UPDATE_DROP_CREATE, DB_SCHEMA_UPDATE_FALSE, DB_SCHEMA_UPDATE_TRUE, dbSqlSessionFactory, DEFAULT_GENERIC_MAX_LENGTH_STRING, DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER, DEFAULT_ORACLE_MAX_LENGTH_STRING, defaultCommandConfig, defaultCommandInterceptors, defaultTenantProvider, dependentEngineMybatisTypeAliasConfigs, dependentEngineMybatisTypeHandlerConfigs, dependentEngineMyBatisXmlMappers, deployers, enableConfiguratorServiceLoader, enableEventDispatcher, enableLogSqlExecutionTime, engineConfigurations, engineLifecycleListeners, eventDispatcher, eventListeners, eventRegistryConfigurator, eventRegistryEventConsumers, fallbackToDefaultTenant, forceCloseMybatisConnectionPool, idGenerator, idmEngineConfigurator, isBulkInsertEnabled, isDbHistoryUsed, jdbcDefaultTransactionIsolationLevel, jdbcDriver, jdbcMaxActiveConnections, jdbcMaxCheckoutTime, jdbcMaxIdleConnections, jdbcMaxWaitTime, jdbcPassword, jdbcPingConnectionNotUsedFor, jdbcPingEnabled, jdbcPingQuery, jdbcUrl, jdbcUsername, lockPollRate, logger, loggingListener, maxLengthStringVariableType, maxNrOfStatementsInBulkInsert, mybatisMappingFile, NO_TENANT_ID, objectMapper, PRODUCT_NAME_CRDB, PRODUCT_NAME_POSTGRES, propertyDataManager, propertyEntityManager, schemaCommandConfig, schemaLockWaitTime, schemaManagementCmd, schemaManager, serviceConfigurations, sessionFactories, sqlSessionFactory, tableDataManager, tablePrefixIsSchema, transactionContextFactory, transactionFactory, transactionsExternallyManaged, typedEventListeners, useClassForNameClassLoading, useLockForDatabaseSchemaUpdate, usePrefixId, usingRelationalDatabase, usingSchemaMgmt, variableLengthVerifier, xmlEncoding
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
Fields inherited from interface org.flowable.common.spring.SpringEngineConfiguration
PHASE, PHASE_DELTA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
autoDeployResources
(PolicyEngine policyEngine) protected PolicyEngine
protected org.flowable.common.engine.impl.db.SchemaManager
protected Consumer
<PolicyEngine> org.flowable.common.engine.impl.interceptor.CommandInterceptor
org.flowable.common.spring.AutoDeploymentStrategy
<PolicyEngine> Gets theAutoDeploymentStrategy
for the provided mode.Collection
<? extends org.flowable.common.engine.impl.EngineDeployer> Resource[]
Collection
<org.flowable.common.spring.AutoDeploymentStrategy<PolicyEngine>> org.flowable.common.engine.impl.history.HistoryLevel
int
getPhase()
org.flowable.common.engine.impl.persistence.deploy.DeploymentCache
<PolicyDefinitionCacheEntry> int
protected void
init()
void
protected void
void
protected void
protected void
void
void
protected void
protected void
protected void
void
boolean
void
setApplicationContext
(ApplicationContext applicationContext) setDataSource
(DataSource dataSource) void
setDeploymentManager
(PolicyDeploymentManager deploymentManager) void
setDeploymentMode
(String deploymentMode) void
setDeploymentName
(String deploymentName) void
setDeploymentResources
(Resource[] deploymentResources) void
setDeploymentStrategies
(Collection<org.flowable.common.spring.AutoDeploymentStrategy<PolicyEngine>> deploymentStrategies) void
setHistory
(String history) void
setHistoryLevel
(org.flowable.common.engine.impl.history.HistoryLevel historyLevel) void
setPolicyDefinitionCache
(org.flowable.common.engine.impl.persistence.deploy.DeploymentCache<PolicyDefinitionCacheEntry> policyDefinitionCache) void
setPolicyDefinitionCacheLimit
(int policyDefinitionCacheLimit) void
setPolicyDefinitionDeployer
(PolicyDefinitionDeployer policyDefinitionDeployer) void
setPolicyEngineName
(String policyEngineName) void
setPolicyRepositoryService
(PolicyRepositoryService policyRepositoryService) void
setPolicyResourceConverter
(PolicyResourceConverter policyResourceConverter) void
setTransactionManager
(PlatformTransactionManager transactionManager) void
setTransactionSynchronizationAdapterOrder
(Integer transactionSynchronizationAdapterOrder) void
start()
void
stop()
Methods inherited from class org.flowable.common.engine.impl.AbstractBuildableEngineConfiguration
buildEngine, getPostEngineBuildConsumer, initPostEngineBuildConsumer, isRunPostEngineBuildConsumer, setPostEngineBuildConsumer, setRunPostEngineBuildConsumer
Methods inherited from class org.flowable.common.engine.impl.AbstractEngineConfiguration
addAdditionalSchemaManager, addAgendaOperationExecutionListener, addConfigurator, addCustomPostCommandInterceptor, addCustomPreCommandInterceptor, addCustomSessionFactory, addEngineConfiguration, addEngineLifecycleListener, addEventRegistryEventConsumer, addServiceConfiguration, addSessionFactory, applyCustomMybatisCustomizations, close, configuratorsAfterInit, configuratorsBeforeInit, createDbSqlSessionFactory, defaultInitDbSqlSessionFactoryEntitySettings, defaultInitDbSqlSessionFactoryEntitySettings, getAdditionalDefaultCommandInterceptors, getAdditionalEventDispatchActions, getAdditionalSchemaManagers, getAgendaOperationExecutionListeners, getAgendaOperationRunner, getAllConfigurators, getBeans, getByteArrayDataManager, getByteArrayEntityManager, getClassLoader, getClock, getCommandContextFactory, getCommandExecutor, getCommandInterceptors, getCommandInvoker, getCommonSchemaManager, getConfigurators, getCustomMybatisInterceptors, getCustomMybatisMappers, getCustomMybatisXMLMappers, getCustomPostCommandInterceptors, getCustomPostDeployers, getCustomPreCommandInterceptors, getCustomPreDeployers, getCustomSessionFactories, getDatabaseCatalog, getDatabaseSchema, getDatabaseSchemaUpdate, getDatabaseTablePrefix, getDatabaseType, getDatabaseWildcardEscapeCharacter, getDataSource, getDataSourceJndiName, getDbSqlSessionFactory, getDefaultCommandConfig, getDefaultCommandInterceptors, getDefaultDatabaseTypeMappings, getDefaultTenantProvider, getDependentEngineMybatisTypeAliasConfigs, getDependentEngineMybatisTypeHandlerConfigs, getDependentEngineMyBatisXmlMappers, getDeployers, getEngineConfigurations, getEngineLifecycleListeners, getEngineSpecificEngineConfigurators, getEventDispatcher, getEventListeners, getEventRegistryConfigurator, getEventRegistryEventConsumers, getIdGenerator, getIdmEngineConfigurator, getJdbcDefaultTransactionIsolationLevel, getJdbcDriver, getJdbcMaxActiveConnections, getJdbcMaxCheckoutTime, getJdbcMaxIdleConnections, getJdbcMaxWaitTime, getJdbcPassword, getJdbcPingConnectionNotUsedFor, getJdbcPingQuery, getJdbcUrl, getJdbcUsername, getLockManager, getLockPollRate, getLoggingListener, getMaxLengthString, getMaxLengthStringVariableType, getMaxNrOfStatementsInBulkInsert, getMybatisMappingFile, getObjectMapper, getPropertyDataManager, getPropertyEntityManager, getResourceAsStream, getSchemaCommandConfig, getSchemaLockWaitTime, getSchemaManagementCmd, getSchemaManager, getServiceConfigurations, getSessionFactories, getSqlSessionFactory, getTableDataManager, getTransactionContextFactory, getTransactionFactory, getTypedEventListeners, getVariableLengthVerifier, getXmlEncoding, initAdditionalEventDispatchActions, initBeans, initClock, initCommandContextFactory, initCommandExecutor, initCommandExecutors, initCommandInterceptors, initCommandInvoker, initConfigurators, initCustomMybatisInterceptors, initCustomMybatisMappers, initDatabaseType, initDataSource, initDbSqlSessionFactory, initEngineConfigurations, initEventDispatcher, initEventListeners, initIdGenerator, initInterceptorChain, initMybatisConfiguration, initMyBatisLogSqlExecutionTimePlugin, initMybatisTypeHandlers, initObjectMapper, initSchemaCommandConfig, initSchemaManagementCommand, initSchemaManager, initSchemaManagerDatabaseConfigurationSessionFactory, initService, initSessionFactories, initSqlSessionFactory, initTransactionFactory, initTypedEventListeners, isAlwaysLookupLatestDefinitionVersion, isBulkInsertEnabled, isDbHistoryUsed, isEnableConfiguratorServiceLoader, isEnableEventDispatcher, isEnableLogSqlExecutionTime, isFallbackToDefaultTenant, isForceCloseMybatisConnectionPool, isJdbcPingEnabled, isLoggingSessionEnabled, isTablePrefixIsSchema, isTransactionsExternallyManaged, isUseClassForNameClassLoading, isUseLockForDatabaseSchemaUpdate, isUsePrefixId, isUsingRelationalDatabase, isUsingSchemaMgmt, parseCustomMybatisXMLMappers, parseDependentEngineMybatisXMLMappers, parseMybatisConfiguration, parseMybatisXmlMapping, pathToEngineDbProperties, setAdditionalEventDispatchActions, setAgendaOperationExecutionListeners, setAgendaOperationRunner, setAlwaysLookupLatestDefinitionVersion, setBeans, setBulkInsertEnabled, setByteArrayDataManager, setByteArrayEntityManager, setClassLoader, setClock, setCommandContextFactory, setCommandExecutor, setCommandInterceptors, setCommandInvoker, setCommonSchemaManager, setConfigurators, setCustomMybatisInterceptors, setCustomMybatisMappers, setCustomMybatisXMLMappers, setCustomPostCommandInterceptors, setCustomPostDeployers, setCustomPreCommandInterceptors, setCustomPreDeployers, setCustomSessionFactories, setDatabaseCatalog, setDatabaseSchema, setDatabaseSchemaUpdate, setDatabaseTablePrefix, setDatabaseType, setDatabaseWildcardEscapeCharacter, setDataSourceJndiName, setDbHistoryUsed, setDbSqlSessionFactory, setDefaultCommandConfig, setDefaultCommandInterceptors, setDefaultTenantProvider, setDefaultTenantValue, setDependentEngineMybatisTypeAliasConfigs, setDependentEngineMybatisTypeHandlerConfigs, setDependentEngineMyBatisXmlMappers, setDeployers, setEnableConfiguratorServiceLoader, setEnableEventDispatcher, setEnableLogSqlExecutionTime, setEngineConfigurations, setEngineLifecycleListeners, setEventDispatcher, setEventListeners, setEventRegistryConfigurator, setEventRegistryEventConsumers, setFallbackToDefaultTenant, setForceCloseMybatisConnectionPool, setIdGenerator, setIdmEngineConfigurator, setJdbcDefaultTransactionIsolationLevel, setJdbcDriver, setJdbcMaxActiveConnections, setJdbcMaxCheckoutTime, setJdbcMaxIdleConnections, setJdbcMaxWaitTime, setJdbcPassword, setJdbcPingConnectionNotUsedFor, setJdbcPingEnabled, setJdbcPingQuery, setJdbcUrl, setJdbcUsername, setLockPollRate, setLoggingListener, setMaxLengthStringVariableType, setMaxNrOfStatementsInBulkInsert, setMybatisMappingFile, setObjectMapper, setPropertyDataManager, setPropertyEntityManager, setSchemaCommandConfig, setSchemaLockWaitTime, setSchemaManagementCmd, setSchemaManager, setServiceConfigurations, setSessionFactories, setSqlSessionFactory, setTableDataManager, setTablePrefixIsSchema, setTransactionContextFactory, setTransactionFactory, setTransactionsExternallyManaged, setTypedEventListeners, setUseClassForNameClassLoading, setUseLockForDatabaseSchemaUpdate, setUsePrefixId, setUsingRelationalDatabase, setUsingSchemaMgmt, setVariableLengthVerifier, setXmlEncoding
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.spring.SpringEngineConfiguration
getBeans, isAutoStartup, stop
-
Field Details
-
DEFAULT_MYBATIS_MAPPING_FILE
- See Also:
-
DEFAULT_ENGINE_NAME
- See Also:
-
KEY_POLICY_ENGINE_CONFIG
- See Also:
-
policyEngineName
-
policyRepositoryService
-
dataManagers
-
entityManagers
-
transactionManager
-
transactionSynchronizationAdapterOrder
-
applicationContext
-
running
protected volatile boolean running -
policyDefinitionDeployer
-
deploymentManager
-
policyResourceConverter
-
policyDefinitionCacheLimit
protected int policyDefinitionCacheLimit -
policyDefinitionCache
protected org.flowable.common.engine.impl.persistence.deploy.DeploymentCache<PolicyDefinitionCacheEntry> policyDefinitionCache -
deploymentName
-
deploymentResources
-
deploymentMode
-
enginesBuild
-
lifeCycleMonitor
-
history
-
historyLevel
protected org.flowable.common.engine.impl.history.HistoryLevel historyLevel
-
-
Constructor Details
-
PolicyEngineConfiguration
public PolicyEngineConfiguration()
-
-
Method Details
-
getEngineCfgKey
- Specified by:
getEngineCfgKey
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
getEngineScopeType
- Specified by:
getEngineScopeType
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
createTransactionInterceptor
public org.flowable.common.engine.impl.interceptor.CommandInterceptor createTransactionInterceptor()- Specified by:
createTransactionInterceptor
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
initDbSqlSessionFactoryEntitySettings
protected void initDbSqlSessionFactoryEntitySettings()- Specified by:
initDbSqlSessionFactoryEntitySettings
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
getMyBatisXmlConfigurationStream
- Specified by:
getMyBatisXmlConfigurationStream
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
getEngineName
- Specified by:
getEngineName
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setTransactionSynchronizationAdapterOrder
public void setTransactionSynchronizationAdapterOrder(Integer transactionSynchronizationAdapterOrder) -
getDataManagers
-
getEntityManagers
-
setDataSource
- Overrides:
setDataSource
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
buildPolicyEngine
-
createEngine
- Specified by:
createEngine
in classorg.flowable.common.engine.impl.AbstractBuildableEngineConfiguration<PolicyEngine>
-
createPostEngineBuildConsumer
- Specified by:
createPostEngineBuildConsumer
in classorg.flowable.common.engine.impl.AbstractBuildableEngineConfiguration<PolicyEngine>
-
init
protected void init()- Specified by:
init
in classorg.flowable.common.engine.impl.AbstractBuildableEngineConfiguration<PolicyEngine>
-
initServices
protected void initServices() -
initTransactionContextFactory
public void initTransactionContextFactory()- Overrides:
initTransactionContextFactory
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
initDefaultCommandConfig
public void initDefaultCommandConfig()- Overrides:
initDefaultCommandConfig
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
initDataManagers
public void initDataManagers()- Overrides:
initDataManagers
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
initEntityManagers
public void initEntityManagers()- Overrides:
initEntityManagers
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
initHistoryLevel
public void initHistoryLevel() -
createEngineSchemaManager
protected org.flowable.common.engine.impl.db.SchemaManager createEngineSchemaManager()- Specified by:
createEngineSchemaManager
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
initDeployers
protected void initDeployers() -
getDefaultDeployers
-
initPolicyDefinitionCache
protected void initPolicyDefinitionCache() -
initPolicyResourceConverter
protected void initPolicyResourceConverter() -
initDeploymentManager
protected void initDeploymentManager() -
getTransactionManager
- Specified by:
getTransactionManager
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
setTransactionManager
- Specified by:
setTransactionManager
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
getDeploymentName
- Specified by:
getDeploymentName
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
setDeploymentName
- Specified by:
setDeploymentName
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
getDeploymentResources
- Specified by:
getDeploymentResources
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
setDeploymentResources
- Specified by:
setDeploymentResources
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
getApplicationContext
- Specified by:
getApplicationContext
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Specified by:
setApplicationContext
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
getDeploymentMode
- Specified by:
getDeploymentMode
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
setDeploymentMode
- Specified by:
setDeploymentMode
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
getPolicyEngineName
-
setPolicyEngineName
-
getPolicyDefinitionDeployer
-
setPolicyDefinitionDeployer
-
getDeploymentManager
-
setDeploymentManager
-
getPolicyResourceConverter
-
setPolicyResourceConverter
-
getPolicyDefinitionCacheLimit
public int getPolicyDefinitionCacheLimit() -
setPolicyDefinitionCacheLimit
public void setPolicyDefinitionCacheLimit(int policyDefinitionCacheLimit) -
getPolicyDefinitionCache
public org.flowable.common.engine.impl.persistence.deploy.DeploymentCache<PolicyDefinitionCacheEntry> getPolicyDefinitionCache() -
setPolicyDefinitionCache
public void setPolicyDefinitionCache(org.flowable.common.engine.impl.persistence.deploy.DeploymentCache<PolicyDefinitionCacheEntry> policyDefinitionCache) -
getHistory
-
setHistory
-
getHistoryLevel
public org.flowable.common.engine.impl.history.HistoryLevel getHistoryLevel() -
setHistoryLevel
public void setHistoryLevel(org.flowable.common.engine.impl.history.HistoryLevel historyLevel) -
getDeploymentStrategies
public Collection<org.flowable.common.spring.AutoDeploymentStrategy<PolicyEngine>> getDeploymentStrategies() -
setDeploymentStrategies
public void setDeploymentStrategies(Collection<org.flowable.common.spring.AutoDeploymentStrategy<PolicyEngine>> deploymentStrategies) -
start
public void start() -
stop
public void stop() -
isRunning
public boolean isRunning() -
getPhase
public int getPhase()- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
- Specified by:
getPhase
in interfaceorg.flowable.common.spring.SpringEngineConfiguration
-
getPolicyRepositoryService
- Specified by:
getPolicyRepositoryService
in interfacePolicyEngineConfigurationApi
-
setPolicyRepositoryService
-
autoDeployResources
-
getAutoDeploymentStrategy
public org.flowable.common.spring.AutoDeploymentStrategy<PolicyEngine> getAutoDeploymentStrategy(String mode) Gets theAutoDeploymentStrategy
for the provided mode. This method may be overridden to implement custom deployment strategies if required, but implementors should take care not to returnnull
.- Parameters:
mode
- the mode to get the strategy for- Returns:
- the deployment strategy to use for the mode. Never
null
-