Executing multiple flows in parallel in a process

Certified Senior Developer

What happens when two flows execute simultaneously in a Process Model (the second path gets kicked off by a Rule Event), and both try to update different fields in the same CDT at the potentially the same time? The order they execute in would be non-deterministic. Is it possible that the entire CDT may revert the changes from one of the paths when the other completes? We saw this happen in rare instances in the process history, and it appears to be the result of a race condition with these two writes. (Unfortunately, Process History doesn't go down to the millisecond, or even second, level of granularity, so it is hard to tell how close the calls actually were - just that they were within the same minute)....

OriginalPostID-87428

OriginalPostID-87428

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    We have multiple quicktask flows and process flows that can happen simultaneously, and all update fields in the same main CDT. In this instance, I can prevent it by having the event rule trigger after the first update, but I'm concerned that we may have other similar conditions where parallel flows update the same CDT (but different fields in the CDT). We have not seen any issues with this prior to upgrading to Appian 7.2, has any behavior changed in the product that could affect this?
Reply
  • 0
    Certified Senior Developer
    We have multiple quicktask flows and process flows that can happen simultaneously, and all update fields in the same main CDT. In this instance, I can prevent it by having the event rule trigger after the first update, but I'm concerned that we may have other similar conditions where parallel flows update the same CDT (but different fields in the CDT). We have not seen any issues with this prior to upgrading to Appian 7.2, has any behavior changed in the product that could affect this?
Children
No Data