Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4877

Update timer do not delete correct old timer

XMLWordPrintable

      For process with several timers, PUT /timers will try to delete the old timer based on timer.getTimerId() not timer.getId() which ends into no timer being deleted (sometimes timerId =0) or wrong timer deleted (if you update timer id=2 with timerId=1 and there's a timer id = 1:

      {
        "timer-instance": [
          {
            "name": "HT1-timer1",
            "id": 2,
            "timer-id": 1,
            "activation-time": "2023-09-15T02:56:41.378+0200",
            "last-fire-time": null,
            "next-fire-time": "2023-09-15T02:58:41.378+0200",
            "delay": 120000,
            "period": 0,
            "repeat-limit": -1,
            "process-instance-id": 31,
            "session-id": 116
          },
          {
            "name": "HT2-timer2",
            "id": 1,
            "timer-id": 1,
            "activation-time": "2023-09-15T02:56:41.341+0200",
            "last-fire-time": null,
            "next-fire-time": "2023-09-15T03:00:41.341+0200",
            "delay": 240000,
            "period": 0,
            "repeat-limit": -1,
            "process-instance-id": 31,
            "session-id": 116
          }
        ]
      } 

      What is timerId used for?

              ftirados Francisco Javier Tirado Sarti
              afanjula@redhat.com Alberto Fanjul Alonso
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: