Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7446

Redeployment does not include all resources

    XMLWordPrintable

Details

    • Bug Report
    • Status: Closed
    • L3 - Default
    • Resolution: Fixed
    • 7.6.0
    • 7.7.0, 7.6.3, 7.7.0-alpha2
    • engine

    Description

      If a deployment contains a process definition and a corresponding diagram, than both are successful deployed.

      If a process definition query is returned the returned process definition entity contains the diagram resource name.

      Is the cache cleared and the method
      repositoryService.getProcessDiagram(processDefinition.getId()); used, then the process definition can not resolved from the cache. This ends in redeployment of the corresponding deployment, which is identified via the ID. Problem lies in the CacheDeployer#deployOnlyGivenResourceOfDeployment, which calls the CacheDeployer#initDeployment. This init method only loads one resource for the deployment. In this case the corresponding diagram are not redeployed - so the process definition which is added into the cache contains no diagram resource name.

      The result is that repositoryService.getProcessDiagram(processDefinition.getId()); and repositoryService.getProcessDiagramLayout(processDefinition.getId()); returns null!

      Added failing test case into the engine, see commit.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              johannes.heinemann Johannes Heinemann
              christopher.zell Christopher Zell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce