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

Wrong execution counter in Kie Executor when request succeed

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.4.0
    • Fix Version/s: None
    • Component/s: jBPM Core
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      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 ~~~
    • Sprint:
      2018 Week 05-06

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swiderski.maciej Maciej Swiderski
                  Reporter:
                  oscar.molina Oscar Molina
                  Tester:
                  Marian Macik
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: