Camunda与Spring Boot集成(3)--Camunda Engine 属性

除了基于Bean的覆盖流程引擎配置属性的方法外,还可以通过application.yaml配置文件设置这些属性。 有关如何使用它的说明,可以在Spring Boot Starter Guide中找到。

可用属性如下:

PrefixProperty nameDescriptionDefault value
General
camunda.bpm.enabledSwitch to disable the Camunda auto-configuration. Use to exclude Camunda in integration tests.true
.process-engine-nameName of the process engineCamunda default value
.generate-unique-process-engine-nameGenerate a unique name for the process engine (format: 'processEngine' + 10 random alphanumeric characters)false
.generate-unique-process-application-nameGenerate a unique Process Application name for every Process Application deployment (format: 'processApplication' + 10 random alphanumeric characters)false
.default-serialization-formatDefault serialization formatCamunda default value
.history-levelCamunda history levelFULL
.history-level-defaultCamunda history level to use when history-level is auto, but the level can not determined automaticallyFULL
.auto-deployment-enabledIf processes should be auto deployed. This is disabled when using the SpringBootProcessApplicationtrue
.default-number-of-retriesSpecifies how many times a job will be executed before an incident is raised3
.job-executor-acquire-by-priorityIf set to true, the job executor will acquire the jobs with the highest prioritiesfalse
.license-fileProvides a URL to your Camunda license file and is automatically inserted into the DB when the application starts (but only if no valid license key is found in the DB).

Note: This property is only available when using the camunda-bpm-spring-boot-starter-webapp-ee
By default, the license key will be loaded:
  1. from the URL provided via the this property (if present)
  2. from the file with the name camunda-license.txt from the classpath (if present)
  3. from path ${user.home}/.camunda/license.txt (if present)
The license must be exactly in the format as we sent it to you including the header and footer line. Bear in mind that for some licenses there is a minimum version requirement.
.id-generatorConfigure idGenerator. Allowed values: simplestrongprefixedprefixed id generator is like strong, but uses a Spring application name (${spring.application.name}) as the prefix for each id.strong
.versionVersion of the process engineRead only value, e.g., 7.4.0
.formatted-versionFormatted version of the process engineRead only value, e.g., (v7.4.0)
.deployment-resource-patternLocation for auto deploymentclasspath*:**/*.bpmn, classpath*:**/*.bpmn20.xml, classpath*:**/*.dmn, classpath*:**/*.dmn11.xml, classpath*:**/*.cmmn, classpath*:**/*.cmmn10.xml, classpath*:**/*.cmmn11.xml
Job Execution
camunda.bpm.job-execution.enabledIf set to false, no JobExecutor bean is created at all. Maybe used for testing.true
.deployment-awareIf job executor is deployment awarefalse
.core-pool-sizeSet to value > 1 to activate parallel job execution.3
.keep-alive-secondsSpecifies the time, in milliseconds, for which threads are kept alive when there are no more tasks present. When the time expires, threads are terminated so that the core pool size is reached.0
.lock-time-in-millisSpecifies the time in milliseconds an acquired job is locked for execution. During that time, no other job executor can acquire the job.300000
.max-jobs-per-acquisitionSets the maximal number of jobs to be acquired at once.3
.max-pool-sizeMaximum number of parallel threads executing jobs.10
.queue-capacitySets the size of the queue which is used for holding tasks to be executed.3
.wait-time-in-millisSpecifies the wait time of the job acquisition thread in milliseconds in case there are less jobs available for execution than requested during acquisition. If this is repeatedly the case, the wait time is increased exponentially by the factor waitIncreaseFactor. The wait time is capped by maxWait.5000
.max-waitSpecifies the maximum wait time of the job acquisition thread in milliseconds in case there are less jobs available for execution than requested during acquisition.60000
.backoff-time-in-millisSpecifies the wait time of the job acquisition thread in milliseconds in case jobs were acquired but could not be locked. This condition indicates that there are other job acquisition threads acquiring jobs in parallel. If this is repeatedly the case, the backoff time is increased exponentially by the factor waitIncreaseFactor. The time is capped by maxBackoff. With every increase in backoff time, the number of jobs acquired increases by waitIncreaseFactor as well.0
.max-backoffSpecifies the maximum wait time of the job acquisition thread in milliseconds in case jobs were acquired but could not be locked.0
.backoff-decrease-thresholdSpecifies the number of successful job acquisition cycles without a job locking failure before the backoff time is decreased again. In that case, the backoff time is reduced by waitIncreaseFactor.100
.wait-increase-factorSpecifies the factor by which wait and backoff time are increased in case their activation conditions are repeatedly met.2
Datasource
camunda.bpm.database.schema-updateIf automatic schema update should be applied, use one of [true, false, create, create-drop, drop-create]true
.typeType of the underlying database. Possible values: h2, mysql, mariadb, oracle, postgres, mssql, db2.Will be automatically determined from datasource
.table-prefixPrefix of the camunda database tables. Attention: The table prefix will not be applied if you are using schema-update!Camunda default value
.schema-nameThe dataBase schema nameCamunda default value
.jdbc-batch-processingControls if the engine executes the jdbc statements as Batch or not. It has to be disabled for some databases. See the user guide for further details.Camunda default value: true
Eventing
camunda.bpm.eventing.executionEnables eventing of delegate execution events. See the user guide for further details.true
.historyEnables eventing of history events. See the user guide for further details.true
.taskEnables eventing of task events. See the user guide for further details.true
JPA
camunda.bpm.jpa.enabledEnables jpa configurationtrue. Depends on entityManagerFactory bean.
.persistence-unit-nameJPA persistence unit name-
.close-entity-managerClose JPA entity managertrue
.handle-transactionJPA handle transactiontrue
Management
camunda.bpm.management.health.camunda.enabledEnables default camunda health indicatorstrue
Metrics
camunda.bpm.metrics.enabledEnables metrics reportingCamunda default value
.db-reporter-activateEnables db metrics reportingCamunda default value
Webapp
camunda.bpm.webapp.enabledSwitch to disable the Camunda Webapp auto-configuration.true
.index-redirect-enabledRegisters a redirect from / to camunda's bundled index.html.
If this property is set to false, the default Spring Boot behaviour is taken into account.
true
.application-pathChanges the application path of the webapp.
When setting to /, the legacy behavior of Camunda Spring Boot Starter <= 3.4.x is restored.
/camunda
camunda.bpm.webapp.csrf
.target-originSets the application expected deployment domain. See the user guide for details.Not set
.deny-statusSets the HTTP response status code used for a denied request. See the user guide for details.403
.random-classSets the name of the class used to generate tokens. See the user guide for details.java.security.SecureRandom
.entry-pointsSets additional URLs that will not be tested for the presence of a valid token. See the user guide for details.Not set
.enable-secure-cookieIf set to true, the cookie flag Secure is enabled.false
.enable-same-site-cookieIf set to false, the cookie flag SameSite is disabled. The default value of the SameSite cookie is LAX and it can be changed via same-site-cookie-option configuration property.true
.same-site-cookie-optionCan be configured either to STRICT or LAX.

Note:
  • Is ignored when enable-same-site-cookie is set to false
  • Cannot be set in conjunction with same-site-cookie-value
Not set
.same-site-cookie-valueA custom value for the cookie property.

Note:
  • Is ignored when enable-same-site-cookie is set to false
  • Cannot be set in conjunction with same-site-cookie-option
Not set
.cookie-nameA custom value to change the cookie name.
Note: Please make sure to additionally change the cookie name for each webapp (e. g. Cockpit ) separately.
XSRF-TOKEN
camunda.bpm.webapp.header-security
.xss-protection-disabledThe header can be entirely disabled if set to true.
Allowed set of values is true and false.
false
.xss-protection-optionThe allowed set of values:
  • BLOCK: If the browser detects a cross-site scripting attack, the page is blocked completely
  • SANITIZE: If the browser detects a cross-site scripting attack, the page is sanitized from suspicious parts (value 0)
Note:
  • Is ignored when .xss-protection-disabled is set to true
  • Cannot be set in conjunction with .xss-protection-value
BLOCK
.xss-protection-valueA custom value for the header can be specified.

Note:
  • Is ignored when .xss-protection-disabled is set to true
  • Cannot be set in conjunction with .xss-protection-option
1; mode=block
.content-security-policy-disabledThe header can be entirely disabled if set to true.
Allowed set of values is true and false.
false
.content-security-policy-valueA custom value for the header can be specified.

Note: Property is ignored when .content-security-policy-disabled is set to true
base-uri 'self'
.content-type-options-disabledThe header can be entirely disabled if set to true.
Allowed set of values is true and false.
false
content-type-options-valueA custom value for the header can be specified.

Note: Property is ignored when .content-security-policy-disabled is set to true
nosniff
Authorization
camunda.bpm.authorization.enabledEnables authorizationCamunda default value
.enabled-for-custom-codeEnables authorization for custom codeCamunda default value
.authorization-check-revokesConfigures authorization check revokesCamunda default value
.tenant-check-enabledPerforms tenant checks to ensure that an authenticated user can only access data that belongs to one of his tenants.true
Admin User
camunda.bpm.admin-user.idThe username (e.g., 'admin')-
.passwordThe initial password=id
.firstName.lastName.emailAdditional (optional) user attributesDefaults to value of 'id'
Filter
camunda.bpm.filter.createName of a "show all" filter. If set, a new filter is created on start that displays all tasks. Useful for testing on h2 db.-
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值