<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/jruleengine/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/jruleengine/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 05 Jul 2019 13:18:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jruleengine/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>catch(Throwable ex) should be replaced by catch(Exception ex)</title><link>https://sourceforge.net/p/jruleengine/discussion/572323/thread/ae8daba495/?limit=25#5ca1</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;"&lt;strong&gt;&lt;em&gt;catch(Throwable ex)&lt;/em&gt;&lt;/strong&gt;" in some places in &lt;em&gt;StatefulRuleSessionImpl.java&lt;/em&gt; class should be replaced with "&lt;strong&gt;&lt;em&gt;catch(Exception ex)&lt;/em&gt;&lt;/strong&gt;", since Throwable is the superclass of all exceptions and errors&lt;/p&gt;
&lt;p&gt;You can use it in a catch clause, but you should never do it!&lt;/p&gt;
&lt;p&gt;If you use &lt;em&gt;Throwable&lt;/em&gt; in a catch clause, it will not only catch all exceptions; it will also catch all errors. Errors are thrown by the JVM to indicate serious problems that are not intended to be handled by an application. Typical examples for that are the &lt;em&gt;OutOfMemoryError&lt;/em&gt; or the &lt;em&gt;StackOverflowError&lt;/em&gt;. Both are caused by situations that are outside of the control of the application and can’t be handled.&lt;/p&gt;
&lt;p&gt;So, better don’t catch a Throwable unless you’re absolutely sure that you’re in an exceptional situation in which you’re able or required to handle an error.&lt;/p&gt;
&lt;p&gt;So if possible, can it be changed to "&lt;strong&gt;&lt;em&gt;catch(Exception ex)&lt;/em&gt;&lt;/strong&gt;" in &lt;em&gt;StatefulRuleSessionImpl&lt;/em&gt; class.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Pratik Pande&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pratik Pande</dc:creator><pubDate>Fri, 05 Jul 2019 13:18:44 -0000</pubDate><guid>https://sourceforge.net75ef9cf87bf23551cebdd1381cce558aa76cc8bd</guid></item><item><title>Can &lt;if&gt; tag return a boolean value</title><link>https://sourceforge.net/p/jruleengine/discussion/572323/thread/ab49b794c9/?limit=25#c4d2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Will it be possible to add “arg” attributes in &amp;lt;if&amp;gt; tag and then have the method in “leftTerm” be called on those arguments and then the result of that be compared with “righTerm” value. And then the by comparing “leftTerm” with “rightTerm”, return a Boolean “true” or “false” value?&amp;lt;/if&amp;gt;&lt;/p&gt;

&amp;lt;rule-execution-set&amp;gt;
   &amp;lt;name&amp;gt;RuleExecutionSet1&amp;lt;/name&amp;gt;
   &amp;lt;description&amp;gt;Rule Execution Set&amp;lt;/description&amp;gt;

&lt;p&gt;&amp;lt;synonymn name="prop" class="org.jruleengine.Clause"&amp;gt;&amp;lt;/synonymn&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;rule name="Rule1" description="if :X is human then :X is mortal"&amp;gt;&lt;br/&gt;
                    &amp;lt;if leftterm=":X" rightterm="is human" op="="&amp;gt;  &lt;br/&gt;
                    &amp;lt;if leftterm=":X" arg2="”def”" op="=" rightterm="is human" arg1="”abc”"&amp;gt;  &amp;lt;!—New Requested Feature --&amp;gt;&lt;br/&gt;
                    &amp;lt;then arg1=":X" arg2="is mortal" method="prop.setClause"&amp;gt;&lt;br/&gt;
   &amp;lt;/then&amp;gt;&amp;lt;/if&amp;gt;&amp;lt;/if&amp;gt;&amp;lt;/rule&amp;gt;&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;Please suggest any other way this can be achieved using JRuleEngine project.&lt;/p&gt;&amp;lt;/rule-execution-set&amp;gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pratik Pande</dc:creator><pubDate>Fri, 05 Jul 2019 13:12:49 -0000</pubDate><guid>https://sourceforge.netdc3354670cac35c29089cc83ee805b93345d854d</guid></item><item><title>android application</title><link>https://sourceforge.net/p/jruleengine/discussion/572323/thread/44449613/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I try to create an android application using JRuleEngine and android  studio, but I couldn´t ride it in the program.&lt;br/&gt;
if you know if I have to do anything special to connect me would be helpful.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">leandro</dc:creator><pubDate>Wed, 06 Jul 2016 16:09:54 -0000</pubDate><guid>https://sourceforge.net0ca2c99c5fc950adea7f682a40a9585f3d34b556</guid></item><item><title>Not able to run examples</title><link>https://sourceforge.net/p/jruleengine/discussion/572323/thread/c4d25ecc/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have the same problem. Any idea how to fix this?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">inf12</dc:creator><pubDate>Wed, 18 Feb 2015 13:55:07 -0000</pubDate><guid>https://sourceforge.net2f90d45afd54ab664db8cdfe026a03339781cfae</guid></item></channel></rss>