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

Tasks with reassignment throws exception when completing it using the REST API

XMLWordPrintable

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

      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?

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

                Created:
                Updated:
                Resolved: