Business Rule in Camunda?

2,767 views
Skip to first unread message

Thong Huynh Trung

unread,
Jun 3, 2013, 3:26:42 AM6/3/13
to camunda-...@googlegroups.com
Hi,

How do you handle Business Rule in Camunda? By business rule, I mean stuff like Drools Guvnor (http://www.jboss.org/drools/drools-guvnor.html) which allows you to separate business rules from the process application. 

Thanks
Thong Huynh

Bernd Rücker (camunda)

unread,
Jun 3, 2013, 3:38:23 AM6/3/13
to Thong Huynh Trung, camunda-...@googlegroups.com

Hi Thong.

 

I personally believe strongly in a best-of-breed approach. Meaning Business Rules are best handled by a Business Rules Management System (BRMS) – e.g. Drools. So best is to hook in Drools when you need it within the process application – as stateless service (from a SOA point of view I think it should even does not matter if you call the rule engine from within a process or from any service in your system).

 

So we normally leverage the BPMN 2.0 Business Rule Task (http://docs.camunda.org/api-references/bpmn20/#!/tasks/business-rule-task) to hook in logic to call the BRMS. On the Business Rule Task you can add any Java logic to make that integration. For Drools it is actually pretty straight forward, we have two examples showing this: https://github.com/camunda/camunda-bpm-examples/tree/master/order-confirmation-rules & https://github.com/camunda/camunda-bpm-examples/tree/master/twitter-drools. In both cases we used the plain drools rule engine and created the rule base within the application. This could be done more sophisticated in a real application or you can simply connect to Guvnor. It is just a few lines of code which you get on the drools docs. This works pretty well in our various real-life-projects with Drools…

 

Hope that helps?

 

Cheers

Bernd

Evangelist & Consultant

www.camunda.org/community/team.html

--
You received this message because you are subscribed to the Google Groups "camunda BPM users & process application developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
 
 

Thong Huynh Trung

unread,
Jun 3, 2013, 3:47:54 AM6/3/13
to camunda-...@googlegroups.com
It really does! Thank you

venkataraju...@gmail.com

unread,
Feb 17, 2016, 6:41:18 AM2/17/16
to camunda BPM users, thong....@gmail.com
Hi,
Am working on a POC with droools and stop by here for reference. Seems the links provided are not available now, 
Would be a great help if you could provide me the links modified.

Thanks & Regards,
VenkataRaju Nandam

Sebastian Menski

unread,
Feb 17, 2016, 10:00:09 AM2/17/16
to camunda BPM users, thong....@gmail.com

Bernd Rücker

unread,
Feb 17, 2016, 12:59:51 PM2/17/16
to camunda-...@googlegroups.com, thong....@gmail.com

Hi Thong.

 

Wow – you had a serious delay in your evaluation ;-) Did you see that we introduced DMN decision tables with the latest release in Camunda? So you might not even need drools any more?

 

Cheers

Bernd

--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.


To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.

Thong Huynh Trung

unread,
Feb 17, 2016, 8:51:13 PM2/17/16
to Bernd Rücker, camunda-...@googlegroups.com
Hi Bernd,

Thanks for your email but this is a very old thread isn't it? Looking at the date when I raised this question, it was June 2013! 

I know that Camunda now has DMN so this question should be no more relevant. 

Thanks anyway,
Thong
--
Thong Huynh 
Couture Consulting (Vietnam)  
10 Pho Quang Street, 2nd Ward
Tan Binh District, #B909 
Ho Chi Minh city, Vietnam 

  
+84 942 647 754 (mobile)  

venkataraju...@gmail.com

unread,
Feb 18, 2016, 1:35:07 AM2/18/16
to camunda BPM users, thong....@gmail.com
Hi Sebastian,
Thanks for sharing me the active links for Rules Engine workout.
Also thanks for Bernd for suggestion on DMN tables and Thong.

Thanks & Regards,
VenaktaRaju Nandam
Reply all
Reply to author
Forward
0 new messages