Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1796

Triggering a node after cancelling a node instance is not working with persistence enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 0.14.0
    • 0.9.0
    • Core Engine
    • None
    • Hide

      1.- Checkout process-quarkus-example or process-springboot-example
      2.- Run the tests with persistence:

      mvn clean package -Ppersistence
      

      There will be an failing test called: PersonsRestTest.testChildPersonsRestCancelAndTriggerNodeViaMgmtInterface.
      Expected: no failures. (More info in description).

      Show
      1.- Checkout process-quarkus-example or process-springboot-example 2.- Run the tests with persistence: mvn clean package -Ppersistence There will be an failing test called: PersonsRestTest.testChildPersonsRestCancelAndTriggerNodeViaMgmtInterface. Expected: no failures. (More info in description).
    • 2020 Week 16-18 (from Apr 13), 2020 Week 19-21 (from May 4), 2020 Week 22-24 (from May 25), 2020 Week 25-27 (from Jun 15), 2020 Week 28-30 (from Jul 6), 2020 Week 31-33 (from Jul 27)

    Description

      See steps to reproduce the issue.
      This is only happening when the persistence is enabled. Basically, when we start, cancel a node instance and trigger a new one, we're doing this atm:

      1.- Start node instance
      – Internally, the data store is updated
      2.- Cancel node instance
      – Internally, the data store is updated
      3.- Trigger node instance

      We should update the data store as done in the steps 1 and 2 here, at the moment this is not being done. Without persistence, this is working because we update directly the instances in memory.

      Possible solution:

      I tried to move this line to be done at the end of the triggerNode method and this change made the test worked when persistence and without persistence. However, I'm not sure if this is the valid solution.

      Attachments

        Issue Links

          Activity

            People

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: