Cross-process synchronization in Camunda?

社会主义新天地 提交于 2019-12-25 16:24:46

问题


What cross-process synchronization schemes should be used in the Camunda? Is it possible to implement something like CountDownLatch where the synchronization is being used between different bpm processes? It seems that because of the correlation messages are always synchronous, I can't put a receive task/intermediate catch event in a latch process definition so that latch client processes would correlate on the task/event when they want to join the latch synchronization block (if I try, concurrent transactions on the same objects appear, resulting in OptimisticLockingExceptions).

EDIT

Use case: I have a credit issuance process which could participate in a credit group, which in it's turn means that after certain task in the model each process from the group could proceed only after every other member from the same group is also finished that certain task. My current solution is to run a dedicated process per group which has a schedule to check every minute if all group members (processes) are in a certain intermediate catch event. If so, the group process sends the event to group members, so everyone can proceed then.

来源:https://stackoverflow.com/questions/30864943/cross-process-synchronization-in-camunda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!