JBoss Community

Re: [jBPM5.1] How to use drools rule in constraints of a gateway

created by Diorbert Pereira in jBPM Development - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community