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

[GSS] (6.4.z) Wrong execution counter in Kie Executor when request succeed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.4.9
    • 6.4.0
    • jBPM Core
    • CR1
    • Hide

      1. Copy the library attached to this email (executor-command-1.0.0-SNAPSHOT.zip -> change the extension to .JAR) in <JBoss_Home>/standalone/deployments/business-central.war/WEB-INF/lib
      2. Start a JBoss BPMS 6.4.7.
      2. Go to Deploy -> Jobs
      3. Create 2 jobs:

      ~~~
      Name: TestError
      Type: org.example.bpm.command.MyCustomCommand

      Name: TestDone
      Type: org.jbpm.executor.commands.PrintOutCommand
      ~~~

      4. Run both jobs and see the results in the table REQUESTINFO. The first one logs an error and the second one runs successfully.

      For the customer in both cases the "executions" column should be "1". "executions" should be the number of times that the job has been executed. But the results are:

      ~~~
      Status - Executions - Retries
      DONE - 0 - 0
      ERROR - 1 - 0
      ~~~

      Show
      1. Copy the library attached to this email (executor-command-1.0.0-SNAPSHOT.zip -> change the extension to .JAR) in <JBoss_Home>/standalone/deployments/business-central.war/WEB-INF/lib 2. Start a JBoss BPMS 6.4.7. 2. Go to Deploy -> Jobs 3. Create 2 jobs: ~~~ Name: TestError Type: org.example.bpm.command.MyCustomCommand Name: TestDone Type: org.jbpm.executor.commands.PrintOutCommand ~~~ 4. Run both jobs and see the results in the table REQUESTINFO. The first one logs an error and the second one runs successfully. For the customer in both cases the "executions" column should be "1". "executions" should be the number of times that the job has been executed. But the results are: ~~~ Status - Executions - Retries DONE - 0 - 0 ERROR - 1 - 0 ~~~

      We have a customer who is trying to use the service "getRequestById" (ExecutorService) and showing to the user the real number of executions. The problem is that when a request is correctly handled by "AbstractAvailableJobsExecutor", the variable "executions" is not increased.

      The "executions" column refers to the number of executions the job. If the "status" is DONE and the "executions" is 0, it means that the job was successfully run once. If the "status" is ERROR you can see the number of executions tried in the "executions" column. So it seems a bug.

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-omolinab Oscar Molina
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: