using rest in a constraint

I tried to use rest connector and RestClient in the contract constraints , but the editor kept lagging and eventually I couldn’t start bonita at all. Could you tell me is this even possible to do or is there another way I could do server side validation of my data?
Regards,
Magdalina Civovic