HandleObjectComponent - Insert Process task

Hello,

I'm creating a process that inserts AccProductGroup of a given AccProduct therefore I created a process task HandleObjectComponent - Insert but my problem is I would like to know if I can exit the process if the AccProductGroup exists in the database and return his UID_AccProductGroup.

Thank you