[Flow] Question regarding deleted objects

David Sporer david.sporer at gmail.com
Thu Apr 2 12:25:08 CEST 2015


Hey guys,

I have a general questions regarding the optimal way of handling objects, especially deleted objects.
I have customers/users that can create objects. Every object has a unique link which is working fine until the customer decides to delete some objects.
The problem then is that Flow throws an exception (Exception while property mapping for target type „bla“, at path with identitiy not found). Currently I’m showing a nice error page, means the user that tries to open the link is not redirected to the Flow Exception page.
But the ideal way would be to know the parent customer of the deleted object because I could then redirect the user that tries to access the object to a page where he can send a message to the customer e.g.
Soft deletion is not really something I want to do because in some cases there could be really lots of objects associated with the objects that are deleted.

What would be your approach of handling this? Just a (maybe stupid) idea would be to save the identifier of the object before deleting it and doing a lookup for the identifier if a object is not found. Question in this case would be how to hook into the Exception that is thrown.

Can you help me? :-)

Regards,
David

Btw.: I’ve been at Inspiring Conference last weekend. Thanks for everyone making this such an awesome event. I’ve been really working my whole week of vacation so far on ideas I had because of the talks :-)


More information about the Flow mailing list