There are several ways to write the rules. This example shows one approach applying the rules on the HelloProcessModel.
These rules can easily be represented in a decision table:
http://community.jboss.org/people/bpmn2user/blog/2011/03/07/jbpm5--ruletask-example-using-an-excel-decision-table