Domain process info is a domain-process synchronization object, that contains information about current and historical process executions for given domain entity.
For every domain object there is at most 1 DomainProcessInfo - its ID = DOMAIN_ENTITY_TYPE#DOMAIN_ENTITY_ID.
The entity is update using explicit DB locking during the execution of business process.
For every process and subprocess, an entry in the
stageFlags will be created, with process Id being the key. The stage flag is update on process start and end, or in case of error.