Update a Glassfish Installation from 7.3 to 7.4
The following steps describe how to update the Camunda artifacts on a Glassfish 3.1 application server in a shared process engine setting. For the entire procedure, refer to the update guide. If not already done, make sure to download the Camunda 7.4 Glassfish distribution.
The update procedure takes the following steps:
- Uninstall the Camunda Applications and Archives
- Replace Camunda Core Libraries
- Replace Optional Camunda Libraries
- Maintain the Camunda 7 Configuration
- Maintain Process Engine Configuration
- Maintain Process Applications
- Install the Camunda Archive
- Install the Web Applications
In each of the following steps, the identifiers $*_VERSION
refer to the current version and the new versions of the artifacts.
1. Uninstall the Camunda Applications and Archives
First, uninstall the Camunda web applications, namely the Camunda REST API (artifact name like camunda-engine-rest
) and the Camunda applications Cockpit, Tasklist and Admin (artifact name like camunda-webapp
).
Uninstall the Camunda EAR. Its name should be camunda-glassfish-ear-$PLATFORM_VERSION.ear
. Then, uninstall the Camunda job executor adapter, called camunda-jobexecutor-rar-$PLATFORM_VERSION.rar
.
2. Replace Camunda Core Libraries
After shutting down the server, replace the following libraries in $GLASSFISH_HOME/glassfish/lib
with their equivalents from $GLASSFISH_DISTRIBUTION/modules/lib
:
camunda-engine-$PLATFORM_VERSION.jar
camunda-bpmn-model-$PLATFORM_VERSION.jar
camunda-cmmn-model-$PLATFORM_VERSION.jar
camunda-xml-model-$PLATFORM_VERSION.jar
Add or replace (if already present) the following libraries:
camunda-engine-dmn-$PLATFORM_VERSION.jar
camunda-engine-feel-api-$PLATFORM_VERSION.jar
camunda-engine-feel-juel-$PLATFORM_VERSION.jar
camunda-dmn-model-$PLATFORM_VERSION.jar
camunda-commons-logging-$COMMONS_VERSION.jar
camunda-commons-typed-values-$COMMONS_VERSION.jar
camunda-commons-utils-$COMMONS_VERSION.jar
Starting with 7.4, SLF4J is a mandatory dependency. Add the SLF4J libraries (if not already present):
slf4j-api-$SLF4J_VERSION.jar
slf4j-jdk14-$SLF4J_VERSION.jar
Camunda needs version slf4j-api-1.7.7 or higher. See the User Guide for Information on Logging in Camunda.
3. Replace Optional Camunda Dependencies
In addition to the core libraries, there may be optional artifacts in $GLASSFISH_HOME/glassfish/lib
for LDAP integration, Camunda Spin, and Groovy scripting. If you use any of these extensions, the following update steps apply:
LDAP integration
Copy the following libraries from $GLASSFISH_DISTRIBUTION/modules/lib
to the folder $GLASSFISH_HOME/glassfish/lib
, if present:
camunda-identity-ldap-$PLATFORM_VERSION.jar
Camunda Spin
Copy the following libraries from $GLASSFISH_DISTRIBUTION/modules/lib
to the folder $GLASSFISH_HOME/glassfish/lib
, if present:
camunda-spin-core-$SPIN_VERSION.jar
Groovy Scripting
Copy the following libraries from $GLASSFISH_DISTRIBUTION/modules/lib
to the folder $GLASSFISH_HOME/glassfish/lib
, if present:
groovy-all-$GROOVY_VERSION.jar
4. Maintain the Camunda 7 Configuration
If you have previously replaced the default Camunda 7 configuration by a custom configuration following any of the ways outlined in the deployment descriptor reference, it may be necessary to restore this configuration. This can be done by repeating the configuration replacement steps for the updated platform.
5. Maintain Process Engine Configuration
This section describes changes in the platform’s default behavior. While the change is reasonable, your implementation may rely on the previous default behavior. Thus, the previous behavior can be restored for shared process engines by explicitly setting a configuration option.
Task Query Expressions
As of 7.4, the default handling of expressions submitted as parameters of task queries has changed. Passing EL expressions in a task query enables execution of arbitrary code when the query is evaluated. The process engine no longer evaluates these expressions by default and throws an exception instead. This behavior can be toggled in the process engine configuration using the properties enableExpressionsInAdhocQueries
(default false
) and enableExpressionsInStoredQueries
(default true
). To restore the engine’s previous behavior, set both flags to true
. See the user guide on security considerations for custom code for details.
This is already the default for Camunda 7 versions after and including 7.3.3 and 7.2.8.
User Operation Log
The behavior of the user operation log has changed, so that operations are only logged if they are performed in the context of a logged in user. This behavior can be toggled in the process engine configuration using the property restrictUserOperationLogToAuthenticatedUsers
(default true
). To restore the engine’s prior behavior, i.e., to write log entries regardless of user context, set the flag to false
.
Furthermore, with 7.4 task events are only logged when they occur in the context of a logged in user. Task events are accessible via the deprecated API TaskService#getTaskEvents
. If you rely on this API method, the previous behavior can be restored by setting the flag restrictUserOperationLogToAuthenticatedUsers
to false
.
6. Maintain Process Applications
This section describes changes in behavior of API methods that your process applications may rely on.
CMMN Model API
As a consequence of supporting CMMN 1.1, the CMMN model API is now based on the schema of CMMN 1.1. This leads to limitations when editing CMMN 1.0 models. We therefore recommend to migrate your CMMN 1.0 models to CMMN 1.1.
7. Install the Camunda Archive
First, install the Camunda job executor resource adapter, namely the file $GLASSFISH_DISTRIBUTION/modules/camunda-jobexecutor-rar-$PLATFORM_VERSION.rar
. Then, install the Camunda EAR, i.e., the file $GLASSFISH_DISTRIBUTION/modules/camunda-glassfish-ear-$PLATFORM_VERSION.ear
.
8. Install the Web Applications
REST API
The following steps are required to update the Camunda REST API on a Glassfish instance:
- Download the REST API web application archive from our Artifact Repository. Alternatively, switch to the private repository for the enterprise version (User and password from license required). Choose the correct version named
$PLATFORM_VERSION/camunda-engine-rest-$PLATFORM_VERSION.war
. - Deploy the web application archive to your Glassfish instance.
Cockpit, Tasklist, and Admin
The following steps are required to update the Camunda web applications Cockpit, Tasklist, and Admin on a Glassfish instance:
- Download the Camunda web application archive from our Artifact Repository. Alternatively, switch to the private repository for the enterprise version (User and password from license required). Choose the correct version named
$PLATFORM_VERSION/camunda-webapp-glassfish-$PLATFORM_VERSION.war
. - Deploy the web application archive to your Glassfish instance.
LDAP Entity Caching
It is possible to enable entity caching for Hypertext Application Language (HAL) requests that the Camunda web applications make. This can be especially useful when you use Camunda in combination with LDAP. To activate caching, the Camunda webapp artifact has to be modified and the pre-built application cannot be used as is. See the REST Api Documentation for details.