add constraint to the context of the RULE