Package com.flowable.form.spring
Class SpringFormEngineConfiguration
- java.lang.Object
-
- org.flowable.common.engine.impl.AbstractEngineConfiguration
-
- com.flowable.form.engine.FormEngineConfiguration
-
- com.flowable.form.spring.SpringFormEngineConfiguration
-
- All Implemented Interfaces:
HasExpressionManagerEngineConfiguration
,SpringEngineConfiguration
,FormEngineConfigurationApi
,Aware
,ApplicationContextAware
,Lifecycle
,Phased
,SmartLifecycle
public class SpringFormEngineConfiguration extends FormEngineConfiguration implements SpringEngineConfiguration
- Author:
- Tijs Rademakers, David Syer, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationContext
applicationContext
protected String
deploymentMode
protected String
deploymentName
protected Resource[]
deploymentResources
protected List<String>
enginesBuild
protected Object
lifeCycleMonitor
protected boolean
running
protected PlatformTransactionManager
transactionManager
protected Integer
transactionSynchronizationAdapterOrder
-
Fields inherited from class com.flowable.form.engine.FormEngineConfiguration
cachingAndArtifactsManager, changeTenantIdManager, customFormFieldValidators, customPostDeployers, customPreDeployers, DEFAULT_MYBATIS_MAPPING_FILE, deployers, deploymentDataManager, deploymentEntityManager, deploymentManager, expressionManager, FORM_ENGINE_CONFIGURATION, formDataModelVariablesExtractor, formDefinitionCache, formDefinitionCacheLimit, formDefinitionDataManager, formDefinitionEntityManager, formDeployer, formDeploymentHelper, formEngineName, formFieldValidators, formInstanceDataManager, formInstanceEntityManager, formJsonConverter, formManagementService, formParseFactory, formRepositoryService, formService, LIQUIBASE_CHANGELOG_PREFIX, parsedDeploymentBuilderFactory, postDefaultELResolvers, preBeanELResolvers, preDefaultELResolvers, resourceDataManager, resourceEntityManager, submittedVariablesExtractor
-
Fields inherited from class org.flowable.common.engine.impl.AbstractEngineConfiguration
additionalEventDispatchActions, agendaOperationRunner, allConfigurators, alwaysLookupLatestDefinitionVersion, beans, byteArrayDataManager, byteArrayEntityManager, classLoader, clock, commandContextFactory, commandExecutor, commandInterceptors, commandInvoker, commonSchemaManager, configurators, customMybatisInterceptors, customMybatisMappers, customMybatisXMLMappers, customPostCommandInterceptors, customPreCommandInterceptors, 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, 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, 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 Constructor Description SpringFormEngineConfiguration()
-
Method Summary
-
Methods inherited from class com.flowable.form.engine.FormEngineConfiguration
addCustomFormFieldValidators, addPostDefaultELResolver, addPreBeanELResolver, addPreDefaultELResolver, createDbSqlSessionFactory, createFormEngineConfigurationFromInputStream, createFormEngineConfigurationFromInputStream, createFormEngineConfigurationFromResource, createFormEngineConfigurationFromResource, createFormEngineConfigurationFromResourceDefault, createStandaloneFormEngineConfiguration, createStandaloneInMemFormEngineConfiguration, getChangeTenantIdManager, getDefaultDeployers, getDeploymentDataManager, getDeploymentEntityManager, getDeploymentManager, getEngineCfgKey, getEngineName, getEngineScopeType, getExpressionManager, getFormCacheLimit, getFormDataModelVariablesExtractor, getFormDefinitionCache, getFormDefinitionDataManager, getFormDefinitionEntityManager, getFormDeployer, getFormEngineConfiguration, getFormFieldValidators, getFormInstanceDataManager, getFormInstanceEntityManager, getFormJsonConverter, getFormManagementService, getFormParseFactory, getFormRepositoryService, getFormService, getMyBatisXmlConfigurationStream, getPostDefaultELResolvers, getPreBeanELResolvers, getPreDefaultELResolvers, getResourceDataManager, getResourceEntityManager, getSubmittedVariablesExtractor, init, initChangeTenantIdManager, initCommandExecutors, initCommandInterceptors, initDataManagers, initDbSqlSessionFactory, initDbSqlSessionFactoryEntitySettings, initDeployers, initDmnDeployerDependencies, initEntityManagers, initExpressionManager, initFormFieldValidators, initSchemaManagementCommand, initSchemaManager, initServices, initSessionFactories, setChangeTenantIdManager, setDeploymentDataManager, setDeploymentEntityManager, setEngineName, setExpressionManager, setFormDataModelVariablesExtractor, setFormDefinitionCache, setFormDefinitionCacheLimit, setFormDefinitionDataManager, setFormDefinitionEntityManager, setFormDeployer, setFormInstanceDataManager, setFormInstanceEntityManager, setFormJsonConverter, setFormManagementService, setFormParseFactory, setFormRepositoryService, setFormService, setObjectMapper, setPostDefaultELResolvers, setPreBeanELResolvers, setPreDefaultELResolvers, setResourceDataManager, setResourceEntityManager, setSubmittedVariablesExtractor, setTableDataManager
-
Methods inherited from class org.flowable.common.engine.impl.AbstractEngineConfiguration
addConfigurator, addCustomSessionFactory, addEngineConfiguration, addEngineLifecycleListener, addEventRegistryEventConsumer, addServiceConfiguration, addSessionFactory, close, configuratorsAfterInit, configuratorsBeforeInit, defaultInitDbSqlSessionFactoryEntitySettings, getAdditionalDefaultCommandInterceptors, getAdditionalEventDispatchActions, 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, getDefaultTenantValue, 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, getXmlEncoding, initAdditionalEventDispatchActions, initClock, initCommandContextFactory, initCommandExecutor, initCommandInvoker, initConfigurators, initCustomMybatisInterceptors, initCustomMybatisMappers, initDatabaseType, initDataSource, initEngineConfigurations, initEventDispatcher, initEventListeners, initIdGenerator, initInterceptorChain, initMybatisConfiguration, initMyBatisLogSqlExecutionTimePlugin, initMybatisTypeHandlers, initObjectMapper, initSchemaCommandConfig, initService, 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, 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, setPropertyDataManager, setPropertyEntityManager, setSchemaCommandConfig, setSchemaLockWaitTime, setSchemaManagementCmd, setSchemaManager, setServiceConfigurations, setSessionFactories, setSqlSessionFactory, setTablePrefixIsSchema, setTransactionContextFactory, setTransactionFactory, setTransactionsExternallyManaged, setTypedEventListeners, setUseClassForNameClassLoading, setUseLockForDatabaseSchemaUpdate, setUsePrefixId, setUsingRelationalDatabase, setUsingSchemaMgmt, 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 Detail
-
transactionManager
protected PlatformTransactionManager transactionManager
-
deploymentName
protected String deploymentName
-
deploymentResources
protected Resource[] deploymentResources
-
deploymentMode
protected String deploymentMode
-
applicationContext
protected ApplicationContext applicationContext
-
transactionSynchronizationAdapterOrder
protected Integer transactionSynchronizationAdapterOrder
-
running
protected volatile boolean running
-
lifeCycleMonitor
protected final Object lifeCycleMonitor
-
-
Method Detail
-
buildFormEngine
public FormEngine buildFormEngine()
- Overrides:
buildFormEngine
in classFormEngineConfiguration
-
initBeans
public void initBeans()
- Overrides:
initBeans
in classAbstractEngineConfiguration
-
setTransactionSynchronizationAdapterOrder
public void setTransactionSynchronizationAdapterOrder(Integer transactionSynchronizationAdapterOrder)
-
initDefaultCommandConfig
public void initDefaultCommandConfig()
- Overrides:
initDefaultCommandConfig
in classAbstractEngineConfiguration
-
createTransactionInterceptor
public CommandInterceptor createTransactionInterceptor()
- Overrides:
createTransactionInterceptor
in classFormEngineConfiguration
-
initTransactionContextFactory
public void initTransactionContextFactory()
- Overrides:
initTransactionContextFactory
in classAbstractEngineConfiguration
-
autoDeployResources
protected void autoDeployResources(FormEngine formEngine)
-
setDataSource
public FormEngineConfiguration setDataSource(DataSource dataSource)
- Overrides:
setDataSource
in classAbstractEngineConfiguration
-
getTransactionManager
public PlatformTransactionManager getTransactionManager()
- Specified by:
getTransactionManager
in interfaceSpringEngineConfiguration
-
setTransactionManager
public void setTransactionManager(PlatformTransactionManager transactionManager)
- Specified by:
setTransactionManager
in interfaceSpringEngineConfiguration
-
getDeploymentName
public String getDeploymentName()
- Specified by:
getDeploymentName
in interfaceSpringEngineConfiguration
-
setDeploymentName
public void setDeploymentName(String deploymentName)
- Specified by:
setDeploymentName
in interfaceSpringEngineConfiguration
-
getDeploymentResources
public Resource[] getDeploymentResources()
- Specified by:
getDeploymentResources
in interfaceSpringEngineConfiguration
-
setDeploymentResources
public void setDeploymentResources(Resource[] deploymentResources)
- Specified by:
setDeploymentResources
in interfaceSpringEngineConfiguration
-
getApplicationContext
public ApplicationContext getApplicationContext()
- Specified by:
getApplicationContext
in interfaceSpringEngineConfiguration
-
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Specified by:
setApplicationContext
in interfaceSpringEngineConfiguration
- Throws:
BeansException
-
getDeploymentMode
public String getDeploymentMode()
- Specified by:
getDeploymentMode
in interfaceSpringEngineConfiguration
-
setDeploymentMode
public void setDeploymentMode(String deploymentMode)
- Specified by:
setDeploymentMode
in interfaceSpringEngineConfiguration
-
getAutoDeploymentStrategy
protected AutoDeploymentStrategy<FormEngine> 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
-
getDeploymentStrategies
public Collection<AutoDeploymentStrategy<FormEngine>> getDeploymentStrategies()
-
setDeploymentStrategies
public void setDeploymentStrategies(Collection<AutoDeploymentStrategy<FormEngine>> deploymentStrategies)
-
getPhase
public int getPhase()
- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
- Specified by:
getPhase
in interfaceSpringEngineConfiguration
-
-