<br><font size=2 face="sans-serif">Can anyone explain/example how to use
changeset.xls to integrate with the rules I have written in Guvnor.Need
to use Drools API for Integrating rules with java application</font>
<br>
<br>
<br><font size=2 face="sans-serif">At present am using the below code</font>
<br>
<br><font size=2 face="Courier New">Properties properties = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
Properties();</font>
<br><font size=2 face="Courier New">
InputStream
stream = rulesServlet.</font><font size=2 color=#820040 face="Courier New"><b>class</b></font><font size=2 face="Courier New">.getResourceAsStream
(</font><font size=2 color=#4200ff face="Courier New">"/com/opensource/rules.properties"</font><font size=2 face="Courier New">);</font>
<br><font size=2 face="Courier New">
properties.load(stream);</font>
<br><font size=2 face="Courier New">
RuleAgent
agent = RuleAgent.<i>newRuleAgent</i>(properties);</font>
<br><font size=2 face="Courier New">
RuleBase
base = agent.getRuleBase();</font>
<br><font size=2 face="Courier New">
FactType
customer = base.getFactType(</font><font size=2 color=#4200ff face="Courier New">"myPackage.Customer"</font><font size=2 face="Courier New">);</font>
<br><font size=2 face="Courier New">
Object
cust1 = customer.newInstance();</font>
<br><font size=2 face="Courier New">
customer.set(cust1,
</font><font size=2 color=#4200ff face="Courier New">"totalIntemsPrice"</font><font size=2 face="Courier New">,
price);</font>
<br><font size=2 face="Courier New">
base.newStatelessSession().execute(cust1);</font>
<br><font size=2 face="Courier New">
System.</font><font size=2 color=#0021bf face="Courier New"><i>out</i></font><font size=2 face="Courier New">.println(</font><font size=2 color=#4200ff face="Courier New">"Discount
is a "</font><font size=2 face="Courier New">+ customer.get(cust1,
</font><font size=2 color=#4200ff face="Courier New">"discount"</font><font size=2 face="Courier New">));</font>
<br>
<br><font size=2 face="Courier New">The documentation is not pretty clear.</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Nilima<br>
____________________________________________<br>
Experience certainty. IT Services<br>
Business Solutions<br>
Outsourcing<br>
____________________________________________</font><pre>=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
</pre>