In memory process are the one that doesn't have a wait state/safe point in them. When that happens (when no async task is included) the process will only run in memory without persisting their state. That's because they can run from the beginning to the end without waiting for an external actor or system to interact with them.
When you use H2 (in memory database), the processes will be persisted as if you were using a common DB.
Greetings.