JRules 7.0 to Drools 6.2 Migration

1,366 views
Skip to first unread message

Amlanjyoti Goswami

unread,
Aug 17, 2015, 10:50:02 PM8/17/15
to Drools Usage
Hi,

Can someone please share your idea on the following..?

1. What is the best possible way to migrate rules from ILOG JRules 7.0 to Drools 6.2? Please share some examples.
    We have about 5000 rules in JRules written using action rules and decision tables. 

2. Is there a way to create user-defined / custom functions / methods and use them in rules directly?

Thanks and regards,
Amlan

Mark Proctor

unread,
Aug 17, 2015, 10:52:52 PM8/17/15
to drools...@googlegroups.com
On 18 Aug 2015, at 03:50, Amlanjyoti Goswami <ajgo...@gmail.com> wrote:

Hi,

Can someone please share your idea on the following..?

1. What is the best possible way to migrate rules from ILOG JRules 7.0 to Drools 6.2? Please share some examples.
    We have about 5000 rules in JRules written using action rules and decision tables. 
This is a complex topic, I’d be surprised if anyone gives a meaning answer to such a broad question. I’d suggest that maybe you contact a consulting company for help - I know that Red Hat consulting have extensive experience in JRules migrations.


2. Is there a way to create user-defined / custom functions / methods and use them in rules directly?
Yes, you can use any static java method - just import it. You can also declare functions locally to the DRL file too.

Thanks and regards,
Amlan


--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/90512bc3-667d-47d3-8c8b-483be102e7eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hari prasad

unread,
Aug 22, 2015, 2:33:44 PM8/22/15
to Drools Usage
I have worked extensively or jRules/ODM and have begun to work with Drools. AFAIK, To begin the answer with, 
1. Re-Write the rules.
 - The difference of rule engine/compiler and architecture leaves it only with re-writing the rules.
2. No. Right from the approach of storing the rules, packaging everything is different between jRules and Drools.

Regards,
Hari

jco

unread,
Aug 27, 2015, 1:31:41 PM8/27/15
to Drools Usage
Amlan et al:

Contrary to "normal" advice, you CAN convert "standard" IRL (ILog Rule Language) rule text files to DRL (Drools Rule Language) rule text files using awk (or some other) natural-language parser.  IFF the rules are all simple IF-THEN-ELSE rules, meaning nothing really special.  Usually any Java methods will import as well but that would take a bit more work.  awk will take one text file and convert the whole thing to another text file. 

Find a Unix (NOT Linux) guru in your company and, hopefully, he can remember enough about awk to write the script.  If not, there is still an excellent book availble on awk by Aho, Wienberger and Kernighan (the original inventors of awk) at Amazon.  In addition there are several more recent books on awk available from O'Reilly books - also available at Amazon. 

jco

Davide Sottara

unread,
Aug 27, 2015, 1:55:32 PM8/27/15
to drools...@googlegroups.com
Despite the existence of several rule interchange formats...
I agree that going through a "lingua franca" may be lossy, but maybe the rule base lives within that intersection of functionalities that would make it feasible, possibly with some manual adjustment. 
ILog once claimed RIF-PRD support, would that be still an option? Others?

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

jco

unread,
Sep 4, 2015, 12:12:48 PM9/4/15
to Drools Usage
Greetings:

JBoss just sent out an email with this link to a Guide to Converting from ILOG to JBoss Rules, aka Drools.

http://www.redhat.com/en/files/resources/en-rhjb-ilog-jboss-brms-migration-guide-6677477.pdf

I have no idea as to how help it might be but there it is.  Enjoy.


On Monday, August 17, 2015 at 9:50:02 PM UTC-5, Amlanjyoti Goswami wrote:

agrim khanna

unread,
Sep 28, 2016, 1:08:34 AM9/28/16
to Drools Usage
Hey Amlan, 

I am facing a very similar problem. I have about 5000 rules of all forms (flows, action rules and decision tables).

I just wanted to ask what approach did you adopt while migrating from JRules 7.0 to Drools 6.2. Were you able to find any automatic tools ? or did you do code all the rules manually ? 

Warm Regards,
Agrim Khanna

Amlanjyoti Goswami

unread,
Sep 28, 2016, 6:25:15 AM9/28/16
to drools...@googlegroups.com

Hello Agrim,

We are yet to go through that exercise. We are still in ILOG JRules.

I am still in dark about it.

Thanks,
Amlan


--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/NzzMRvAQILk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Mark Proctor

unread,
Sep 28, 2016, 6:45:28 AM9/28/16
to drools...@googlegroups.com
Automated tools have been developed, but none are yet public - those companies have kept them in house.

You can build an IRL grammar with Antlr 4 and then do a source to source (IRL to DRL) translation. You do need to have some knowledge of IRL and DRL, but they are fairly similar and this should not be hard.

Mark
-- 

You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages