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

MortgageApplication process IllegalStateException: We cannot have more than one BAM Task Summary for the task id = 3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 6.0.2
    • jBPM Core
    • None

      I have run a MortgageApplication process of official BPM Example in business-central. I chose the process parameter combination so the process enters data correction human task, activates swimlane, then goes to appraisal task out of swimlane and later to 'increase down payment task' back into the swimlane. However the third task produces the following error on start operation (claim is not necessary as the claim operation was done on the first data correction task in the same swimlane):

      19:14:46,932 WARN [org.jbpm.services.task.audit.lifecycle.listeners.BAMTaskEventListener] (http-localhost.localdomain/127.0.0.1:8080-3) Something went wrong with the Task BAM Listener
      19:14:46,933 WARN [org.jbpm.services.task.persistence.TaskTransactionInterceptor] (http-localhost.localdomain/127.0.0.1:8080-3) Could not commit session: java.lang.IllegalStateException: We cannot have more than one BAM Task Summary for the task id = 9
      at org.jbpm.services.task.audit.lifecycle.listeners.BAMTaskEventListener.createOrUpdateTask(BAMTaskEventListener.java:258) [jbpm-human-task-audit-6.0.3-redhat-5.jar:6.0.3-redhat-5]

      To reproduce:
      1.) Setup BPMS 6.0.3.ER1 (http://dev138.mw.lab.eng.bos.redhat.com/candidate/bpms-6.0.3-ER1/) on EAP 6.1.2 (http://download.eng.brq.redhat.com/released/JBEAP-6/6.1.2/).
      2.) Configure user guest with password guest, see hint below:
      guest=b5d048a237bfd2874b6928e1f37ee15e
      guest=admin,appraiser,broker,manager
      3.) Setup official BPM example, you need to clone its repository to business-central:
      http://git.app.eng.bos.redhat.com/git/jboss-bpm-example-app.git/tree/mortgage-demo-repo/src/main/resources/mortgage-demo
      and also deploy its web service to EAP:
      http://git.app.eng.bos.redhat.com/git/jboss-bpm-example-app.git/tree/mortgage-demo-ws
      Or check the official BPM Example Application documentation.
      4.) Start the BPMS.
      5.) Run the remote test:
      git clone git://git.app.eng.bos.redhat.com/jbossqe-process-flood.git
      cd jbossqe-process-flood
      git checkout bpms-6.0.x
      mvn clean test -Dtest=MortgageApplicationBasicRestTest -Dmaven.test.skip=false

      Expected behavior:
      I do not understand where is the problem with BAM Task Summary, when this task is entered for the first time. Even if it would entered multiple times, this should not happen. The third task should be able to start without any problems.

      My env:
      BPMS 6.0.3.ER1
      EAP 6.1.2
      PostgreSQL 9.3.5

              swiderski.maciej Maciej Swiderski (Inactive)
              jsvitak_jira Jiri Svitak (Inactive)
              Marek Baluch Marek Baluch
              Marek Baluch Marek Baluch
              Anton Giertli, Cheng Zhang (Inactive), Kris Verlaenen, Marek Baluch, Rajesh Rajasekaran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: