Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-388

[GSS](6.1.z)Tasks with reassignment throws exception when completing it using the REST API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 6.1.0
    • Business Central
    • None

      +++ This bug was initially created as a clone of Bug #1254823 +++

      Description of problem:

      With a really simple process with a human task only that has a reassignment to a group if an user does not complete the task, and if the tasks is completed using the REST API before the reassignment happen, we have the following exception:

      ERROR org.kie.internal.runtime.manager.SessionNotFoundException: No session found for context

      {context}


      Version-Release number of selected component (if applicable):
      n/a

      How reproducible:
      alwyas

      Steps to Reproduce:
      1.create a process with a single human task and configure a reassignment of type "not-complete" for it, for example:

      users:|groups:r1@1m@not-completed

      2. deploy the project with the process
      3. start the process, claim the task, start it and complete it using the REST API before the reassignment fires, make sure the process is finished once you complete the task
      4. Wait the same time you set for the reassignment

      Actual results:

      Error in the logs when the reassignment should be fired:

      ERROR org.kie.internal.runtime.manager.SessionNotFoundException: No session found for context {context}

      Expected results:

      No error in the logs

      Additional info:

      It works when completing the task using Business Central. Seems that the REST API probably misses some call when process are ended to cancel all the scheduled re-assignments?

      — Additional comment from JBoss Product and Program Management on 2015-08-18 20:40:07 EDT —

      Since this issue was entered in Red Hat Bugzilla, the release flag has been
      set to ? to ensure that it is properly evaluated for this release.

      — Additional comment from Marco Rietveld on 2015-08-20 07:47:02 EDT —

      William, thanks for creating the bug.

      Could you attach a full server.log to the bugzilla? Thanks!

      If you could also attach the BPMN2 file that you're using to reproduce this issue, that would be great.

      — Additional comment from William Antônio on 2015-08-20 22:12:53 EDT —

      Hello Marco, please see the attachment I created. It has the logs, a video and the bpmn of the process.

      Thanks!

              marco.rietveld Marco Rietveld (Inactive)
              rhn-support-wsiqueir William Siqueira
              Jiří Locker Jiří Locker (Inactive)
              Jiří Locker Jiří Locker (Inactive)
              Alessandro Lazarotti, Karel Suta, Kris Verlaenen, Lukáš Petrovický (Inactive), Marco Rietveld (Inactive), William Siqueira
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: