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

Timer declarations are not restored after deleting a process definition

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Unresolved
    • L3 - Default
    • None
    • None
    • None
    • None

    Description

      Environment (Required on creation):

      Workflow Engine of Automation Platform 7.18.0-alpha2

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      When deleting a process definition, the timer declarations of the previous process definition are not restored.

      Steps to reproduce (Required on creation):

      • Deploy a process "foo" V1 with a timer start event
      • Deploy a process "foo" V2
      • Delete V2

      Observed Behavior (Required on creation):

      The timer declarations of process V1 are not restored so the timer start event never fires.

      Expected behavior (Required on creation):

      The timer declarations of process V1 are restored and the timer start event fires again.

      Root Cause (Required on prioritization):

      We restore event subscriptions but not timer declarations when deleting a process definition:
      https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeleteProcessDefinitionsByIdsCmd.java#L208

      Solution Ideas (Optional):

      Call BpmnDeployer#addTimerDeclarations when there is a new latest process definition.

      Hints (optional):

      -

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              tassilo.weidner Tassilo Weidner
              tassilo.weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Salesforce