<process-engine />
The process engine configuration can be placed in both processes.xml and the bpm-platform.xml files. If the process engine is configured in either or both of those files, it will be bootstrapped by the Operaton infrastructure and be made available through BpmPlatform.getProcessEngineService().getProcessEngine("name of process engine").
Example
The following example shows an XML snippet which can be placed in both processes.xml and/or bpm-platform.xml.
<process-engine name="default">
<job-acquisition>default</job-acquisition>
<configuration>org.operaton.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration</configuration>
<datasource>java:jdbc/ProcessEngine</datasource>
<properties>
<property name="history">full</property>
<property name="databaseSchemaUpdate">true</property>
<property name="authorizationEnabled">true</property>
</properties>
</process-engine>
Syntax Reference
| Tag name | Parent tag name | Required? | Description |
|---|---|---|---|
<process-engine> | <process-application> or <bpm-platform> | true | Container element for the configuration of a process engine. Attributes:
Text Content: None. |
<job-acquisition> | <process-engine> | true | Assign the process engine to a job acquisition. Attributes: None. Text Content: The name of the job acquisition to be used for this process engine. Job acquisitions are configured in the bpm-platform.xml file. Example: |
<configuration> | <process-engine> | false | Provide the name of the process engine configuration class. Attributes: None. Text Content: The fully qualified classname of the Process Engine Configuration class to be used for this process engine. The class must be a subclass of ProcessEngineConfigurationImpl. Default Value:StandaloneProcessEngineConfiguration Example: |
<datasource> | <process-engine> | false | Provide the JDBC name of the datasource to use for the process engine. Attributes: None. Text Content: JDBC name of the datasource to use for this process engine. Default Value: null. Example: |
<properties> | <process-engine>, <plugin> | false | Container element for providing a set of process engine configuration (or plugin) properties. Attributes: None. Text Content: None. |
<property> | <properties> | false | Set value for process engine configuration property or of a process engine plugin. Attributes:
Text Content: The value of the property to be set. Property values are converted into String, Integer or Boolean values, depending on the type of the setter in the process engine configuration (or plugin) class. Example: |
<plugins> | <process-engine> | false | Container element for providing a set of process engine plugin configurations. Attributes: None. Text Content: None. |
<plugin> | <plugins> | false | Container element for providing an individual process engine plugin configuration. Attributes: None. Text Content: None. |
<class> | <plugin> | false | Sets the classname of a process engine plugin. Attributes: None. Text Content: The fully qualified classname of a process engine plugin. Must be an implementation of ProcessEnginePlugin |
Configuration Properties
The following is a list with the most commonly used process engine configuration properties, along with some explanations. The properties can be used in the <property name="foo">bar</property> tag, where foo is the name of the property and bar is the value of the property.
| Property name | Type | Description |
|---|---|---|
authorizationEnabled | Boolean | Activates authorization checks. |
autoStoreScriptVariables | Boolean | Controls whether all global script variables should be automatically stored as process variables or not.
Default value is Values: |
cmmnEnabled | Boolean | When set to
Default value is Values: |
databaseSchemaUpdate | String | Sets the value for process engine database schema creation. Values: |
databaseTablePrefix | String | Specifies a prefix for any table name included in SQL statements made by the process engine. Can be used to point the engine to a specific schema by setting the value to |
defaultNumberOfRetries | Integer | Specifies how many times a job will be executed before an incident is raised. Default value: |
defaultUserPermissionNameForTask | String | Set the default permisson to work on a task. Allowed values are |
disabledPermissions | List | Define a list of Permissions' names. These permissions will be not taken into account whenever authorization check is performed. |
dmnEnabled | Boolean | When set to
Default value is Values: |
enableExceptionsAfterUnhandledBpmnError | Boolean | If set to Values: |
enableExpressionsInAdhocQueries | Boolean | If set to Values: |
enableExpressionsInStoredQueries | Boolean | If set to Values: |
enableFetchProcessDefinitionDescription | Boolean | If set to false, Bpmn Model Instance is not fetched and cached whenever a process definition query is performed and thus the returned process definition does not contain the description.
Default value is Values: |
enableXxeProcessing | Boolean | If set to Values: |
enableScriptCompilation | Boolean | Controls whether the process engine should attempt to compile script sources and cache the compilation result or not. Default value is Values: |
forceCloseMybatisConnectionPool | Boolean | Controls whether a Mybatis-managed database connection pool is force closed when the process engine is closed. Closing the pool closes all active and idle database connections. Values: |
failedJobRetryTimeCycle | String | Sets how often a job is retried after a fail and how long the engine should wait until it tries to execute a job again. See the user guide for more details on this setting. |
ensureJobDueDateNotNull | Boolean | Ensures that each job has it's Values: |
enableHistoricInstancePermissions | Boolean | If the value of this flag is set to Values: |
enforceSpecificVariablePermission | Boolean | If the value of this flag is set to
Default value is Values: |
history | String | Sets the level of the process engine history. Values: |
enableDefaultDbHistoryEventHandler | Boolean | If the value of this flag is Values: |
historyRemovalTimeStrategy | String | Controls if and when the removal time of an historic instance is set.
The default value is |
hostname | String | Sets the name of the host on which the Process Engine will run. The hostname property is also used as the Metrics Reporter identifier. A custom hostname can be generated by providing an implementation of the
HostnameProvider
interface and and setting the engine property |
jdbcDriver | String | Sets the fully qualified classname of the JDBC driver to use. This is usually used if the process engine is NOT configured using a |
jdbcPassword | String | Sets the password of the JDBC connection. This is usually used if the process engine is NOT configured using a |
jdbcUrl | String | Sets the JDBC url for the database connection. This is usually used if the process engine is NOT configured using a |
jdbcUsername | String | Sets the username of the JDBC connection. This is usually used if the process engine is NOT configured using a |
skipIsolationLevelCheck | Boolean | If the value of this flag is set to The default value is Note: The recommended transaction isolation level that ensures the correct behaviour of the engine is Values: |
jdbcBatchProcessing | Boolean | Controls if the engine executes the jdbc statements as Batch or not. Default is |
jobExecutorAcquireByDueDate | Boolean | Controls whether the job executor acquires the next jobs to execute ordered by due date. Default value is Values: |
jobExecutorAcquireByPriority | Boolean | Controls whether the job executor acquires the next jobs to execute ordered by job priority. Default value is Values: |
jobExecutorActivate | Boolean | Controls whether the process engine starts with an active job executor or not. For a shared process engine configuration, the default value is Values: |
jobExecutorDeploymentAware | Boolean | Controls whether the job executor is deployment aware or not. Values: |
jobExecutorPreferTimerJobs | Boolean | Controls whether the job executor prefers due timer jobs over other job types. Default value is Values: |
jobExecutorPriorityRangeMin | Long | When set, the job executor will only acquire jobs that have a priority equal to or higher than the specified threshold.
You can combine this property with Default value: |
jobExecutorPriorityRangeMax | Long | When set, the job executor will only acquire jobs that have a priority equal to or lower than the specified threshold.
You can combine this property with Default value: |
jobExecutorAcquireExclusiveOverProcessHierarchies | Boolean | When set to When set to true, the acquisition & execution of the aforementioned jobs will be performed exclusively. See the user guide for more details. Default value: |
skipHistoryOptimisticLockingExceptions | Boolean | Controls if the engine will throw OptimisticLockingExceptions on UPDATE or DELETE operations for historical data or not.
The default is |
standaloneTasksEnabled | Boolean | When set to
Default value is Values: |
tenantCheckEnabled | Boolean | Controls whether the process engine performs tenant checks to ensure that an authenticated user can only access data that belongs to one of his tenants. Default value is Values: |
batchJobsPerSeed | Integer | Sets the number of batch execution jobs created per batch seed job
invocation.
See the
user guide for more information on batch execution.
Default value: |
invocationsPerBatchJob | Integer | Sets the number of invocations a single batch execution job executes.
See the
user guide for more information on batch execution.
Default value: |
invocationsPerBatchJobByBatchType | Map | Defines the invocations per batch job for each individual
batch type. Unless specified in this map, the value of
'invocationsPerBatchJob' is used for batch operations. |
batchPollTime | Integer | Sets the poll interval of the batch monitor job to check for batch
completion in seconds.
See the
user guide for more information on batch execution.
Default value: |
batchJobPriority | Integer | Sets the default batch job priority.
See the
user guide for more information on job prioritization.
Default value: |
deploymentLockUsed | Boolean | Sets if the process engine must acquire an exclusive lock when creating a deployment.
Default value: |
compositeIncidentHandlersEnabled | Boolean | Sets if the incidents can be handled by multiple handlers for the same incident type. Default value is Values: |
deploymentSynchronized | Boolean | Sets if processing of the deployment must be synchronized. When |
javaSerializationFormatEnabled | Boolean | Sets if Java serialization format can be used, when setting variables by their serialized representation. Default value: |
deserializationTypeValidationEnabled | Boolean | Sets if validation of types should be performed before JSON and XML deserialization. See Security Instructions for further information. Default value: |
deserializationAllowedPackages | String | Sets the allowed package names of types that are analyzed before JSON and XML deserialization if |
deserializationAllowedClasses | String | Sets the allowed class names of types that are analyzed before JSON and XML deserialization if |
enablePasswordPolicy | Boolean | Set to |
enableCmdExceptionLogging | Boolean | Set to |
enableReducedJobExceptionLogging | Boolean | Set to |
webappsAuthenticationLoggingEnabled | Boolean | Set to |
queryMaxResultsLimit | Integer | When defining a limit of maximum results, an authenticated user cannot perform a query with an unbounded number of results or a paginated query that exceeds the limit. Read more about it in the User Guide. Note: To gain the full feature set of the Webapps, and not suffer any UX degradation due to unavailable data, the |
dmnFeelEnableLegacyBehavior | Boolean | Set to |
dmnFeelCustomFunctionProviders | List | Define a list of instances of |
dmnReturnBlankTableOutputAsNull | Boolean | Controls whether blank DMN table outputs are swallowed or returned as |
skipOutputMappingOnCanceledActivities | Boolean | For activities that were canceled (e.g. due to throwing and catching an error) this flag controls if the engine
should still perform output mapping. When set to This flag is often used together with operaton:errorEventDefinition extension elements on external service tasks. Default value: |
configureScriptEngineHostAccess | Boolean | Specifies whether host language resources like classes and their methods are accessible or not. GraalVM JavaScript: If enabled, Note: These flags might not be available in every version of GraalVM JavaScript. Default value is Values: |
enableScriptEngineLoadExternalResources | Boolean | Specifies whether external resources can be loaded from file system or not. GraalVM JavaScript: If enabled, Note: This flag might not be available in every version of GraalVM JavaScript. Default value is Values: |
enableScriptEngineNashornCompatibility | Boolean | Specifies whether Nashorn compatibility mode is enabled or not. GraalVM JavaScript: If enabled, Note: This flag might not be available in every version of GraalVM JavaScript. Default value is Values: |
disableExceptionCode | Boolean | Disables the entire exception error code feature. No exception error codes are assigned. Default value is Values: |
disableBuiltinExceptionCodeProvider | Boolean | Disables the default implementation of ExceptionCodeProvider which allows overriding the reserved exception codes. Default value is Values: |
customExceptionCodeProvider | ExceptionCodeProvider | Allows registering a custom implementation of the exception code provider allowing to provide custom exception codes. Default value is Read more in the User Guide. |
implicitVariableUpdateDetectionEnabled | Boolean | Enables detection of implicit updates to process variables of type object. Default value is Values: |
logEntriesPerSyncOperationLimit | long | Controls how many user operation log entries are produced for a synchronous API call.
Default value is More information about security aspects of this configuration can be found in the security guide. Currently supported operations:
Values: |
History cleanup configuration parameters
historyCleanupStrategy | String | Controls which History cleanup strategy is used.
The default value is |
historyCleanupDefaultNumberOfRetries | Integer | Specifies how often a cleanup job will be executed before an incident is raised. This property overrides the global defaultNumberOfRetries property which has a default value of 3. |
historyCleanupBatchWindowStartTime | String | History cleanup batch window start time in the format HH:mmZ (Z is for RFC 822 time zone) or HH:mm. E.g., 20:00+0100 or 20:00. In case of null, no batch window is considered to be configured
and history cleanup can only be called manually. |
historyCleanupBatchWindowEndTime | String | History cleanup batch window end time in the format HH:mmZ (Z is for RFC 822 time zone) or HH:mm. E.g., 23:00-0300 or 23:00. In case batchWindowEndTime exceeds batchWindowStartTime it is considered
to be on the same date (e.g., cleanup runs each day between 20:00 and 23:00). Otherwise it is considered to be on the next calendar day (e.g., cleanup starts each
day at 20:00 and finishes the next day at 01:00). Default value is 00:00. |
mondayHistoryCleanupBatchWindowStartTime | String | History cleanup batch window start time for Mondays. Requires the same format as |
mondayHistoryCleanupBatchWindowEndTime | String | History cleanup batch window end time for Mondays. Requires the same format and follows the same logic
as |
tuesdayHistoryCleanupBatchWindowStartTime | String | Similar to mondayHistoryCleanupBatchWindowStartTime, but for Tuesdays. |
tuesdayHistoryCleanupBatchWindowEndTime | String | Similar to mondayHistoryCleanupBatchWindowEndTime, but for Tuesdays. |
wednesdayHistoryCleanupBatchWindowStartTime | String | Similar to mondayHistoryCleanupBatchWindowStartTime, but for Wednesdays. |
wednesdayHistoryCleanupBatchWindowEndTime | String | Similar to mondayHistoryCleanupBatchWindowEndTime, but for Wednesdays. |
thursdayHistoryCleanupBatchWindowStartTime | String | Similar to mondayHistoryCleanupBatchWindowStartTime, but for Thursdays. |
thursdayHistoryCleanupBatchWindowEndTime | String | Similar to mondayHistoryCleanupBatchWindowEndTime, but for Thursdays. |
fridayHistoryCleanupBatchWindowStartTime | String | Similar to mondayHistoryCleanupBatchWindowStartTime, but for Fridays. |
fridayHistoryCleanupBatchWindowEndTime | String | Similar to mondayHistoryCleanupBatchWindowEndTime, but for Fridays. |
saturdayHistoryCleanupBatchWindowStartTime | String | Similar to mondayHistoryCleanupBatchWindowStartTime, but for Saturdays. |
saturdayHistoryCleanupBatchWindowEndTime | String | Similar to mondayHistoryCleanupBatchWindowEndTime, but for Saturdays. |
sundayHistoryCleanupBatchWindowStartTime | String | Similar to mondayHistoryCleanupBatchWindowStartTime, but for Sundays. |
sundayHistoryCleanupBatchWindowEndTime | String | Similar to mondayHistoryCleanupBatchWindowEndTime, but for Sundays. |
historyCleanupBatchSize | Integer | Defines the amount of top-level objects (e.g., historic process instances) to be removed at once. Default and maximum value is 500. |
historyCleanupBatchThreshold | Integer | Defines the minimum amount of top-level objects required for data to be removed. Default value is 10. Hint: if the value is too small and the process
engine continues to be used during history cleanup, it can happen that real SQL delete statements are called very frequently for small amounts of data. |
historyCleanupDegreeOfParallelism | Integer | Defines the level of parallelism for history cleanup. Default value is 1 (no parallelism). Maximum allowed value is 8. |
historyCleanupMetricsEnabled | Boolean | Activates metrics for history cleanup. Default value is Note that history cleanup metrics are collected only when general metrics collection is not disabled. |
historyCleanupEnabled | Boolean | Configures whether the engine participates in history cleanup or not. The default value is |
historyTimeToLive | String | Defines history time to live for process definitions and decision definitions if no other value is defined. The history time to live defines the number of days using a time specified by the ISO-8601 date format. The function only accepts the notation to define a number of days. |
enforceHistoryTimeToLive | Boolean | Feature flag that prevents the deployment or redeployment of any model resource (BPMN, DMN, CMMN) that contains a |
batchOperationHistoryTimeToLive | String | Defines history time to live for historic batch operations. The history time to live defines the number of days using a time specified by the ISO-8601 date format. The function only accepts the notation to define a number of days. |
batchOperationsForHistoryCleanup | Map | Defines history time to live for each specific historic batch operation. The history time to live defines the number of days using a time specified by the ISO-8601 date format. The function only accepts the notation to define a number of days. |
| historyCleanupJobLogTimeToLive | String | Defines history time to live for history job log entries produced by history cleanup jobs. This works with the |
| taskMetricsTimeToLive | String | Defines time to live for task metrics entries produced by user task assignments. The history time to live defines the number of days using a time specified by the ISO-8601 date format. The function only accepts the notation to define a number of days. |
Login parameters
loginMaxAttempts | Integer | Defines the maximum number of attempts a user can try to login before this user is locked. Default value: 10 |
loginDelayMaxTime | Integer | Defines the maximum amount of time (in seconds) for which a user must wait until they are able to try to login again. Default value: 60 seconds |
loginDelayFactor | Integer | Defines the factor by which the delay is calculated after an unsuccessful login attempt. Default value: 2 |
loginDelayBase | Integer | Defines the base by which the delay is calculated after an unsuccessful login attempt. Default value: 3 |
Resource whitelist pattern parameters
generalResourceWhitelistPattern | String | Defines acceptable values for the User, Group and Tenant IDs. Can be defined by using the standard Java Regular Expression syntax. Default value: |
userResourceWhitelistPattern | String | Defines acceptable values for the User IDs. Can be defined by using the standard Java Regular Expression syntax. Default value: a custom general whitelist pattern or the default |
groupResourceWhitelistPattern | String | Defines acceptable values for the Group IDs. Can be defined by using the standard Java Regular Expression syntax. Default value: a custom general whitelist pattern or the default [a-zA-Z0-9]+|operaton-admin (if nothing is defined) |
tenantResourceWhitelistPattern | String | Defines acceptable values for the Tenant IDs. Can be defined by using the standard Java Regular Expression syntax. Default value: a custom general whitelist pattern or the default [a-zA-Z0-9]+|operaton-admin (if nothing is defined) |
Logging context parameters
These parameters define the keys at which the specified data can be retrieved from the Mapped Diagnostic Context (MDC). See Logging for details.
The specified data will only be put into the MDC if a key is defined. All parameters can be set to null or the empty String in order to disable their logging in the MDC.
loggingContextActivityId | String | Defines the key for the current activity id. Default value: activityId |
loggingContextActivityName | String | Defines the key for the current activity name. Default value: activityName |
loggingContextApplicationName | String | Defines the key for the current process application name. Default value: applicationName |
loggingContextBusinessKey | String | Defines the key for the current business key. Default value: |
loggingContextProcessDefinitionId | String | Defines the key for the current process definition id. Default value: processDefinitionId |
loggingContextProcessDefinitionKey | String | Defines the key for the current process definition key. Default value: |
loggingContextProcessInstanceId | String | Defines the key for the current process instance id. Default value: processInstanceId |
loggingContextTenantId | String | Defines the key for the current tenant id. Default value: tenantId |
loggingContextEngineName | String | Defines the key for the current process engine name. Default value: engineName |
Any properties set by the user that match the configured Logging context parameters will be preserved after the processing of the engine.
Logging level parameters
These parameters define the log level for the specified log entries.
logLevelBpmnStackTrace | String | Defines the log level for the bpmn stack traces. Default value: |