Here's my simple question:
We know that, when you have a conversation and a SMPCC, database changes normally are not flushed until the conversation is ended.
What happens in a nested conversation? Let's say we have only two levels of nesting, outer and inner.
We've got an SMPC EntityManager in the outer conversation. We then start the inner conversation with an SMPC. Some task is done within the inner conversation, and it ends.
Are the DB changes flushed when the inner conversation ends, or does it wait for the outer conversation to end also?
The DB changes are flushed when you call entityManager.flush().