I may be being a little slow to grasp this idea but would someone be able to explain the use case for reentrant locks in rules? Looking at the documentation it only states that you would use locks when a rule is triggered by UI, and I know that’s not the only use case, but I’m just struggling to grasp the best use case for these.
I looked at java documentation and I get the idea of what they are, just not sure how to apply them to the rules I’m writing. Pointers are appreciated.
The linked post below explains locks in full length. However, the question you should ask yourself is do you really need one?
Also a little further down in the linked thread: tl;dr, don’t use locks unless you really know what you are doing, and even then don’t use them. There is almost always a better way.