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