This document guides you through the update from Camunda BPM 7.7.x to 7.8.0. It covers these use cases:

Noteworthy new Features and Changes in 7.8:

Every Camunda installation requires a database schema update.

Procedure

  • Check for available database patch scripts for your database that are within the bounds of your update path.Locate the scripts at $DISTRIBUTIONPATH/sql/upgrade in the pre-packaged distribution (where $DISTRIBUTION_PATH is the path of an unpacked distribution) or in the Camunda Nexus.We highly recommend to execute these patches before updating. Execute them in ascending order by version number.The naming pattern is $DATABASENAME_engine_7.7_patch?.sql.

  • Execute the corresponding update scripts named

    • $DATABASENAME_engine_7.7_to_7.8.sql
      The scripts update the database from one minor version to the next, and change the underlying database structure. So make sure to backup your database in case there are any failures during the update process.
  • We highly recommend to also check for any existing patch scripts for your database that are within the bounds of the new minor version you are updating to. Execute them in ascending order by version number. Attention: This step is only relevant when you are using an enterprise version of the Camunda BPM platform, e.g., 7.7.X where X > 0. The procedure is the same as in step 1, only for the new minor version.

Full Distribution

This section is applicable if you installed the Full Distribution with a shared process engine.

The following steps are required:

  • Update the Camunda libraries and applications inside the application server
  • Migrate custom process applications
    Before starting, make sure that you have downloaded the Camunda BPM 7.8 distribution for the application server you use. It contains the SQL scripts and libraries required for update. This guide assumes you have unpacked the distribution to a path named $DISTRIBUTION_PATH.

Camunda Libraries and Applications

Please choose the application server you are working with from the following list:

For every process application, the Camunda dependencies should be updated to the new version. Which dependencies you have is application- and server-specific. Typically, the dependencies consist of any of the following:

  • camunda-engine-spring
  • camunda-engine-cdi
  • camunda-ejb-client

  • There are no new mandatory dependencies for process applications.

Standalone Web Application

If the standalone web application is in use, the current war artifact must be replaced by its new version.

If a database other than the default H2 database is used, the following steps must be taken:

  • Undeploy the current version of the standalone web application
  • Update the database to the new schema as described in the database update section
  • Reconfigure the database as described in the installationsection
  • Deploy the new and configured standalone web application to the server

    REST API Date Format

This section is applicable if you use the Camunda engine REST API.

The default date format used in the REST API requests and responses has changed from yyyy-MM-dd'T'HH:mm:ss to yyyy-MM-dd'T'HH:mm:ss.SSSZ (now includes second fractions and timezone).The Camunda webapps support the new format by default.

In case some custom REST clients rely on the old date format, choose one of the two following options:

  • Update REST clients to use the new format.
  • Configure custom date format for Camunda REST API (explained in detail in the Custom Date Format) section.

    Failed Jobs Retry Configuration

It’s no longer necessary to enable the retry time cycle configuration for failed jobs. This is the default behaviour from now on.

You should clean up the following lines from the process engine configuration file to be consistent with this behaviour:

  1. <bean id="processEngineConfiguration" class="org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
  2. ...
  3. <!-- remove these properties -->
  4. <property name="customPostBPMNParseListeners">
  5. <list>
  6. <bean class="org.camunda.bpm.engine.impl.bpmn.parser.FoxFailedJobParseListener" />
  7. </list>
  8. </property>
  9. <property name="failedJobCommandFactory" ref="foxFailedJobCommandFactory" />
  10. ...
  11. </bean>
  12. <!-- remove this bean -->
  13. <bean id="foxFailedJobCommandFactory" class="org.camunda.bpm.engine.impl.jobexecutor.FoxFailedJobCommandFactory" />

Incident Handler

This section concerns the Java API and the interface org.camunda.bpm.engine.impl.incident.IncidentHandler, that is a part of the internal API.

The return type of IncidentHandler#handleIncident has been changed from void to Incident. The API expects that, in case an incident was created, it is returned by the method,otherwise the method can return a null value.

In case there are custom incident handlers implementing that interface, the method handleIncident(…) should be adjusted.

Batch processing for database operations

Starting with version 7.8, Camunda uses batch processing to execute SQL statements over the database. The old (not batch) processing mode can be configured like this:

  1. <property name="jdbcBatchProcessing" value="false"/>

You might consider disabling the batch mode in the following cases:

  • Batch processing is not working for Oracle versions earlier than 12. If you’re using one of these versions you would need to disable batch processingin Camunda configuration to switch back to the old simple mode.

  • Statement timeout (configured by jdbcStatementTimeout parameter) is not working in combination with batch mode on MariaDB and DB2 databases.So if you’re using jdbcStatementTimeout configuration on the listed databases, consider disabling the batch mode.

Tasklist Translation File

New labels were introduced and some keys of previously existing labels were changed in the translation file of Tasklist.Due to this reason it is necessary to adjust custom translation files accordingly.

Please have a look at what changed exactly in the english translation file.

原文: https://docs.camunda.org/manual/7.9/update/minor/77-to-78/