ADVANCED ERROR HANDLING - Justification required

0
Hi All, Need some explanation for the below scenario and justification for the right option . Can't get my head around it. Appreciate the help.
asked
3 answers
1

My gut feeling is that since the main flow is with rollback it does not matter what the sublow does because the whole flow (including the subflow) will be rolled back. But I would have to make a testcase to verify it.

Regards,

Ronald

 

answered
2

There is quite extensive documentation in the Mendix HowTo - Set Up Error Handling section.

According to that, if error handling is set to rollback, everything up to that point will be rolled back.

regards, Fabian

EDIT: creating logging data can be problematic indeed. Any exception happening afterwards may rollback your error data. I'd suggest to use standard Logging instead.

answered
1

IMHO:

Had the OrderLine object in the subflow been some independent object, it would have been committed. 

But the OrderLine is associated to the Order that is being rolled back, hence the OrderLine is rolled back too. 


It is a scenario that indicates why you should be very careful with these mixed error handling scenarios. 

answered