0

Can some one provide me an working example for jbpm business rule task ? I tried creating one via jbpm work bench and executed via jbpmn eclipse plugin. It seems buiness process and rule task are not able to sync each other . Some times rule gets invoked, sometimes not.

Sekhar
  • 961
  • 5
  • 15
  • 27

2 Answers2

3

You should take a look at this blog: JBPM6 - RuleTask Example Using a Rule File

The key is to make sure your Rule Flow Group in the Bussiness task matches the Rule Flow Group in the .drl file (from article in above link):

  1. Business Rule Task: enter image description here
  2. Business Rule: enter image description here
Grady G Cooper
  • 1,044
  • 8
  • 19
1

On the top of that, I'd make sure that your Drools Rule and the jBPM process are stored in the same folder. There's a sample project here which demonstrates the usage: Drools Rules with jBPM

Francesco Marchioni
  • 4,091
  • 1
  • 25
  • 40