If the barfi is sticky and not setting, it is because it wasn't cooked enough. Transfer it back to the wok/pan and continue cooking till the moisture is absorbed. If it is crumbly, add a few tablespoons of milk and cook till the mixture has softened and binds together easily.