[jboss-user] [jBPM] - Re: Invoking rules

Kris Verlaenen do-not-reply at jboss.com
Sun Jan 16 01:00:27 EST 2011


Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion

"Re: Invoking rules"

To view the discussion, visit: http://community.jboss.org/message/580996#580996

--------------------------------------------------------------
In jBPM5, use a rule task and give your set of rules a name (i.e. ruleflow groupattribute).
Next, use Drools to define your rules and add these rules to the group you selected (using ruleflow-group attribute).
Your rules should now be executed when you reach that node.

Example can be found here:
 https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-RuleTask.bpmn2 https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-RuleTask.bpmn2
 https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-RuleTask.drl https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-RuleTask.drl
 https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/java/org/jbpm/bpmn2/SimpleBPMNProcessTest.java https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/java/org/jbpm/bpmn2/SimpleBPMNProcessTest.java (method testRuleTask())

Kris
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/580996#580996]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110116/f990717c/attachment.html 


More information about the jboss-user mailing list