Hi Bharath,
I think you should create an LCA in the beforeSave hook to do the validations (same validations as you would do in DVF) and create the entity using DCR API if validation errors are found
We also have a potentialMatchesFound hook that may be used to build LCA to initiate DCR when multiple matches are found.
Thanks,
------------------------------
Saurabh Agarwal
------------------------------
Original Message:
Sent: 07-25-2024 10:38
From: Bharath Kuppireddy
Subject: LCA workflow guidance on entities failing validation
I need some guidance around how to setup workflow using LCA .
My requirement is that any entities failing validation or have multiple matches should not show up in hub or on the external queue as my downstream cannot consume half baked data and that would break our front ends further downstream.
I am looking for an option on this condition :If there are any failures in DVF or multiple matches I would like that entity to be sent inbox using work flow for review and this entity should not be uploaded to hub.
------------------------------
Bharath Kuppireddy
Bayer
------------------------------