SpringAutoDeployment deploymentsDiffer incorrect (results in unnecessary deployment each application restart)

Description

The auto deployment option from the ProcessEngineConfiguration uses the DeployCmd to deploy changed bpmn20.xml resources.
The DeployCmd uses the repositorySession.findLatestDeploymentByName(deployment.getName()) to find the most recent deployment, but instead of finding the most recent deployement, it finds the oldest deployment.

This will result in an auto deploy for every time application restarts after a bpmn20.xml resource has once changed.

Environment

Java 1.5 - Spring 3.0.4 - Oracle DB.

Assignee

Tijs Rademakers

Reporter

Johan Bakker

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure