<HTML><BODY>
<br>Big thanks on the answers, that was all I needed.<br>The XML solution seems to be the best for me.<div><br></div><div>Thanks for the help again.</div><div>Best Regards<br>Milen<br><br><br>




 -------- Оригинално писмо --------
<br>От: Wolfgang Laun wolfgang.laun@gmail.com
<br>Относно: Re: [rules-users] How to call Drools as a remote rules executor
<br>До: Rules Users List &lt;rules-users@lists.jboss.org&gt;
<br>Изпратено на: Понеделник, 2013, Декември 9 17:11:53 EET
<br><br>On 09/12/2013, milen igrachev &lt;<a href="javascript: internSendMess('igrachev@abv.bg')">igrachev@abv.bg</a>&gt; wrote:<br>
&gt; Hello again,<br>
&gt;<br>
&gt; I am sorry that i duplicated the question!.<br>
&gt; I have one last question and I will close my questions both in stackoverflow<br>
&gt; and here.<br>
&gt;<br>
&gt; Is my understanging correct? I have two options:<br>
&gt; 1. To have my business logic classes in my java Drools project.<br>
<br>
Certainly.<br>
<br>
&gt; 2. Find a way to generate these classes in my java Drools project.<br>
&gt; But in any case available I do need the java classes to create and feed<br>
&gt; facts to the Drools? There is no way to feed Drools with any type of<br>
&gt; structured data that defines the fact without creating the instance? (It<br>
&gt; will be my responsibility to find the way of generation.)<br>
<br>
Well, there's the DRL declare, which is one way of defining fact types<br>
to Drools.<br>
But you'd still have to create objects from these fact types and to inject the<br>
data (in the constructor). Which means that you'll have to have a way<br>
of creating these declares, and a way of getting the data into the<br>
Java app encapsulating the Drools session, and a way of instantiating<br>
the objects.<br>
<br>
As I said on stackoverflow, using XML as a gofer might be easier: it's<br>
simple on the Java side, but I don't know the other end.<br>
<br>
-W<br>
<br>
&gt;<br>
&gt; Once again Big thanks for your time, and sorry for the duplication of the<br>
&gt; question!<br>
&gt;<br>
&gt; Regards,<br>
&gt; Milen<br>
&gt;<br>
&gt; PS: About the language that I am using its really uncommon one, I seriously<br>
&gt; doubt that the name will help you. Offcourse here it is - GraphTalk.<br>
&gt;<br>
&gt; From: Wolfgang Laun <a href="javascript: internSendMess('wolfgang.laun@gmail.com')">wolfgang.laun@gmail.com</a><br>
&gt;<br>
&gt; About: Re: [rules-users] How to call Drools as a remote rules executor<br>
&gt;<br>
&gt; To: Rules Users List<br>
&gt;<br>
&gt; sent at: Monday, 2013, December 9 13:27:22 CET<br>
&gt;<br>
&gt;<br>
&gt; I've provided one possible approach on stackoverflow.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; [Not knowing what "non-Java" is doesn't help.]<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -W<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 09/12/2013, milen igrachev  <a href="javascript: internSendMess('igrachev@abv.bg')">igrachev@abv.bg</a> &gt; wrote:<br>
&gt;<br>
&gt;&gt;  Hello ,<br>
&gt;<br>
&gt;&gt;    What I want to do is use java and Drools for its nice rule engine<br>
&gt;<br>
&gt;&gt; capabilities. Currently I am not using java for my project. I have some<br>
&gt;<br>
&gt;&gt; implementation business classes and implemented logics that works fine<br>
&gt;&gt; for<br>
&gt;<br>
&gt;&gt; me, but I want to externalize the rules in BRMS. I gave Drools a try and<br>
&gt;&gt; I<br>
&gt;<br>
&gt;&gt; like it a lot. However I encounter one obsticle that I want to ask if I<br>
&gt;&gt; can<br>
&gt;<br>
&gt;&gt; skip.  I read most of the Drools documentation and across the net in all<br>
&gt;&gt; the<br>
&gt;<br>
&gt;&gt; examples that are given we actually need the implementation business<br>
&gt;&gt; classes<br>
&gt;<br>
&gt;&gt; in order to instantiate facts that we want to feed to the Drools<br>
&gt;<br>
&gt;&gt;  KieSession . Well what I want is not to duplicate my class model in both<br>
&gt;&gt; my<br>
&gt;<br>
&gt;&gt; (non java) project and my java Drools project. All I want to keep in my<br>
&gt;<br>
&gt;&gt; Drools project is the Rules themselves.  So is that possible, or I will<br>
&gt;&gt; need<br>
&gt;<br>
&gt;&gt; to duplicate the models? If anyone knows where I can read some info on<br>
&gt;&gt; that<br>
&gt;<br>
&gt;&gt; topic links are appriciated!  Technical details: I am using Drools 6.0.0<br>
&gt;&gt; in<br>
&gt;<br>
&gt;&gt; Eclipse Juno.  Big thanks for the support!  Best Regards!<br>
&gt;<br>
&gt;&gt; Milen<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt;<br>
&gt; rules-users mailing list<br>
&gt;<br>
&gt;  <a href="javascript: internSendMess('rules-users@lists.jboss.org')">rules-users@lists.jboss.org</a><br>
&gt;<br>
&gt;  <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="javascript: internSendMess('rules-users@lists.jboss.org')">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></BODY></HTML>