To use a rule constraint in a gateway you must think in LHS of a drools rule, i.e, the constraint is a drools condition, an example:
There is a class "Person" with a attribute "age", and we would like know if a person is majority, then...
-> First Constraint
Person(age >= 18)
-> Second Constraint
Person(age < 18)
Excuse my english.