use the rule.id to choose rule to execute