drools engine and android ?

866 views
Skip to first unread message

Cyrille M.

unread,
Jan 2, 2015, 4:31:22 AM1/2/15
to drools...@googlegroups.com
Hi,

I was wondering if there is a way to use drools as expert system embeded into an android app.

The best way for me would be to pre-compile a set of rule tobe triggered afterward on the app.

i've already seen the "dr-drools-android-demo" project, i've made few poc but i've been unlucky.

If you know a way to do it, that would be fantastic :)

Cyrille

Mark Proctor

unread,
Jan 2, 2015, 9:59:14 AM1/2/15
to drools...@googlegroups.com
Some people have had success, but I don’t think it works out of the box. we are working towards this for 2015:

Mark

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@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-setup/5c831887-6e23-4d2f-987c-0d04cfffff1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cyrille M.

unread,
Jan 2, 2015, 10:20:08 AM1/2/15
to drools...@googlegroups.com
Thank's Mark,
i don't think it meet my need :

i want to compile&serialise the rules with my local jvm (on a server)
then send the serialized rules to my android app to be deserialized and executed by the dalvik vm.

do you think that can be done ?

Mark Proctor

unread,
Jan 2, 2015, 1:45:02 PM1/2/15
to drools...@googlegroups.com
As I previously mentioned people have managed to get Drools runtime working on android, but not “out of the box”.

You’ll need to google, and you’ll find stuff like this:
"I forked Drools 6 and modified it to use Dex for class generation and it works on Android (using serialized packages compiled on desktop) I put an Android application sample on github

The last one claims that it all works


Mark

Cyrille M.

unread,
Jan 6, 2015, 8:38:38 AM1/6/15
to drools...@googlegroups.com
thank's again, i've already looked to the github source but the example is not working cause it's rules less :s

and i didn't manage to build a running app on android.

on a standard jvm it works just fine. but when i'm porting my dev to android it's a bit of a mess.
i'll keep looking into it.

Cyrille

Tsega Endashaw

unread,
Jan 21, 2015, 11:20:12 AM1/21/15
to drools...@googlegroups.com
hi, 
check this out it may help 
if you manage to run drools to run on android phone let me know 

Thanks 

Tsega 
Reply all
Reply to author
Forward
0 new messages