you can use rules in gateway conditions just to make sure that the rule evaluates to boolean value, for instance
<conditionExpression xsi:type="tFormalExpression" language="http://www.jboss.org/drools/rule" >org.jbpm.bpmn2.ScannerChangeSetTest.Message( message matches 'AND' )</conditionExpression>
HTH