Timer declarations are not restored after deleting a process definition

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Unresolved
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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):

      -

        This is the controller panel for Smart Panels app

              Assignee:
              Tassilo Weidner-Mühl
              Reporter:
              Tassilo Weidner-Mühl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: