Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7469

Compensation is performed in wrong order

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.7.0, 7.7.0-alpha2
    • Component/s: engine
    • Labels:
      None

      Description

      The docs and BPMN spec say that compensation should be performed in the reverse of the order that the activities were executed. We perform this ordering based on the timestamp when the compensation event subscription was created. However, we order in forward order instead of reverse order.

      1. CamundaBPMN.JPG
        35 kB
      2. CamundaLog.JPG
        85 kB
      3. screenshot-1.png
        30 kB

        Activity

        Hide
        svetlana.dorokhova Svetlana Dorokhova added a comment -

        Thorben Lindhauer, what is our objective here? Is only this "reverse order" in scope of the ticket? We don't try to resolve "same timestamps" problem for now (CAM-7461). Right?

        Show
        svetlana.dorokhova Svetlana Dorokhova added a comment - Thorben Lindhauer , what is our objective here? Is only this "reverse order" in scope of the ticket? We don't try to resolve "same timestamps" problem for now ( CAM-7461 ). Right?
        Hide
        thorben.lindhauer Thorben Lindhauer added a comment -

        Yes, I would say so. The timestamp issue is a separate problem and as far as I know has not been reported by users, so I assume it is not so pressing.

        Show
        thorben.lindhauer Thorben Lindhauer added a comment - Yes, I would say so. The timestamp issue is a separate problem and as far as I know has not been reported by users, so I assume it is not so pressing.
        Hide
        fernando.avellar Fernando Octávio de Avellar Jr. added a comment -

        Hi Thorben and Svetlana, good news !

        • How can I download this new camunda version (7.7.7) in order to verify if my scenario will work now?
        • What about the official release? Do you have a date to release?

        Best Regards / Fernando Avellar

        Show
        fernando.avellar Fernando Octávio de Avellar Jr. added a comment - Hi Thorben and Svetlana, good news ! How can I download this new camunda version (7.7.7) in order to verify if my scenario will work now? What about the official release? Do you have a date to release? Best Regards / Fernando Avellar
        Hide
        svetlana.dorokhova Svetlana Dorokhova added a comment -

        Hi Fernando Octávio de Avellar Jr.,
        we are still cleaning up the code, but it must work already.

        Best regards,
        Svetlana

        Show
        svetlana.dorokhova Svetlana Dorokhova added a comment - Hi Fernando Octávio de Avellar Jr. , we are still cleaning up the code, but it must work already. You can try the SNAPSHOT version if you want: https://app.camunda.com/nexus/content/repositories/camunda-bpm-snapshots As for the planned release dates, unfortunately I'm not aware of this. Best regards, Svetlana
        Hide
        thorben.lindhauer Thorben Lindhauer added a comment -

        Following up on that: camunda 7.7.0 is due for end of May. We will release alphas before that, and if you are a Camunda customer you can request a patch release via our support.

        Show
        thorben.lindhauer Thorben Lindhauer added a comment - Following up on that: camunda 7.7.0 is due for end of May. We will release alphas before that, and if you are a Camunda customer you can request a patch release via our support.
        Hide
        fernando.avellar Fernando Octávio de Avellar Jr. added a comment -

        Hi Svetlana,

        I have included this repository in my pom.xml file and now I´m using camunda-bom-7.7.0-SNAPSHOT to run my simple test program but after deploy it I´m facing the same issue, Rollback compensation activity is still running in incorrect order (Activity A and then B, instead of B then A).

        I have uploaded the code in my GitHub and I´ll appreciate a lot if you could take a look and let me know if I made some mistake:
        https://github.com/FernandoAvellar/CamundaCompensationTest

        Best Regards,

        Fernando Avellar

        Show
        fernando.avellar Fernando Octávio de Avellar Jr. added a comment - Hi Svetlana, I have included this repository in my pom.xml file and now I´m using camunda-bom-7.7.0-SNAPSHOT to run my simple test program but after deploy it I´m facing the same issue, Rollback compensation activity is still running in incorrect order (Activity A and then B, instead of B then A). I have uploaded the code in my GitHub and I´ll appreciate a lot if you could take a look and let me know if I made some mistake: https://github.com/FernandoAvellar/CamundaCompensationTest Best Regards, Fernando Avellar
        Hide
        thorben.lindhauer Thorben Lindhauer added a comment -

        Did you update the distribution you deploy the process application to to 7.7.0-SNAPSHOT as well?

        Show
        thorben.lindhauer Thorben Lindhauer added a comment - Did you update the distribution you deploy the process application to to 7.7.0-SNAPSHOT as well?
        Hide
        fernando.avellar Fernando Octávio de Avellar Jr. added a comment -

        Hi Thorben, If you are talking about bpm-tomcat 7.7.0-SNAPSHOT version, no, I have just update the process application and deploy it in old bpm-tomcat-7.5.0 server. I´m downloading the new one here now and let you know the result.

        Show
        fernando.avellar Fernando Octávio de Avellar Jr. added a comment - Hi Thorben, If you are talking about bpm-tomcat 7.7.0-SNAPSHOT version, no, I have just update the process application and deploy it in old bpm-tomcat-7.5.0 server. I´m downloading the new one here now and let you know the result.
        Hide
        fernando.avellar Fernando Octávio de Avellar Jr. added a comment -

        Hi Thorben and Svetlana!

        Now works great here! I have removed the timer inside each activity in order to validate the timestamp issue and there was not any problem, is everything working correctly!

        Thanks very much by your support!

        PS: Now I´ll check inside my company how to get this patch release with Camunda support.

        Show
        fernando.avellar Fernando Octávio de Avellar Jr. added a comment - Hi Thorben and Svetlana! Now works great here! I have removed the timer inside each activity in order to validate the timestamp issue and there was not any problem, is everything working correctly! Thanks very much by your support! PS: Now I´ll check inside my company how to get this patch release with Camunda support.

          People

          • Assignee:
            thorben.lindhauer Thorben Lindhauer
            Reporter:
            thorben.lindhauer Thorben Lindhauer
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: