Hello,
TLDR: Within a specific transaction, is it possible that multiple events will run concurrently, or are all events garanteed to run synchronously?
The longer version:
We are writing a behavior that will send node details to AWS Event Bridge on every edit for integration with another system. In order to handle the fact that multiple nodes may be edited within a transaction and each node may be altered several times due to folder rules and other behaviors, we are binding to EVERY_EVENT and keeping a collection of the edited nodes which is bound to the transaction with AlfrescoTransactionSupport.bindResource().
This was the example we are working off of:
https://angelborroy.wordpress.com/2015/05/22/alfresco-implementing-delete-behavior/
I originally assumed that Angel knows what he's talking about so it must be safe to use a plain old ArrayList and not worring about locking or race conditions, but I'd like to be 100% positive because it is hard to find these kind of errors in testing.
Thanks,
Chris