Add realState member to make the difference between the submitted state by the caller and the actual state of the process.