Re: [rules-users] Drools and serialize

2011-07-13 Thread clement.pernot
Sorry, I am new to java/drools. I have less than 1year practice. I know that my code it's bad, but my goal is to understand how it's work, then I can make some good stuff. I realise some improvement in this moment. (I have suppress the line that you are talking ;) ) Thank you for all tip. Serial

Re: [rules-users] Drools and serialize

2011-07-12 Thread clement.pernot
Thank you for all your tips. I think I have found the solution. (the project run) Now for test that, I try to make a project who can un-serialize this. There it is: package com.sample; import java.io.FileOutputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.i

Re: [rules-users] Drools and serialize

2011-07-12 Thread clement.pernot
I have try what you say. This didn't work. here is my full code: package com.sample; import java.io.ByteArrayOutputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import org.drools.KnowledgeBase; import org.drools.KnowledgeBaseFactory; import org.drools.builder.KnowledgeB

Re: [rules-users] Drools and serialize

2011-07-12 Thread clement.pernot
Thank you for the hint, I will try that. I don't know how to do this for the moment, but I will found. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-and-serialize-tp3161882p3161977.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

[rules-users] Drools and serialize

2011-07-12 Thread clement.pernot
Hi, I want to serialize a StatefulKnowledgeSession in drools (which have rule and fact) Actually i know how to serialize a KnowledgeBase. Here is my code for serialize a KnowledgeBase: KnowledgeBuilder kBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kBui

[rules-users] OWL and drools expert

2011-06-05 Thread clement.pernot
Hi, I want to use drools expert with OWL files and embedded this with a program. Is it possible? If yes, how it's possible? I have search and didn't find something, if someone can help, I will be grateful. I know that EulerGUI take OWL files and can compile with drools expert, but I want to embed

Re: [rules-users] How to run one example of drools in eclipse?

2011-05-18 Thread clement.pernot
Thank you. With the drools-distribution-5.3.0-SNAPSHOT.zip, i can run the project. I don't understand why my first project, (download at http://download.jboss.org/drools/release/5.1.1.34858.FINAL/drools-5.1.1-examples.zip) didn't work, but with your help, i have a project which work, thank you :)

[rules-users] How to run one example of drools in eclipse?

2011-05-12 Thread clement.pernot
hi, I have download: "Drools Examples" on http://www.jboss.org/drools/downloads I use eclipse in order to build. I have follow this: https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/README.md in order to configure eclipse. I don't know what i must do. After one build i got th