Hey Sahil,
As mendix documentation states,
" It will neither change nor roll back the state of the objects that are still in memory "
That means the changes are still available in the memory but are neither change nor rolled back.
So, if you want to commit the same changes, you can create a new object and using the changed data you can just copy them and change the data.
Am i making sense?
May be I misunderstand you. But if the submicroflow change action is throwing an error it will revert back to the state before the change action. Then the error handler on the higher microflow will kick in. And there you state that you commit the Course action. So imho you will have a committed object with the state that it has prior to the submicroflow.
Regards,
Ronald