Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-10004

GET "instances/{processInstanceId}/timers" endpoint is not returning process SLA timers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Runtime Engine
    • False
    • False
    • NEW
    • NEW
    • Hide

      Steps to reproduce the issue (tested in RHPAM 7.11.1)
      --------------------------------------

      1) Download the reproducer from the attachment.

      2) Start RHPAM (kie-server).

      3) Open "createprocess.sh" and update host, port, credentials etc as per kie-server config.

      4) Run "createprocess.sh" script, confirm script is executed successfully and process instance and timer details detail is fetched.

      5) Timer response only returns task SLA timer, it doesn't return process SLA.

      {
        "timer-instance" : [ {
          "name" : "[SLA]Task",
          "id" : 2,
          "timer-id" : 0,
          "activation-time" : {
        "java.util.Date" : 1637931943760
      },
          "last-fire-time" : null,
          "next-fire-time" : {
        "java.util.Date" : 1637932243760
      },
          "delay" : 300000,
          "period" : 0,
          "repeat-limit" : -1,
          "process-instance-id" : 1,
          "session-id" : 4
        } ]
      
      
      Show
      Steps to reproduce the issue (tested in RHPAM 7.11.1) -------------------------------------- 1) Download the reproducer from the attachment. 2) Start RHPAM (kie-server). 3) Open "createprocess.sh" and update host, port, credentials etc as per kie-server config. 4) Run "createprocess.sh" script, confirm script is executed successfully and process instance and timer details detail is fetched. 5) Timer response only returns task SLA timer, it doesn't return process SLA. { "timer-instance" : [ { "name" : "[SLA]Task", "id" : 2, "timer-id" : 0, "activation-time" : { "java.util.Date" : 1637931943760 }, "last-fire-time" : null, "next-fire-time" : { "java.util.Date" : 1637932243760 }, "delay" : 300000, "period" : 0, "repeat-limit" : -1, "process-instance-id" : 1, "session-id" : 4 } ]

      Below end point is not returning timers for process SLA , it's returning timers for SLA set at task level.

      GET /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/timers
      

            rhn-support-egonzale Enrique Gonzalez Martinez (Inactive)
            rhn-support-egonzale Enrique Gonzalez Martinez (Inactive)
            Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: