Class ProcessEngineConfiguration
Most common is to create a process engine based on the default configuration file:
ProcessEngine processEngine = ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().buildProcessEngine();
To create a process engine programmatic, without a configuration file, the first option is createStandaloneProcessEngineConfiguration()
ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration().buildProcessEngine();
This creates a new process engine with all the defaults to connect to a remote h2 database (jdbc:h2:tcp://localhost/flowable) in standalone mode. Standalone mode means that the process engine will manage the transactions on the JDBC connections that it creates. One transaction per service method. For a description of how to write the configuration files, see the userguide.
The second option is great for testing: createStandaloneInMemProcessEngineConfiguration()
ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration().buildProcessEngine();
This creates a new process engine with all the defaults to connect to an memory h2 database (jdbc:h2:tcp://localhost/flowable) in standalone mode. The DB schema strategy default is in this case
create-drop
. Standalone mode means that Flowable will manage the transactions on the JDBC connections that it creates. One transaction per service method.
On all forms of creating a process engine, you can first customize the configuration before calling the buildProcessEngine()
method by calling any of the setters like this:
ProcessEngine processEngine = ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setMailServerHost("gmail.com").setJdbcUsername("mickey").setJdbcPassword("mouse") .buildProcessEngine();
- Author:
- Tom Baeyens
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected String
protected org.flowable.job.service.impl.asyncexecutor.AsyncExecutor
protected boolean
protected int
define the default wait time for a failed async job in secondsprotected org.flowable.job.service.impl.asyncexecutor.AsyncExecutor
protected boolean
protected org.flowable.common.engine.api.async.AsyncTaskExecutor
protected org.flowable.common.engine.api.async.AsyncTaskExecutor
protected org.flowable.common.engine.api.async.AsyncTaskInvoker
protected org.flowable.common.engine.api.async.AsyncTaskExecutor
protected int
protected Duration
protected String
protected int
define the default wait time for a failed job in secondsprotected org.flowable.mail.common.api.client.FlowableMailClient
protected org.flowable.common.engine.impl.cfg.mail.MailServerInfo
protected boolean
include the sequence flow name in case there's no Label DI,protected boolean
protected boolean
protected boolean
protected String
protected HistoryCleaningManager
protected String
protected org.flowable.common.engine.impl.history.HistoryLevel
protected HttpClientConfig
protected int
protected boolean
protected boolean
protected Object
protected boolean
protected String
protected String
protected String
protected org.flowable.image.ProcessDiagramGenerator
Process diagram generator.protected String
protected boolean
protected boolean
protected boolean
protected org.flowable.task.service.TaskPostProcessor
postprocessor for a task builderFields 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, xmlEncoding
-
Constructor Summary
ModifierConstructorDescriptionprotected
use one of the static createXxxx methods instead -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessEngineConfiguration
static ProcessEngineConfiguration
createProcessEngineConfigurationFromInputStream
(InputStream inputStream, String beanName) static ProcessEngineConfiguration
static ProcessEngineConfiguration
createProcessEngineConfigurationFromResource
(String resource, String beanName) static ProcessEngineConfiguration
static ProcessEngineConfiguration
static ProcessEngineConfiguration
org.flowable.job.service.impl.asyncexecutor.AsyncExecutor
int
org.flowable.job.service.impl.asyncexecutor.AsyncExecutor
org.flowable.common.engine.api.async.AsyncTaskExecutor
org.flowable.common.engine.api.async.AsyncTaskExecutor
org.flowable.common.engine.api.async.AsyncTaskInvoker
org.flowable.common.engine.api.async.AsyncTaskExecutor
int
int
Deprecated.int
org.flowable.mail.common.api.client.FlowableMailClient
org.flowable.common.engine.impl.cfg.mail.MailServerInfo
abstract FormService
org.flowable.common.engine.impl.history.HistoryLevel
abstract HistoryService
int
abstract IdentityService
org.flowable.mail.common.api.client.FlowableMailClient
getMailClient
(String tenantId) org.flowable.common.engine.impl.cfg.mail.MailServerInfo
getMailServer
(String tenantId) int
int
boolean
boolean
getMailSessionJndi
(String tenantId) abstract ManagementService
protected org.flowable.common.engine.impl.cfg.mail.MailServerInfo
org.flowable.image.ProcessDiagramGenerator
abstract ProcessEngineConfiguration
abstract RepositoryService
abstract RuntimeService
org.flowable.task.service.TaskPostProcessor
abstract TaskService
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
setActivityFontName
(String activityFontName) setAlwaysUseArraysForDmnMultiHitPolicies
(boolean alwaysUseArraysForDmnMultiHitPolicies) setAnnotationFontName
(String annotationFontName) setAsyncExecutor
(org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncExecutor) setAsyncExecutorActivate
(boolean asyncExecutorActivate) setAsyncFailedJobWaitTime
(int asyncFailedJobWaitTime) setAsyncHistoryExecutor
(org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncHistoryExecutor) setAsyncHistoryExecutorActivate
(boolean asyncHistoryExecutorActivate) setAsyncHistoryTaskExecutor
(org.flowable.common.engine.api.async.AsyncTaskExecutor asyncHistoryTaskExecutor) setAsyncTaskExecutor
(org.flowable.common.engine.api.async.AsyncTaskExecutor asyncTaskExecutor) setAsyncTaskInvoker
(org.flowable.common.engine.api.async.AsyncTaskInvoker asyncTaskInvoker) setAsyncTaskInvokerTaskExecutor
(org.flowable.common.engine.api.async.AsyncTaskExecutor asyncTaskInvokerTaskExecutor) setClassLoader
(ClassLoader classLoader) setCleanInstancesBatchSize
(int cleanInstancesBatchSize) setCleanInstancesEndedAfter
(Duration cleanInstancesEndedAfter) setCleanInstancesEndedAfterNumberOfDays
(int cleanInstancesEndedAfterNumberOfDays) Deprecated.usesetCleanInstancesEndedAfter(Duration)
insteadsetClock
(org.flowable.common.engine.impl.runtime.Clock clock) setCreateDiagramOnDeploy
(boolean createDiagramOnDeploy) setDatabaseCatalog
(String databaseCatalog) setDatabaseSchema
(String databaseSchema) setDatabaseSchemaUpdate
(String databaseSchemaUpdate) setDatabaseTablePrefix
(String databaseTablePrefix) setDatabaseType
(String databaseType) setDatabaseWildcardEscapeCharacter
(String databaseWildcardEscapeCharacter) setDataSource
(DataSource dataSource) setDataSourceJndiName
(String dataSourceJndiName) setDefaultCamelContext
(String defaultCamelContext) setDefaultFailedJobWaitTime
(int defaultFailedJobWaitTime) setDefaultMailClient
(org.flowable.mail.common.api.client.FlowableMailClient defaultMailClient) setDefaultMailServer
(org.flowable.common.engine.impl.cfg.mail.MailServerInfo defaultMailServer) setDrawSequenceFlowNameWithNoLabelDI
(boolean drawSequenceFlowNameWithNoLabelDI) setEnableHistoryCleaning
(boolean enableHistoryCleaning) setEnableProcessDefinitionHistoryLevel
(boolean enableProcessDefinitionHistoryLevel) setEnableProcessDefinitionInfoCache
(boolean enableProcessDefinitionInfoCache) setEngineName
(String processEngineName) setHistory
(String history) setHistoryCleaningManager
(HistoryCleaningManager historyCleaningManager) setHistoryCleaningTimeCycleConfig
(String historyCleaningTimeCycleConfig) setHistoryLevel
(org.flowable.common.engine.impl.history.HistoryLevel historyLevel) void
setHttpClientConfig
(HttpClientConfig httpClientConfig) setIdBlockSize
(int idBlockSize) setJdbcDefaultTransactionIsolationLevel
(int jdbcDefaultTransactionIsolationLevel) setJdbcDriver
(String jdbcDriver) setJdbcMaxActiveConnections
(int jdbcMaxActiveConnections) setJdbcMaxCheckoutTime
(int jdbcMaxCheckoutTime) setJdbcMaxIdleConnections
(int jdbcMaxIdleConnections) setJdbcMaxWaitTime
(int jdbcMaxWaitTime) setJdbcPassword
(String jdbcPassword) setJdbcPingConnectionNotUsedFor
(int jdbcPingNotUsedFor) setJdbcPingEnabled
(boolean jdbcPingEnabled) setJdbcPingQuery
(String jdbcPingQuery) setJdbcUrl
(String jdbcUrl) setJdbcUsername
(String jdbcUsername) setJpaCloseEntityManager
(boolean jpaCloseEntityManager) setJpaEntityManagerFactory
(Object jpaEntityManagerFactory) setJpaHandleTransaction
(boolean jpaHandleTransaction) setJpaPersistenceUnitName
(String jpaPersistenceUnitName) setLabelFontName
(String labelFontName) setMailClients
(Map<String, org.flowable.mail.common.api.client.FlowableMailClient> mailClients) setMailServerDefaultCharset
(Charset mailServerDefaultCharset) setMailServerDefaultFrom
(String mailServerDefaultFrom) setMailServerForceTo
(String mailServerForceTo) setMailServerHost
(String mailServerHost) setMailServerPassword
(String mailServerPassword) setMailServerPort
(int mailServerPort) setMailServers
(Map<String, org.flowable.common.engine.impl.cfg.mail.MailServerInfo> mailServers) setMailServerSSLPort
(int mailServerSSLPort) setMailServerUsername
(String mailServerUsername) setMailServerUseSSL
(boolean useSSL) setMailServerUseTLS
(boolean useTLS) setMailSessionJndi
(String mailSessionJndi) setMailSessionsJndi
(Map<String, String> mailSessionsJndi) setProcessDiagramGenerator
(org.flowable.image.ProcessDiagramGenerator processDiagramGenerator) setTablePrefixIsSchema
(boolean tablePrefixIsSchema) void
setTaskPostProcessor
(org.flowable.task.service.TaskPostProcessor processor) setTransactionsExternallyManaged
(boolean transactionsExternallyManaged) setUseClassForNameClassLoading
(boolean useClassForNameClassLoading) setXmlEncoding
(String xmlEncoding) Methods inherited from class org.flowable.common.engine.impl.AbstractBuildableEngineConfiguration
buildEngine, createEngine, createPostEngineBuildConsumer, getPostEngineBuildConsumer, init, 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, createEngineSchemaManager, createTransactionInterceptor, 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, getEngineCfgKey, getEngineConfigurations, getEngineLifecycleListeners, getEngineScopeType, 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, getMyBatisXmlConfigurationStream, getObjectMapper, getPropertyDataManager, getPropertyEntityManager, getResourceAsStream, getSchemaCommandConfig, getSchemaLockWaitTime, getSchemaManagementCmd, getSchemaManager, getServiceConfigurations, getSessionFactories, getSqlSessionFactory, getTableDataManager, getTransactionContextFactory, getTransactionFactory, getTypedEventListeners, getXmlEncoding, initAdditionalEventDispatchActions, initBeans, initClock, initCommandContextFactory, initCommandExecutor, initCommandExecutors, initCommandInterceptors, initCommandInvoker, initConfigurators, initCustomMybatisInterceptors, initCustomMybatisMappers, initDatabaseType, initDataManagers, initDataSource, initDbSqlSessionFactory, initDbSqlSessionFactoryEntitySettings, initDefaultCommandConfig, initEngineConfigurations, initEntityManagers, initEventDispatcher, initEventListeners, initIdGenerator, initInterceptorChain, initMybatisConfiguration, initMyBatisLogSqlExecutionTimePlugin, initMybatisTypeHandlers, initObjectMapper, initSchemaCommandConfig, initSchemaManagementCommand, initSchemaManager, initSchemaManagerDatabaseConfigurationSessionFactory, initService, initSessionFactories, initSqlSessionFactory, initTransactionContextFactory, 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, setCommandContextFactory, setCommandExecutor, setCommandInterceptors, setCommandInvoker, setCommonSchemaManager, setConfigurators, setCustomMybatisInterceptors, setCustomMybatisMappers, setCustomMybatisXMLMappers, setCustomPostCommandInterceptors, setCustomPostDeployers, setCustomPreCommandInterceptors, setCustomPreDeployers, setCustomSessionFactories, setDbHistoryUsed, setDbSqlSessionFactory, setDefaultCommandConfig, setDefaultCommandInterceptors, setDefaultTenantProvider, setDefaultTenantValue, setDependentEngineMybatisTypeAliasConfigs, setDependentEngineMybatisTypeHandlerConfigs, setDependentEngineMyBatisXmlMappers, setDeployers, setEnableConfiguratorServiceLoader, setEnableEventDispatcher, setEnableLogSqlExecutionTime, setEngineConfigurations, setEngineLifecycleListeners, setEventDispatcher, setEventListeners, setEventRegistryConfigurator, setEventRegistryEventConsumers, setFallbackToDefaultTenant, setForceCloseMybatisConnectionPool, setIdGenerator, setIdmEngineConfigurator, setLockPollRate, setLoggingListener, setMaxLengthStringVariableType, setMaxNrOfStatementsInBulkInsert, setMybatisMappingFile, setObjectMapper, setPropertyDataManager, setPropertyEntityManager, setSchemaCommandConfig, setSchemaLockWaitTime, setSchemaManagementCmd, setSchemaManager, setServiceConfigurations, setSessionFactories, setSqlSessionFactory, setTableDataManager, setTransactionContextFactory, setTransactionFactory, setTypedEventListeners, setUseLockForDatabaseSchemaUpdate, setUsePrefixId, setUsingRelationalDatabase, setUsingSchemaMgmt
-
Field Details
-
processEngineName
-
idBlockSize
protected int idBlockSize -
history
-
asyncExecutorActivate
protected boolean asyncExecutorActivate -
asyncHistoryExecutorActivate
protected boolean asyncHistoryExecutorActivate -
defaultMailClient
protected org.flowable.mail.common.api.client.FlowableMailClient defaultMailClient -
defaultMailServer
protected org.flowable.common.engine.impl.cfg.mail.MailServerInfo defaultMailServer -
mailSessionJndi
-
mailServers
-
mailClients
-
mailSessionsJndi
-
httpClientConfig
-
historyLevel
protected org.flowable.common.engine.impl.history.HistoryLevel historyLevel -
enableProcessDefinitionHistoryLevel
protected boolean enableProcessDefinitionHistoryLevel -
jpaPersistenceUnitName
-
jpaEntityManagerFactory
-
jpaHandleTransaction
protected boolean jpaHandleTransaction -
jpaCloseEntityManager
protected boolean jpaCloseEntityManager -
asyncExecutor
protected org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncExecutor -
asyncTaskExecutor
protected org.flowable.common.engine.api.async.AsyncTaskExecutor asyncTaskExecutor -
shutdownAsyncTaskExecutor
protected boolean shutdownAsyncTaskExecutor -
asyncTaskInvokerTaskExecutor
protected org.flowable.common.engine.api.async.AsyncTaskExecutor asyncTaskInvokerTaskExecutor -
shutdownAsyncTaskInvokerTaskExecutor
protected boolean shutdownAsyncTaskInvokerTaskExecutor -
asyncTaskInvoker
protected org.flowable.common.engine.api.async.AsyncTaskInvoker asyncTaskInvoker -
asyncHistoryExecutor
protected org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncHistoryExecutor -
asyncHistoryTaskExecutor
protected org.flowable.common.engine.api.async.AsyncTaskExecutor asyncHistoryTaskExecutor -
shutdownAsyncHistoryTaskExecutor
protected boolean shutdownAsyncHistoryTaskExecutor -
defaultFailedJobWaitTime
protected int defaultFailedJobWaitTimedefine the default wait time for a failed job in seconds -
asyncFailedJobWaitTime
protected int asyncFailedJobWaitTimedefine the default wait time for a failed async job in seconds -
processDiagramGenerator
protected org.flowable.image.ProcessDiagramGenerator processDiagramGeneratorProcess diagram generator. Default value is DefaultProcessDiagramGenerator -
isCreateDiagramOnDeploy
protected boolean isCreateDiagramOnDeploy -
alwaysUseArraysForDmnMultiHitPolicies
protected boolean alwaysUseArraysForDmnMultiHitPolicies -
drawSequenceFlowNameWithNoLabelDI
protected boolean drawSequenceFlowNameWithNoLabelDIinclude the sequence flow name in case there's no Label DI, -
defaultCamelContext
-
activityFontName
-
labelFontName
-
annotationFontName
-
enableProcessDefinitionInfoCache
protected boolean enableProcessDefinitionInfoCache -
enableHistoryCleaning
protected boolean enableHistoryCleaning -
historyCleaningTimeCycleConfig
-
cleanInstancesEndedAfter
-
cleanInstancesBatchSize
protected int cleanInstancesBatchSize -
historyCleaningManager
-
taskPostProcessor
protected org.flowable.task.service.TaskPostProcessor taskPostProcessorpostprocessor for a task builder
-
-
Constructor Details
-
ProcessEngineConfiguration
protected ProcessEngineConfiguration()use one of the static createXxxx methods instead
-
-
Method Details
-
buildProcessEngine
-
createProcessEngineConfigurationFromResourceDefault
-
createProcessEngineConfigurationFromResource
public static ProcessEngineConfiguration createProcessEngineConfigurationFromResource(String resource) -
createProcessEngineConfigurationFromResource
public static ProcessEngineConfiguration createProcessEngineConfigurationFromResource(String resource, String beanName) -
createProcessEngineConfigurationFromInputStream
public static ProcessEngineConfiguration createProcessEngineConfigurationFromInputStream(InputStream inputStream) -
createProcessEngineConfigurationFromInputStream
public static ProcessEngineConfiguration createProcessEngineConfigurationFromInputStream(InputStream inputStream, String beanName) -
createStandaloneProcessEngineConfiguration
-
createStandaloneInMemProcessEngineConfiguration
-
getRepositoryService
-
getRuntimeService
-
getFormService
-
getTaskService
-
getHistoryService
-
getIdentityService
-
getManagementService
-
getProcessEngineConfiguration
-
getEngineName
- Specified by:
getEngineName
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setEngineName
-
getIdBlockSize
public int getIdBlockSize() -
setIdBlockSize
-
getHistory
-
setHistory
-
getDefaultMailClient
public org.flowable.mail.common.api.client.FlowableMailClient getDefaultMailClient() -
setDefaultMailClient
public ProcessEngineConfiguration setDefaultMailClient(org.flowable.mail.common.api.client.FlowableMailClient defaultMailClient) -
getDefaultMailServer
public org.flowable.common.engine.impl.cfg.mail.MailServerInfo getDefaultMailServer() -
setDefaultMailServer
public ProcessEngineConfiguration setDefaultMailServer(org.flowable.common.engine.impl.cfg.mail.MailServerInfo defaultMailServer) -
getOrCreateDefaultMaiLServer
protected org.flowable.common.engine.impl.cfg.mail.MailServerInfo getOrCreateDefaultMaiLServer() -
getMailServerHost
-
setMailServerHost
-
getMailServerUsername
-
setMailServerUsername
-
getMailServerPassword
-
setMailServerPassword
-
getMailSessionJndi
-
setMailSessionJndi
-
getMailServerPort
public int getMailServerPort() -
setMailServerPort
-
getMailServerDefaultCharset
-
setMailServerDefaultCharset
-
getMailServerSSLPort
public int getMailServerSSLPort() -
setMailServerSSLPort
-
getMailServerUseSSL
public boolean getMailServerUseSSL() -
setMailServerUseSSL
-
getMailServerUseTLS
public boolean getMailServerUseTLS() -
setMailServerUseTLS
-
getMailServerDefaultFrom
-
setMailServerDefaultFrom
-
getMailServerForceTo
-
setMailServerForceTo
-
getMailServer
-
getMailServers
-
setMailServers
public ProcessEngineConfiguration setMailServers(Map<String, org.flowable.common.engine.impl.cfg.mail.MailServerInfo> mailServers) -
getMailClient
-
getMailClients
-
setMailClients
public ProcessEngineConfiguration setMailClients(Map<String, org.flowable.mail.common.api.client.FlowableMailClient> mailClients) -
getMailSessionJndi
-
getMailSessionsJndi
-
setMailSessionsJndi
-
getHttpClientConfig
-
setHttpClientConfig
-
setDatabaseType
- Overrides:
setDatabaseType
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setDatabaseSchemaUpdate
- Overrides:
setDatabaseSchemaUpdate
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setDataSource
- Overrides:
setDataSource
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcDriver
- Overrides:
setJdbcDriver
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcUrl
- Overrides:
setJdbcUrl
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcUsername
- Overrides:
setJdbcUsername
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcPassword
- Overrides:
setJdbcPassword
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setTransactionsExternallyManaged
public ProcessEngineConfiguration setTransactionsExternallyManaged(boolean transactionsExternallyManaged) - Overrides:
setTransactionsExternallyManaged
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
getHistoryLevel
public org.flowable.common.engine.impl.history.HistoryLevel getHistoryLevel() -
setHistoryLevel
public ProcessEngineConfiguration setHistoryLevel(org.flowable.common.engine.impl.history.HistoryLevel historyLevel) -
isEnableProcessDefinitionHistoryLevel
public boolean isEnableProcessDefinitionHistoryLevel() -
setEnableProcessDefinitionHistoryLevel
public ProcessEngineConfiguration setEnableProcessDefinitionHistoryLevel(boolean enableProcessDefinitionHistoryLevel) -
setJdbcMaxActiveConnections
- Overrides:
setJdbcMaxActiveConnections
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcMaxIdleConnections
- Overrides:
setJdbcMaxIdleConnections
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcMaxCheckoutTime
- Overrides:
setJdbcMaxCheckoutTime
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcMaxWaitTime
- Overrides:
setJdbcMaxWaitTime
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcPingEnabled
- Overrides:
setJdbcPingEnabled
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcPingQuery
- Overrides:
setJdbcPingQuery
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcPingConnectionNotUsedFor
- Overrides:
setJdbcPingConnectionNotUsedFor
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setJdbcDefaultTransactionIsolationLevel
public ProcessEngineConfiguration setJdbcDefaultTransactionIsolationLevel(int jdbcDefaultTransactionIsolationLevel) - Overrides:
setJdbcDefaultTransactionIsolationLevel
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
isAsyncExecutorActivate
public boolean isAsyncExecutorActivate() -
setAsyncExecutorActivate
-
isAsyncHistoryExecutorActivate
public boolean isAsyncHistoryExecutorActivate() -
setAsyncHistoryExecutorActivate
public ProcessEngineConfiguration setAsyncHistoryExecutorActivate(boolean asyncHistoryExecutorActivate) -
setClassLoader
- Overrides:
setClassLoader
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setUseClassForNameClassLoading
public ProcessEngineConfiguration setUseClassForNameClassLoading(boolean useClassForNameClassLoading) - Overrides:
setUseClassForNameClassLoading
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
getJpaEntityManagerFactory
-
setJpaEntityManagerFactory
-
isJpaHandleTransaction
public boolean isJpaHandleTransaction() -
setJpaHandleTransaction
-
isJpaCloseEntityManager
public boolean isJpaCloseEntityManager() -
setJpaCloseEntityManager
-
getJpaPersistenceUnitName
-
setJpaPersistenceUnitName
-
setDataSourceJndiName
- Overrides:
setDataSourceJndiName
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
getDefaultCamelContext
-
setDefaultCamelContext
-
isCreateDiagramOnDeploy
public boolean isCreateDiagramOnDeploy() -
setCreateDiagramOnDeploy
-
isDrawSequenceFlowNameWithNoLabelDI
public boolean isDrawSequenceFlowNameWithNoLabelDI() -
setDrawSequenceFlowNameWithNoLabelDI
public ProcessEngineConfiguration setDrawSequenceFlowNameWithNoLabelDI(boolean drawSequenceFlowNameWithNoLabelDI) -
getActivityFontName
-
setActivityFontName
-
getLabelFontName
-
setLabelFontName
-
getAnnotationFontName
-
setAnnotationFontName
-
setDatabaseTablePrefix
- Overrides:
setDatabaseTablePrefix
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setTablePrefixIsSchema
- Overrides:
setTablePrefixIsSchema
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setDatabaseWildcardEscapeCharacter
public ProcessEngineConfiguration setDatabaseWildcardEscapeCharacter(String databaseWildcardEscapeCharacter) - Overrides:
setDatabaseWildcardEscapeCharacter
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setDatabaseCatalog
- Overrides:
setDatabaseCatalog
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setDatabaseSchema
- Overrides:
setDatabaseSchema
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setXmlEncoding
- Overrides:
setXmlEncoding
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
setClock
- Overrides:
setClock
in classorg.flowable.common.engine.impl.AbstractEngineConfiguration
-
getProcessDiagramGenerator
public org.flowable.image.ProcessDiagramGenerator getProcessDiagramGenerator() -
setProcessDiagramGenerator
public ProcessEngineConfiguration setProcessDiagramGenerator(org.flowable.image.ProcessDiagramGenerator processDiagramGenerator) -
getAsyncExecutor
public org.flowable.job.service.impl.asyncexecutor.AsyncExecutor getAsyncExecutor() -
setAsyncExecutor
public ProcessEngineConfiguration setAsyncExecutor(org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncExecutor) -
getAsyncTaskExecutor
public org.flowable.common.engine.api.async.AsyncTaskExecutor getAsyncTaskExecutor() -
setAsyncTaskExecutor
public ProcessEngineConfiguration setAsyncTaskExecutor(org.flowable.common.engine.api.async.AsyncTaskExecutor asyncTaskExecutor) -
getAsyncTaskInvokerTaskExecutor
public org.flowable.common.engine.api.async.AsyncTaskExecutor getAsyncTaskInvokerTaskExecutor() -
setAsyncTaskInvokerTaskExecutor
public ProcessEngineConfiguration setAsyncTaskInvokerTaskExecutor(org.flowable.common.engine.api.async.AsyncTaskExecutor asyncTaskInvokerTaskExecutor) -
getAsyncTaskInvoker
public org.flowable.common.engine.api.async.AsyncTaskInvoker getAsyncTaskInvoker() -
setAsyncTaskInvoker
public ProcessEngineConfiguration setAsyncTaskInvoker(org.flowable.common.engine.api.async.AsyncTaskInvoker asyncTaskInvoker) -
getAsyncHistoryExecutor
public org.flowable.job.service.impl.asyncexecutor.AsyncExecutor getAsyncHistoryExecutor() -
setAsyncHistoryExecutor
public ProcessEngineConfiguration setAsyncHistoryExecutor(org.flowable.job.service.impl.asyncexecutor.AsyncExecutor asyncHistoryExecutor) -
getAsyncHistoryTaskExecutor
public org.flowable.common.engine.api.async.AsyncTaskExecutor getAsyncHistoryTaskExecutor() -
setAsyncHistoryTaskExecutor
public ProcessEngineConfiguration setAsyncHistoryTaskExecutor(org.flowable.common.engine.api.async.AsyncTaskExecutor asyncHistoryTaskExecutor) -
getDefaultFailedJobWaitTime
public int getDefaultFailedJobWaitTime() -
setDefaultFailedJobWaitTime
-
getAsyncFailedJobWaitTime
public int getAsyncFailedJobWaitTime() -
setAsyncFailedJobWaitTime
-
isEnableProcessDefinitionInfoCache
public boolean isEnableProcessDefinitionInfoCache() -
setEnableProcessDefinitionInfoCache
public ProcessEngineConfiguration setEnableProcessDefinitionInfoCache(boolean enableProcessDefinitionInfoCache) -
getTaskPostProcessor
public org.flowable.task.service.TaskPostProcessor getTaskPostProcessor() -
setTaskPostProcessor
public void setTaskPostProcessor(org.flowable.task.service.TaskPostProcessor processor) -
isEnableHistoryCleaning
public boolean isEnableHistoryCleaning() -
setEnableHistoryCleaning
-
getHistoryCleaningTimeCycleConfig
-
setHistoryCleaningTimeCycleConfig
public ProcessEngineConfiguration setHistoryCleaningTimeCycleConfig(String historyCleaningTimeCycleConfig) -
getCleanInstancesEndedAfterNumberOfDays
Deprecated.usegetCleanInstancesEndedAfter()
instead -
setCleanInstancesEndedAfterNumberOfDays
@Deprecated public ProcessEngineConfiguration setCleanInstancesEndedAfterNumberOfDays(int cleanInstancesEndedAfterNumberOfDays) Deprecated.usesetCleanInstancesEndedAfter(Duration)
instead -
getCleanInstancesEndedAfter
-
setCleanInstancesEndedAfter
-
getCleanInstancesBatchSize
public int getCleanInstancesBatchSize() -
setCleanInstancesBatchSize
-
getHistoryCleaningManager
-
setHistoryCleaningManager
public ProcessEngineConfiguration setHistoryCleaningManager(HistoryCleaningManager historyCleaningManager) -
isAlwaysUseArraysForDmnMultiHitPolicies
public boolean isAlwaysUseArraysForDmnMultiHitPolicies() -
setAlwaysUseArraysForDmnMultiHitPolicies
public ProcessEngineConfiguration setAlwaysUseArraysForDmnMultiHitPolicies(boolean alwaysUseArraysForDmnMultiHitPolicies)
-
getCleanInstancesEndedAfter()
instead