Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9767

Process instance does not become Completed state even though all nodes in the instance are completed.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Runtime Engine
    • False
    • False
    • NEW
    • NEW
    • Undefined
    • Hide
      1. Build a simple REST server by following the steps, or use a spring-boot jar file (rest-service-0.0.1-SNAPSHOT.jar) attached in Attachment field.
        $ git clone https://github.com/spring-guides/gs-rest-service.git
        $ cd gs-rest-service/
        $ cd complete/
        $ mkdir src/main/resources
        $ cat > src/main/resources/application.properties <<EOF
        server.port=8081
        EOF
        $ ./mvnw clean package
        

        How to run:

        $ java -jar target/rest-service-0.0.1-SNAPSHOT.jar
        

        How to Access:

        $ curl http://localhost:8081/greeting
        {"id":1,"content":"Hello, World!"}
        
      2. Install Business Central and Kie Server.
        $ unzip jboss-eap-7.3.5.zip
        $ java -jar rhpam-installer-7.9.1.jar
        
      3. Import reproducer_bc_1a project, and build and deploy it.
        1. Extract reproducer_bc_1a.zip.
          $ unzip reproducer_bc_1a.zip
          
        2. Import reproducer_bc_1a project on Business Central Spaces >> MySpace page. Repository URL is file:///path/to/reproducer_bc_1a.
        3. Build and deploy the project using Deploy button.
      4. Make sure the REST server built in 1. is not running.
      5. In Manage Process Definitions page in Business Central, start ExampleProcess process. Press Submit without any inputs for ExampleProcess form.
        • A new ExampleProcess instance will be partially processed (due to RuntimeException caused by Connection-refused occurs in REST Service Task).
        • In Instance Details tab for the process instance, Instance State is Active.
        • In Diagram tab for the process instance, only Start node is greyed (completed) and remaining nodes (REST Service Task, End) are not yet completed.
      6. Start the REST server built in 1. as a destination REST service.
        $ java -jar /path/to/rest-service-0.0.1-SNAPSHOT.jar
        
      7. Trigger the REST Service Task node in the process instance partially processed in 5.
        1. In Manage Process Instances page, choose the process instance partially processed in 5.
        2. In the process instance page, choose Diagram tab.
        3. Choose REST Service Task node in Process Diagram pane, and then press Trigger button in Node Actions pane.
        4. After triggering, you may need to press Refresh icon to refresh Process Diagram pane.
          • It looks like the ExampleProcess instance will be successfully processed, but the instance state will still be Active.
          • In Instance Details tab for the process instance, Instance State is still Active. <---------- Instance State here should be Completed.
          • In Diagram tab for the process instance, all nodes (Start, REST Service Task, End) are greyed (completed).
      Show
      Build a simple REST server by following the steps, or use a spring-boot jar file ( rest-service-0.0.1-SNAPSHOT.jar ) attached in Attachment field. $ git clone https://github.com/spring-guides/gs-rest-service.git $ cd gs-rest-service/ $ cd complete/ $ mkdir src/main/resources $ cat > src/main/resources/application.properties <<EOF server.port=8081 EOF $ ./mvnw clean package How to run: $ java -jar target/rest-service-0.0.1-SNAPSHOT.jar How to Access: $ curl http://localhost:8081/greeting {"id":1,"content":"Hello, World!"} Install Business Central and Kie Server. $ unzip jboss-eap-7.3.5.zip $ java -jar rhpam-installer-7.9.1.jar Import reproducer_bc_1a project, and build and deploy it. Extract reproducer_bc_1a.zip . $ unzip reproducer_bc_1a.zip Import reproducer_bc_1a project on Business Central Spaces >> MySpace page. Repository URL is file:///path/to/reproducer_bc_1a . Build and deploy the project using Deploy button. Make sure the REST server built in 1. is not running. In Manage Process Definitions page in Business Central, start ExampleProcess process. Press Submit without any inputs for ExampleProcess form. A new ExampleProcess instance will be partially processed (due to RuntimeException caused by Connection-refused occurs in REST Service Task). In Instance Details tab for the process instance, Instance State is Active. In Diagram tab for the process instance, only Start node is greyed (completed) and remaining nodes (REST Service Task, End) are not yet completed. Start the REST server built in 1. as a destination REST service. $ java -jar /path/to/rest-service-0.0.1-SNAPSHOT.jar Trigger the REST Service Task node in the process instance partially processed in 5. In Manage Process Instances page, choose the process instance partially processed in 5. In the process instance page, choose Diagram tab. Choose REST Service Task node in Process Diagram pane, and then press Trigger button in Node Actions pane. After triggering, you may need to press Refresh icon to refresh Process Diagram pane. It looks like the ExampleProcess instance will be successfully processed, but the instance state will still be Active. In Instance Details tab for the process instance, Instance State is still Active. <---------- Instance State here should be Completed. In Diagram tab for the process instance, all nodes (Start, REST Service Task, End) are greyed (completed).

    Description

      For a process definition like below,

      • Start node --> REST Service Task node (with "is Async" flag enabled) --> End node

      when we do the following steps

      1. Start a process.
      2. RuntimeException occurs in the REST Service Task node above due to the destination REST server is not running.
      3. Get rid of the problem situation by starting the destination REST server, and then trigger the REST Service Task using Trigger button.

      the process instance does not become Completed state (still be Active state) even though all the nodes in the process instance are completed. At this time, Instance State of the process instance should become Completed.

      Attachments

        Issue Links

          Activity

            People

              elguardian@gmail.com Enrique González Martínez (Inactive)
              elguardian@gmail.com Enrique González Martínez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: