Class ProcessEngineConfiguration
- java.lang.Object
-
- org.camunda.bpm.engine.ProcessEngineConfiguration
-
- Direct Known Subclasses:
ProcessEngineConfigurationImpl
public abstract class ProcessEngineConfiguration extends java.lang.Object
Configuration information from which a process engine can be build.Most common is to create a process engine based on the default configuration file:
ProcessEngine processEngine = ProcessEngineConfiguration .createProcessEngineConfigurationFromResourceDefault() .buildProcessEngine();
To create a process engine programatic, 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/activiti) in standalone mode. Standalone mode means that Activiti 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/activiti) in standalone mode. The DB schema strategy default is in this casecreate-drop
. Standalone mode means that Activiti 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:
ProcessEngines
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AUTHORIZATION_CHECK_REVOKE_ALWAYS
Always enables check forrevoke
authorizations.static java.lang.String
AUTHORIZATION_CHECK_REVOKE_AUTO
This mode only checks forrevoke
authorizations if at least one revoke authorization currently exits for the current user or one of the groups the user is a member of.static java.lang.String
AUTHORIZATION_CHECK_REVOKE_NEVER
Never checks forrevoke
authorizations.protected java.lang.String
authorizationCheckRevokes
protected boolean
authorizationEnabled
switch for controlling whether the process engine performs authorization checks.protected boolean
authorizationEnabledForCustomCode
The following flagauthorizationEnabledForCustomCode
will only be taken into account iffauthorizationEnabled
is settrue
.protected ProcessEngineBootstrapCommand
bootstrapCommand
protected java.lang.ClassLoader
classLoader
protected boolean
createIncidentOnFailedJobEnabled
protected java.lang.String
databaseSchemaUpdate
protected java.lang.String
databaseType
protected java.lang.String
databaseVendor
protected java.lang.String
databaseVersion
protected javax.sql.DataSource
dataSource
protected java.lang.String
dataSourceJndiName
static java.lang.String
DB_SCHEMA_UPDATE_CREATE_DROP
Creates the schema when the process engine is being created and drops the schema when the process engine is being closed.static java.lang.String
DB_SCHEMA_UPDATE_FALSE
Checks the version of the DB schema against the library when the process engine is being created and throws an exception if the versions don't match.static java.lang.String
DB_SCHEMA_UPDATE_TRUE
Upon building of the process engine, a check is performed and an update of the schema is performed if it is necessary.protected int
defaultNumberOfRetries
protected java.lang.String
defaultUserPermissionNameForTask
Provides the default task permission for the user related to a task User can be related to a task in the following ways - Candidate user - Part of candidate group - Assignee - Owner The default value is UPDATE.protected java.lang.String
deserializationAllowedClasses
Specifies which classes are allowed for deserializationprotected java.lang.String
deserializationAllowedPackages
Specifies which packages are allowed for deserializationprotected boolean
deserializationTypeValidationEnabled
Indicates whether type validation should be done before deserializationprotected DeserializationTypeValidator
deserializationTypeValidator
Validates types before deserializationprotected java.util.List<java.lang.String>
disabledPermissions
Specifies which permissions will not be taken into account in the authorizations checks if authorization is enabled.protected boolean
enableCmdExceptionLogging
If the value of this flag is set tofalse
exceptions that occur during command execution will not be logged before re-thrown.protected boolean
enableExceptionsAfterUnhandledBpmnError
If the value of this flag is settrue
then the process engine throwsProcessEngineException
when no catching boundary event was defined for an error event.protected boolean
enablePasswordPolicy
configuration of password policyprotected boolean
enableReducedJobExceptionLogging
If the value of this flag is set totrue
exceptions that occur during the execution of a job that still has retries left will not be logged.protected boolean
enforceSpecificVariablePermission
If the value of this flag is set totrue
, READ_INSTANCE_VARIABLE, READ_HISTORY_VARIABLE, or READ_TASK_VARIABLE on Process Definition resource, and READ_VARIABLE on Task resource READ_VARIABLE on Historic Task Instance resource will be required to fetch variables when the authorizations are enabled.protected boolean
ensureJobDueDateNotNull
protected java.lang.String
generalResourceWhitelistPattern
A parameter used for defining acceptable values for the User, Group and Tenant IDs.protected java.lang.String
groupResourceWhitelistPattern
A parameter used for defining acceptable values for the Group IDs.protected boolean
hintJobExecutor
The flag will be used inside the method "JobManager#send()".protected java.lang.String
history
static java.lang.String
HISTORY_ACTIVITY
Value forsetHistory(String)
to ensure that only historic process instances and historic activity instances are being recorded.static java.lang.String
HISTORY_AUDIT
Value forsetHistory(String)
to ensure that only historic process instances, historic activity instances and submitted form property values are being recorded.static java.lang.String
HISTORY_AUTO
Value forsetHistory(String)
.static java.lang.String
HISTORY_CLEANUP_STRATEGY_END_TIME_BASED
History cleanup is performed based on end time.static java.lang.String
HISTORY_CLEANUP_STRATEGY_REMOVAL_TIME_BASED
History cleanup is performed based on removal time.static java.lang.String
HISTORY_DEFAULT
The default history level that is used when no history level is configuredstatic java.lang.String
HISTORY_FULL
Value forsetHistory(String)
to ensure that all historic information is being recorded, including the variable updates.static java.lang.String
HISTORY_NONE
Value forsetHistory(String)
to ensure that no history is being recorded.static java.lang.String
HISTORY_REMOVAL_TIME_STRATEGY_END
Removal time for historic entities is set if execution has been ended.static java.lang.String
HISTORY_REMOVAL_TIME_STRATEGY_NONE
Removal time for historic entities is not set.static java.lang.String
HISTORY_REMOVAL_TIME_STRATEGY_START
Removal time for historic entities is set on execution start.static java.lang.String
HISTORY_VARIABLE
Deprecated.protected HistoryLevelSetupCommand
historyLevelCommand
protected int
idBlockSize
protected java.lang.String
installationId
An unique installation identifierprotected boolean
jdbcBatchProcessing
protected java.lang.String
jdbcDriver
protected int
jdbcMaxActiveConnections
protected int
jdbcMaxCheckoutTime
protected int
jdbcMaxIdleConnections
protected int
jdbcMaxWaitTime
protected java.lang.String
jdbcPassword
protected int
jdbcPingConnectionNotUsedFor
protected boolean
jdbcPingEnabled
protected java.lang.String
jdbcPingQuery
protected java.lang.Integer
jdbcStatementTimeout
the number of seconds the jdbc driver will wait for a response from the databaseprotected java.lang.String
jdbcUrl
protected java.lang.String
jdbcUsername
protected boolean
jobExecutorAcquireByDueDate
protected boolean
jobExecutorAcquireByPriority
protected boolean
jobExecutorActivate
protected boolean
jobExecutorDeploymentAware
protected boolean
jobExecutorPreferTimerJobs
protected boolean
jpaCloseEntityManager
protected java.lang.Object
jpaEntityManagerFactory
protected boolean
jpaHandleTransaction
protected java.lang.String
jpaPersistenceUnitName
protected java.lang.String
mailServerDefaultFrom
protected java.lang.String
mailServerHost
protected java.lang.String
mailServerPassword
protected int
mailServerPort
protected java.lang.String
mailServerUsername
protected PasswordPolicy
passwordPolicy
protected java.lang.String
processEngineName
protected boolean
producePrioritizedExternalTasks
protected boolean
producePrioritizedJobs
protected SchemaOperationsCommand
schemaOperationsCommand
protected boolean
skipHistoryOptimisticLockingExceptions
If the value of this flag is set tofalse
,OptimisticLockingException
s are not skipped for UPDATE or DELETE operations applied to historic entities.protected boolean
skipOutputMappingOnCanceledActivities
On failing activities we can skip output mapping.protected TelemetryRegistry
telemetryRegistry
protected boolean
tenantCheckEnabled
If the value of this flag is settrue
then the process engine performs tenant checks to ensure that an authenticated user can only access data that belongs to one of his tenants.protected java.lang.String
tenantResourceWhitelistPattern
A parameter used for defining acceptable values for the Tenant IDs.protected boolean
transactionsExternallyManaged
protected java.lang.String
userResourceWhitelistPattern
A parameter used for defining acceptable values for the User IDs.protected boolean
useTLS
protected ValueTypeResolver
valueTypeResolver
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessEngineConfiguration()
use one of the static createXxxx methods instead
-
Method Summary
-
-
-
Field Detail
-
DB_SCHEMA_UPDATE_FALSE
public static final java.lang.String DB_SCHEMA_UPDATE_FALSE
Checks the version of the DB schema against the library when the process engine is being created and throws an exception if the versions don't match.- See Also:
- Constant Field Values
-
DB_SCHEMA_UPDATE_CREATE_DROP
public static final java.lang.String DB_SCHEMA_UPDATE_CREATE_DROP
Creates the schema when the process engine is being created and drops the schema when the process engine is being closed.- See Also:
- Constant Field Values
-
DB_SCHEMA_UPDATE_TRUE
public static final java.lang.String DB_SCHEMA_UPDATE_TRUE
Upon building of the process engine, a check is performed and an update of the schema is performed if it is necessary.- See Also:
- Constant Field Values
-
HISTORY_NONE
public static final java.lang.String HISTORY_NONE
Value forsetHistory(String)
to ensure that no history is being recorded.- See Also:
- Constant Field Values
-
HISTORY_ACTIVITY
public static final java.lang.String HISTORY_ACTIVITY
Value forsetHistory(String)
to ensure that only historic process instances and historic activity instances are being recorded. This means no details for those entities.- See Also:
- Constant Field Values
-
HISTORY_VARIABLE
@Deprecated public static final java.lang.String HISTORY_VARIABLE
Deprecated.Value forsetHistory(String)
to ensure that only historic process instances, historic activity instances and last process variable values are being recorded.NOTE: This history level has been deprecated. Use level
HISTORY_ACTIVITY
instead.- See Also:
- Constant Field Values
-
HISTORY_AUDIT
public static final java.lang.String HISTORY_AUDIT
Value forsetHistory(String)
to ensure that only historic process instances, historic activity instances and submitted form property values are being recorded.- See Also:
- Constant Field Values
-
HISTORY_FULL
public static final java.lang.String HISTORY_FULL
Value forsetHistory(String)
to ensure that all historic information is being recorded, including the variable updates.- See Also:
- Constant Field Values
-
HISTORY_AUTO
public static final java.lang.String HISTORY_AUTO
Value forsetHistory(String)
. Choosing auto causes the configuration to choose the level already present on the database. If none can be found, "audit" is taken.- See Also:
- Constant Field Values
-
HISTORY_DEFAULT
public static final java.lang.String HISTORY_DEFAULT
The default history level that is used when no history level is configured- See Also:
- Constant Field Values
-
HISTORY_CLEANUP_STRATEGY_END_TIME_BASED
public static final java.lang.String HISTORY_CLEANUP_STRATEGY_END_TIME_BASED
History cleanup is performed based on end time.- See Also:
- Constant Field Values
-
HISTORY_CLEANUP_STRATEGY_REMOVAL_TIME_BASED
public static final java.lang.String HISTORY_CLEANUP_STRATEGY_REMOVAL_TIME_BASED
History cleanup is performed based on removal time.- See Also:
- Constant Field Values
-
HISTORY_REMOVAL_TIME_STRATEGY_START
public static final java.lang.String HISTORY_REMOVAL_TIME_STRATEGY_START
Removal time for historic entities is set on execution start.- See Also:
- Constant Field Values
-
HISTORY_REMOVAL_TIME_STRATEGY_END
public static final java.lang.String HISTORY_REMOVAL_TIME_STRATEGY_END
Removal time for historic entities is set if execution has been ended.- See Also:
- Constant Field Values
-
HISTORY_REMOVAL_TIME_STRATEGY_NONE
public static final java.lang.String HISTORY_REMOVAL_TIME_STRATEGY_NONE
Removal time for historic entities is not set.- See Also:
- Constant Field Values
-
AUTHORIZATION_CHECK_REVOKE_ALWAYS
public static final java.lang.String AUTHORIZATION_CHECK_REVOKE_ALWAYS
Always enables check forrevoke
authorizations. This mode is equal to the < 7.5 behavior. *NOTE:* Checking revoke authorizations is very expensive for resources with a high potential cardinality like tasks or process instances and can render authorized access to the process engine effectively unusable on most databases. You are therefore strongly discouraged from using this mode.- See Also:
- Constant Field Values
-
AUTHORIZATION_CHECK_REVOKE_NEVER
public static final java.lang.String AUTHORIZATION_CHECK_REVOKE_NEVER
Never checks forrevoke
authorizations. This mode has best performance effectively disables the use ofAuthorization.AUTH_TYPE_REVOKE
. *Note*: It is strongly recommended to use this mode.- See Also:
- Constant Field Values
-
AUTHORIZATION_CHECK_REVOKE_AUTO
public static final java.lang.String AUTHORIZATION_CHECK_REVOKE_AUTO
This mode only checks forrevoke
authorizations if at least one revoke authorization currently exits for the current user or one of the groups the user is a member of. To achieve this it is checked once per command whether potentially applicable revoke authorizations exist. Based on the outcome, the authorization check then uses revoke or not. *NOTE:* Checking revoke authorizations is very expensive for resources with a high potential cardinality like tasks or process instances and can render authorized access to the process engine effectively unusable on most databases.- See Also:
- Constant Field Values
-
processEngineName
protected java.lang.String processEngineName
-
idBlockSize
protected int idBlockSize
-
history
protected java.lang.String history
-
jobExecutorActivate
protected boolean jobExecutorActivate
-
jobExecutorDeploymentAware
protected boolean jobExecutorDeploymentAware
-
jobExecutorPreferTimerJobs
protected boolean jobExecutorPreferTimerJobs
-
jobExecutorAcquireByDueDate
protected boolean jobExecutorAcquireByDueDate
-
jobExecutorAcquireByPriority
protected boolean jobExecutorAcquireByPriority
-
ensureJobDueDateNotNull
protected boolean ensureJobDueDateNotNull
-
producePrioritizedJobs
protected boolean producePrioritizedJobs
-
producePrioritizedExternalTasks
protected boolean producePrioritizedExternalTasks
-
hintJobExecutor
protected boolean hintJobExecutor
The flag will be used inside the method "JobManager#send()". It will be used to decide whether to notify the job executor that a new job has been created. It will be used for performance improvement, so that the new job could be executed in some situations immediately.
-
mailServerHost
protected java.lang.String mailServerHost
-
mailServerUsername
protected java.lang.String mailServerUsername
-
mailServerPassword
protected java.lang.String mailServerPassword
-
mailServerPort
protected int mailServerPort
-
useTLS
protected boolean useTLS
-
mailServerDefaultFrom
protected java.lang.String mailServerDefaultFrom
-
databaseType
protected java.lang.String databaseType
-
databaseVendor
protected java.lang.String databaseVendor
-
databaseVersion
protected java.lang.String databaseVersion
-
databaseSchemaUpdate
protected java.lang.String databaseSchemaUpdate
-
jdbcDriver
protected java.lang.String jdbcDriver
-
jdbcUrl
protected java.lang.String jdbcUrl
-
jdbcUsername
protected java.lang.String jdbcUsername
-
jdbcPassword
protected java.lang.String jdbcPassword
-
dataSourceJndiName
protected java.lang.String dataSourceJndiName
-
jdbcMaxActiveConnections
protected int jdbcMaxActiveConnections
-
jdbcMaxIdleConnections
protected int jdbcMaxIdleConnections
-
jdbcMaxCheckoutTime
protected int jdbcMaxCheckoutTime
-
jdbcMaxWaitTime
protected int jdbcMaxWaitTime
-
jdbcPingEnabled
protected boolean jdbcPingEnabled
-
jdbcPingQuery
protected java.lang.String jdbcPingQuery
-
jdbcPingConnectionNotUsedFor
protected int jdbcPingConnectionNotUsedFor
-
dataSource
protected javax.sql.DataSource dataSource
-
schemaOperationsCommand
protected SchemaOperationsCommand schemaOperationsCommand
-
bootstrapCommand
protected ProcessEngineBootstrapCommand bootstrapCommand
-
historyLevelCommand
protected HistoryLevelSetupCommand historyLevelCommand
-
transactionsExternallyManaged
protected boolean transactionsExternallyManaged
-
jdbcStatementTimeout
protected java.lang.Integer jdbcStatementTimeout
the number of seconds the jdbc driver will wait for a response from the database
-
jdbcBatchProcessing
protected boolean jdbcBatchProcessing
-
jpaPersistenceUnitName
protected java.lang.String jpaPersistenceUnitName
-
jpaEntityManagerFactory
protected java.lang.Object jpaEntityManagerFactory
-
jpaHandleTransaction
protected boolean jpaHandleTransaction
-
jpaCloseEntityManager
protected boolean jpaCloseEntityManager
-
defaultNumberOfRetries
protected int defaultNumberOfRetries
-
classLoader
protected java.lang.ClassLoader classLoader
-
createIncidentOnFailedJobEnabled
protected boolean createIncidentOnFailedJobEnabled
-
enablePasswordPolicy
protected boolean enablePasswordPolicy
configuration of password policy
-
passwordPolicy
protected PasswordPolicy passwordPolicy
-
authorizationEnabled
protected boolean authorizationEnabled
switch for controlling whether the process engine performs authorization checks. The default value is false.
-
defaultUserPermissionNameForTask
protected java.lang.String defaultUserPermissionNameForTask
Provides the default task permission for the user related to a task User can be related to a task in the following ways - Candidate user - Part of candidate group - Assignee - Owner The default value is UPDATE.
-
authorizationEnabledForCustomCode
protected boolean authorizationEnabledForCustomCode
The following flag
authorizationEnabledForCustomCode
will only be taken into account iffauthorizationEnabled
is settrue
.If the value of the flag
authorizationEnabledForCustomCode
is settrue
then an authorization check will be performed by executing commands inside custom code (e.g. insideJavaDelegate
).The default value is
false
.
-
tenantCheckEnabled
protected boolean tenantCheckEnabled
If the value of this flag is settrue
then the process engine performs tenant checks to ensure that an authenticated user can only access data that belongs to one of his tenants.
-
valueTypeResolver
protected ValueTypeResolver valueTypeResolver
-
authorizationCheckRevokes
protected java.lang.String authorizationCheckRevokes
-
generalResourceWhitelistPattern
protected java.lang.String generalResourceWhitelistPattern
A parameter used for defining acceptable values for the User, Group and Tenant IDs. The pattern can be defined by using the standard Java Regular Expression syntax should be used.By default only alphanumeric values (or 'camunda-admin') will be accepted.
-
userResourceWhitelistPattern
protected java.lang.String userResourceWhitelistPattern
A parameter used for defining acceptable values for the User IDs. The pattern can be defined by using the standard Java Regular Expression syntax should be used.If not defined, the general pattern is used. Only alphanumeric values (or 'camunda-admin') will be accepted.
-
groupResourceWhitelistPattern
protected java.lang.String groupResourceWhitelistPattern
A parameter used for defining acceptable values for the Group IDs. The pattern can be defined by using the standard Java Regular Expression syntax should be used.If not defined, the general pattern is used. Only alphanumeric values (or 'camunda-admin') will be accepted.
-
tenantResourceWhitelistPattern
protected java.lang.String tenantResourceWhitelistPattern
A parameter used for defining acceptable values for the Tenant IDs. The pattern can be defined by using the standard Java Regular Expression syntax should be used.If not defined, the general pattern is used. Only alphanumeric values (or 'camunda-admin') will be accepted.
-
enableExceptionsAfterUnhandledBpmnError
protected boolean enableExceptionsAfterUnhandledBpmnError
If the value of this flag is settrue
then the process engine throwsProcessEngineException
when no catching boundary event was defined for an error event.The default value is
false
.
-
skipHistoryOptimisticLockingExceptions
protected boolean skipHistoryOptimisticLockingExceptions
If the value of this flag is set tofalse
,OptimisticLockingException
s are not skipped for UPDATE or DELETE operations applied to historic entities.The default value is
true
.
-
enforceSpecificVariablePermission
protected boolean enforceSpecificVariablePermission
If the value of this flag is set totrue
, READ_INSTANCE_VARIABLE, READ_HISTORY_VARIABLE, or READ_TASK_VARIABLE on Process Definition resource, and READ_VARIABLE on Task resource READ_VARIABLE on Historic Task Instance resource will be required to fetch variables when the authorizations are enabled.
-
disabledPermissions
protected java.util.List<java.lang.String> disabledPermissions
Specifies which permissions will not be taken into account in the authorizations checks if authorization is enabled.
-
enableCmdExceptionLogging
protected boolean enableCmdExceptionLogging
If the value of this flag is set tofalse
exceptions that occur during command execution will not be logged before re-thrown. This can prevent multiple logs of the same exception (e.g. exceptions that occur during job execution) but can also hide valuable debugging/rootcausing information.
-
enableReducedJobExceptionLogging
protected boolean enableReducedJobExceptionLogging
If the value of this flag is set totrue
exceptions that occur during the execution of a job that still has retries left will not be logged. If the job does not have any retries left, the exception will still be logged on logging level WARN.
-
deserializationAllowedClasses
protected java.lang.String deserializationAllowedClasses
Specifies which classes are allowed for deserialization
-
deserializationAllowedPackages
protected java.lang.String deserializationAllowedPackages
Specifies which packages are allowed for deserialization
-
deserializationTypeValidator
protected DeserializationTypeValidator deserializationTypeValidator
Validates types before deserialization
-
deserializationTypeValidationEnabled
protected boolean deserializationTypeValidationEnabled
Indicates whether type validation should be done before deserialization
-
installationId
protected java.lang.String installationId
An unique installation identifier
-
telemetryRegistry
protected TelemetryRegistry telemetryRegistry
-
skipOutputMappingOnCanceledActivities
protected boolean skipOutputMappingOnCanceledActivities
On failing activities we can skip output mapping. This might be helpful if output mapping uses variables that might not be available on failure (e.g. with external tasks or RPA tasks).
-
-
Method Detail
-
buildProcessEngine
public abstract ProcessEngine buildProcessEngine()
-
createProcessEngineConfigurationFromResourceDefault
public static ProcessEngineConfiguration createProcessEngineConfigurationFromResourceDefault()
-
createProcessEngineConfigurationFromResource
public static ProcessEngineConfiguration createProcessEngineConfigurationFromResource(java.lang.String resource)
-
createProcessEngineConfigurationFromResource
public static ProcessEngineConfiguration createProcessEngineConfigurationFromResource(java.lang.String resource, java.lang.String beanName)
-
createProcessEngineConfigurationFromInputStream
public static ProcessEngineConfiguration createProcessEngineConfigurationFromInputStream(java.io.InputStream inputStream)
-
createProcessEngineConfigurationFromInputStream
public static ProcessEngineConfiguration createProcessEngineConfigurationFromInputStream(java.io.InputStream inputStream, java.lang.String beanName)
-
createStandaloneProcessEngineConfiguration
public static ProcessEngineConfiguration createStandaloneProcessEngineConfiguration()
-
createStandaloneInMemProcessEngineConfiguration
public static ProcessEngineConfiguration createStandaloneInMemProcessEngineConfiguration()
-
getProcessEngineName
public java.lang.String getProcessEngineName()
-
setProcessEngineName
public ProcessEngineConfiguration setProcessEngineName(java.lang.String processEngineName)
-
getIdBlockSize
public int getIdBlockSize()
-
setIdBlockSize
public ProcessEngineConfiguration setIdBlockSize(int idBlockSize)
-
getHistory
public java.lang.String getHistory()
-
setHistory
public ProcessEngineConfiguration setHistory(java.lang.String history)
-
getMailServerHost
public java.lang.String getMailServerHost()
-
setMailServerHost
public ProcessEngineConfiguration setMailServerHost(java.lang.String mailServerHost)
-
getMailServerUsername
public java.lang.String getMailServerUsername()
-
setMailServerUsername
public ProcessEngineConfiguration setMailServerUsername(java.lang.String mailServerUsername)
-
getMailServerPassword
public java.lang.String getMailServerPassword()
-
setMailServerPassword
public ProcessEngineConfiguration setMailServerPassword(java.lang.String mailServerPassword)
-
getMailServerPort
public int getMailServerPort()
-
setMailServerPort
public ProcessEngineConfiguration setMailServerPort(int mailServerPort)
-
getMailServerUseTLS
public boolean getMailServerUseTLS()
-
setMailServerUseTLS
public ProcessEngineConfiguration setMailServerUseTLS(boolean useTLS)
-
getMailServerDefaultFrom
public java.lang.String getMailServerDefaultFrom()
-
setMailServerDefaultFrom
public ProcessEngineConfiguration setMailServerDefaultFrom(java.lang.String mailServerDefaultFrom)
-
getDatabaseType
public java.lang.String getDatabaseType()
-
setDatabaseType
public ProcessEngineConfiguration setDatabaseType(java.lang.String databaseType)
-
getDatabaseVendor
public java.lang.String getDatabaseVendor()
-
setDatabaseVendor
public ProcessEngineConfiguration setDatabaseVendor(java.lang.String databaseVendor)
-
getDatabaseVersion
public java.lang.String getDatabaseVersion()
-
setDatabaseVersion
public ProcessEngineConfiguration setDatabaseVersion(java.lang.String databaseVersion)
-
getDatabaseSchemaUpdate
public java.lang.String getDatabaseSchemaUpdate()
-
setDatabaseSchemaUpdate
public ProcessEngineConfiguration setDatabaseSchemaUpdate(java.lang.String databaseSchemaUpdate)
-
getDataSource
public javax.sql.DataSource getDataSource()
-
setDataSource
public ProcessEngineConfiguration setDataSource(javax.sql.DataSource dataSource)
-
getSchemaOperationsCommand
public SchemaOperationsCommand getSchemaOperationsCommand()
-
setSchemaOperationsCommand
public void setSchemaOperationsCommand(SchemaOperationsCommand schemaOperationsCommand)
-
getProcessEngineBootstrapCommand
public ProcessEngineBootstrapCommand getProcessEngineBootstrapCommand()
-
setProcessEngineBootstrapCommand
public void setProcessEngineBootstrapCommand(ProcessEngineBootstrapCommand bootstrapCommand)
-
getHistoryLevelCommand
public HistoryLevelSetupCommand getHistoryLevelCommand()
-
setHistoryLevelCommand
public void setHistoryLevelCommand(HistoryLevelSetupCommand historyLevelCommand)
-
getJdbcDriver
public java.lang.String getJdbcDriver()
-
setJdbcDriver
public ProcessEngineConfiguration setJdbcDriver(java.lang.String jdbcDriver)
-
getJdbcUrl
public java.lang.String getJdbcUrl()
-
setJdbcUrl
public ProcessEngineConfiguration setJdbcUrl(java.lang.String jdbcUrl)
-
getJdbcUsername
public java.lang.String getJdbcUsername()
-
setJdbcUsername
public ProcessEngineConfiguration setJdbcUsername(java.lang.String jdbcUsername)
-
getJdbcPassword
public java.lang.String getJdbcPassword()
-
setJdbcPassword
public ProcessEngineConfiguration setJdbcPassword(java.lang.String jdbcPassword)
-
isTransactionsExternallyManaged
public boolean isTransactionsExternallyManaged()
-
setTransactionsExternallyManaged
public ProcessEngineConfiguration setTransactionsExternallyManaged(boolean transactionsExternallyManaged)
-
getJdbcMaxActiveConnections
public int getJdbcMaxActiveConnections()
-
setJdbcMaxActiveConnections
public ProcessEngineConfiguration setJdbcMaxActiveConnections(int jdbcMaxActiveConnections)
-
getJdbcMaxIdleConnections
public int getJdbcMaxIdleConnections()
-
setJdbcMaxIdleConnections
public ProcessEngineConfiguration setJdbcMaxIdleConnections(int jdbcMaxIdleConnections)
-
getJdbcMaxCheckoutTime
public int getJdbcMaxCheckoutTime()
-
setJdbcMaxCheckoutTime
public ProcessEngineConfiguration setJdbcMaxCheckoutTime(int jdbcMaxCheckoutTime)
-
getJdbcMaxWaitTime
public int getJdbcMaxWaitTime()
-
setJdbcMaxWaitTime
public ProcessEngineConfiguration setJdbcMaxWaitTime(int jdbcMaxWaitTime)
-
isJdbcPingEnabled
public boolean isJdbcPingEnabled()
-
setJdbcPingEnabled
public ProcessEngineConfiguration setJdbcPingEnabled(boolean jdbcPingEnabled)
-
getJdbcPingQuery
public java.lang.String getJdbcPingQuery()
-
setJdbcPingQuery
public ProcessEngineConfiguration setJdbcPingQuery(java.lang.String jdbcPingQuery)
-
getJdbcPingConnectionNotUsedFor
public int getJdbcPingConnectionNotUsedFor()
-
setJdbcPingConnectionNotUsedFor
public ProcessEngineConfiguration setJdbcPingConnectionNotUsedFor(int jdbcPingNotUsedFor)
-
getJdbcStatementTimeout
public java.lang.Integer getJdbcStatementTimeout()
Gets the number of seconds the jdbc driver will wait for a response from the database.
-
setJdbcStatementTimeout
public ProcessEngineConfiguration setJdbcStatementTimeout(java.lang.Integer jdbcStatementTimeout)
Sets the number of seconds the jdbc driver will wait for a response from the database.
-
isJdbcBatchProcessing
public boolean isJdbcBatchProcessing()
-
setJdbcBatchProcessing
public ProcessEngineConfiguration setJdbcBatchProcessing(boolean jdbcBatchProcessing)
-
isJobExecutorActivate
public boolean isJobExecutorActivate()
-
setJobExecutorActivate
public ProcessEngineConfiguration setJobExecutorActivate(boolean jobExecutorActivate)
-
isJobExecutorDeploymentAware
public boolean isJobExecutorDeploymentAware()
-
setJobExecutorDeploymentAware
public ProcessEngineConfiguration setJobExecutorDeploymentAware(boolean jobExecutorDeploymentAware)
-
isJobExecutorAcquireByDueDate
public boolean isJobExecutorAcquireByDueDate()
-
setJobExecutorAcquireByDueDate
public ProcessEngineConfiguration setJobExecutorAcquireByDueDate(boolean jobExecutorAcquireByDueDate)
-
isJobExecutorPreferTimerJobs
public boolean isJobExecutorPreferTimerJobs()
-
setJobExecutorPreferTimerJobs
public ProcessEngineConfiguration setJobExecutorPreferTimerJobs(boolean jobExecutorPreferTimerJobs)
-
isHintJobExecutor
public boolean isHintJobExecutor()
-
setHintJobExecutor
public ProcessEngineConfiguration setHintJobExecutor(boolean hintJobExecutor)
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
-
setClassLoader
public ProcessEngineConfiguration setClassLoader(java.lang.ClassLoader classLoader)
-
getJpaEntityManagerFactory
public java.lang.Object getJpaEntityManagerFactory()
-
setJpaEntityManagerFactory
public ProcessEngineConfiguration setJpaEntityManagerFactory(java.lang.Object jpaEntityManagerFactory)
-
isJpaHandleTransaction
public boolean isJpaHandleTransaction()
-
setJpaHandleTransaction
public ProcessEngineConfiguration setJpaHandleTransaction(boolean jpaHandleTransaction)
-
isJpaCloseEntityManager
public boolean isJpaCloseEntityManager()
-
setJpaCloseEntityManager
public ProcessEngineConfiguration setJpaCloseEntityManager(boolean jpaCloseEntityManager)
-
getJpaPersistenceUnitName
public java.lang.String getJpaPersistenceUnitName()
-
setJpaPersistenceUnitName
public void setJpaPersistenceUnitName(java.lang.String jpaPersistenceUnitName)
-
getDataSourceJndiName
public java.lang.String getDataSourceJndiName()
-
setDataSourceJndiName
public void setDataSourceJndiName(java.lang.String dataSourceJndiName)
-
isCreateIncidentOnFailedJobEnabled
public boolean isCreateIncidentOnFailedJobEnabled()
-
setCreateIncidentOnFailedJobEnabled
public ProcessEngineConfiguration setCreateIncidentOnFailedJobEnabled(boolean createIncidentOnFailedJobEnabled)
-
isAuthorizationEnabled
public boolean isAuthorizationEnabled()
-
setAuthorizationEnabled
public ProcessEngineConfiguration setAuthorizationEnabled(boolean isAuthorizationChecksEnabled)
-
getDefaultUserPermissionNameForTask
public java.lang.String getDefaultUserPermissionNameForTask()
-
setDefaultUserPermissionNameForTask
public ProcessEngineConfiguration setDefaultUserPermissionNameForTask(java.lang.String defaultUserPermissionNameForTask)
-
isAuthorizationEnabledForCustomCode
public boolean isAuthorizationEnabledForCustomCode()
-
setAuthorizationEnabledForCustomCode
public ProcessEngineConfiguration setAuthorizationEnabledForCustomCode(boolean authorizationEnabledForCustomCode)
-
isTenantCheckEnabled
public boolean isTenantCheckEnabled()
-
setTenantCheckEnabled
public ProcessEngineConfiguration setTenantCheckEnabled(boolean isTenantCheckEnabled)
-
getGeneralResourceWhitelistPattern
public java.lang.String getGeneralResourceWhitelistPattern()
-
setGeneralResourceWhitelistPattern
public void setGeneralResourceWhitelistPattern(java.lang.String generalResourceWhitelistPattern)
-
getUserResourceWhitelistPattern
public java.lang.String getUserResourceWhitelistPattern()
-
setUserResourceWhitelistPattern
public void setUserResourceWhitelistPattern(java.lang.String userResourceWhitelistPattern)
-
getGroupResourceWhitelistPattern
public java.lang.String getGroupResourceWhitelistPattern()
-
setGroupResourceWhitelistPattern
public void setGroupResourceWhitelistPattern(java.lang.String groupResourceWhitelistPattern)
-
getTenantResourceWhitelistPattern
public java.lang.String getTenantResourceWhitelistPattern()
-
setTenantResourceWhitelistPattern
public void setTenantResourceWhitelistPattern(java.lang.String tenantResourceWhitelistPattern)
-
getDefaultNumberOfRetries
public int getDefaultNumberOfRetries()
-
setDefaultNumberOfRetries
public void setDefaultNumberOfRetries(int defaultNumberOfRetries)
-
getValueTypeResolver
public ValueTypeResolver getValueTypeResolver()
-
setValueTypeResolver
public ProcessEngineConfiguration setValueTypeResolver(ValueTypeResolver valueTypeResolver)
-
isEnsureJobDueDateNotNull
public boolean isEnsureJobDueDateNotNull()
-
setEnsureJobDueDateNotNull
public void setEnsureJobDueDateNotNull(boolean ensureJobDueDateNotNull)
-
isProducePrioritizedJobs
public boolean isProducePrioritizedJobs()
-
setProducePrioritizedJobs
public void setProducePrioritizedJobs(boolean producePrioritizedJobs)
-
isJobExecutorAcquireByPriority
public boolean isJobExecutorAcquireByPriority()
-
setJobExecutorAcquireByPriority
public void setJobExecutorAcquireByPriority(boolean jobExecutorAcquireByPriority)
-
isProducePrioritizedExternalTasks
public boolean isProducePrioritizedExternalTasks()
-
setProducePrioritizedExternalTasks
public void setProducePrioritizedExternalTasks(boolean producePrioritizedExternalTasks)
-
setAuthorizationCheckRevokes
public void setAuthorizationCheckRevokes(java.lang.String authorizationCheckRevokes)
-
getAuthorizationCheckRevokes
public java.lang.String getAuthorizationCheckRevokes()
-
isEnableExceptionsAfterUnhandledBpmnError
public boolean isEnableExceptionsAfterUnhandledBpmnError()
-
setEnableExceptionsAfterUnhandledBpmnError
public void setEnableExceptionsAfterUnhandledBpmnError(boolean enableExceptionsAfterUnhandledBpmnError)
-
isSkipHistoryOptimisticLockingExceptions
public boolean isSkipHistoryOptimisticLockingExceptions()
-
setSkipHistoryOptimisticLockingExceptions
public ProcessEngineConfiguration setSkipHistoryOptimisticLockingExceptions(boolean skipHistoryOptimisticLockingExceptions)
-
isEnforceSpecificVariablePermission
public boolean isEnforceSpecificVariablePermission()
-
setEnforceSpecificVariablePermission
public void setEnforceSpecificVariablePermission(boolean ensureSpecificVariablePermission)
-
getDisabledPermissions
public java.util.List<java.lang.String> getDisabledPermissions()
-
setDisabledPermissions
public void setDisabledPermissions(java.util.List<java.lang.String> disabledPermissions)
-
isEnablePasswordPolicy
public boolean isEnablePasswordPolicy()
-
setEnablePasswordPolicy
public ProcessEngineConfiguration setEnablePasswordPolicy(boolean enablePasswordPolicy)
-
getPasswordPolicy
public PasswordPolicy getPasswordPolicy()
-
setPasswordPolicy
public ProcessEngineConfiguration setPasswordPolicy(PasswordPolicy passwordPolicy)
-
isEnableCmdExceptionLogging
public boolean isEnableCmdExceptionLogging()
-
setEnableCmdExceptionLogging
public ProcessEngineConfiguration setEnableCmdExceptionLogging(boolean enableCmdExceptionLogging)
-
isEnableReducedJobExceptionLogging
public boolean isEnableReducedJobExceptionLogging()
-
setEnableReducedJobExceptionLogging
public ProcessEngineConfiguration setEnableReducedJobExceptionLogging(boolean enableReducedJobExceptionLogging)
-
getDeserializationAllowedClasses
public java.lang.String getDeserializationAllowedClasses()
-
setDeserializationAllowedClasses
public ProcessEngineConfiguration setDeserializationAllowedClasses(java.lang.String deserializationAllowedClasses)
-
getDeserializationAllowedPackages
public java.lang.String getDeserializationAllowedPackages()
-
setDeserializationAllowedPackages
public ProcessEngineConfiguration setDeserializationAllowedPackages(java.lang.String deserializationAllowedPackages)
-
getDeserializationTypeValidator
public DeserializationTypeValidator getDeserializationTypeValidator()
-
setDeserializationTypeValidator
public ProcessEngineConfiguration setDeserializationTypeValidator(DeserializationTypeValidator deserializationTypeValidator)
-
isDeserializationTypeValidationEnabled
public boolean isDeserializationTypeValidationEnabled()
-
setDeserializationTypeValidationEnabled
public ProcessEngineConfiguration setDeserializationTypeValidationEnabled(boolean deserializationTypeValidationEnabled)
-
getInstallationId
public java.lang.String getInstallationId()
-
setInstallationId
public ProcessEngineConfiguration setInstallationId(java.lang.String installationId)
-
getTelemetryRegistry
public TelemetryRegistry getTelemetryRegistry()
-
setTelemetryRegistry
public ProcessEngineConfiguration setTelemetryRegistry(TelemetryRegistry telemetryRegistry)
-
isSkipOutputMappingOnCanceledActivities
public boolean isSkipOutputMappingOnCanceledActivities()
-
setSkipOutputMappingOnCanceledActivities
public void setSkipOutputMappingOnCanceledActivities(boolean skipOutputMappingOnCanceledActivities)
-
-