Are you using the JPAKnowledgeService? <br><br><div class="gmail_quote">2011/5/26 Shannon Hastings <span dir="ltr">&lt;<a href="mailto:shannon.hastings@inventrio.com">shannon.hastings@inventrio.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">It is actually null.  I dont pass any config in when constructing the session.<div><div></div><div class="h5"><div><br></div><div><br><div><div>On May 26, 2011, at 11:13 AM, Mauricio Salatino wrote:</div>
<br><blockquote type="cite">Can you share the ksession configuration?<br><br><br><div class="gmail_quote">2011/5/26 Shannon Hastings <span dir="ltr">&lt;<a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">My session is persistent, i can query the sessioninfo in the DB and see the data.  My beans are searializable and I can see that the fact has been deserialized.  <div>

<div></div><div><div><br></div><div><br><div><div>On May 26, 2011, at 11:05 AM, Mauricio Salatino wrote:</div><br><blockquote type="cite">Ok, assuming that your session is persistent, are your POJOs serializables?<br>
Cheers<br><br><div class="gmail_quote">2011/5/26 Shannon Hastings <span dir="ltr">&lt;<a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Nope, no change, i am pulling the same drl from guvnor every time.  It only has three rules as show below in the thread. I can restore the session without error so long as the session does not have any facts in it.  Once I drop a fact in and store, then i cannot restore.<div>


<div></div><div><div><br></div><div><br><div><div>On May 26, 2011, at 10:55 AM, Mauricio Salatino wrote:</div><br><blockquote type="cite">Ok, so did you check that you didn&#39;t change anything from the moment you store the ksession and the moment when you restore it?<br>


I usually find this problem when you change a rule and try to restore the session using the new version of the rule or when you change a business process definition or the session state from different threads. Can you check that please?<br>



You will find this unmarshalling problems and it will be very difficult to debug at that level, when the problem is being caused by some modification on your code. Greetings<br><br><div class="gmail_quote">2011/5/26 Shannon Hastings <span dir="ltr">&lt;<a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a>&gt;</span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I have debugged into this and found this issue.  The NPE comes when the session unmarsheller runs into a node that does not have a sink or the sink is null. In the debugger i can see the fact and the fact looks right, has all the data from the pojo i sent in. However, it does not have a sink, but it does have a node id.  This looks like a bug that was reportedly fixed before in 5.1.  I dont know enough about the storing of the facts in the working memory or the model that is being used under the hood, however, all i have to do to create the problem is create a session, send an object to it, and then try to restore it.  And the objects i am sending to it are simple pojo&#39;s and in the debugger I can see that it was able to read them back out just fine.  Below is an exerpt from the &quot;InputMarshaller&quot; class.  In the debugger The readlefttuples operation shows the nodeId = 12 and the sink  = null and the facthandleId = 1.  he it calls readLeftTuple() and the obvious NPE will be thrown because the ParentLeftTuple has a null sink and when you call &quot;sink.getType()&quot; you get the NPE.  Is this a known bug.<div>



<br></div><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">  <span style="color:#911d67">public</span> <span style="color:#911d67">static</span> <span style="color:#911d67">void</span> readLeftTuples(MarshallerReaderContext context) <span style="color:#911d67">throws</span> IOException,</div>



<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                                                                      ClassNotFoundException {</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



        ObjectInputStream stream = context.<span style="color:#0230c9">stream</span>;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



        <span style="color:#911d67">while</span> ( stream.readShort() == PersisterEnums.<span style="color:#0230c9">LEFT_TUPLE</span> ) {</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



            <span style="color:#911d67">int</span> nodeId = stream.readInt();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">            LeftTupleSink sink = (LeftTupleSink) context.<span style="color:#0230c9">sinks</span>.get( nodeId );</div>



<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">            <span style="color:#911d67">int</span> factHandleId = stream.readInt();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



            LeftTuple leftTuple = <span style="color:#911d67">new</span> LeftTuple( context.<span style="color:#0230c9">handles</span>.get( factHandleId ),</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



                                                 sink,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                                                 <span style="color:#911d67">true</span> );</div>



<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">            readLeftTuple( leftTuple,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                           context );</div>



<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">        }</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">    }</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px">



<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">    <span style="color:#911d67">public</span> <span style="color:#911d67">static</span> <span style="color:#911d67">void</span> readLeftTuple(LeftTuple parentLeftTuple,</div>



<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                                     MarshallerReaderContext context) <span style="color:#911d67">throws</span> IOException,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



                                                                     ClassNotFoundException {</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">        ObjectInputStream stream = context.<span style="color:#0230c9">stream</span>;</div>



<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">        Map&lt;Integer, BaseNode&gt; sinks = context.<span style="color:#0230c9">sinks</span>;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px">



<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">        LeftTupleSink sink = parentLeftTuple.getLeftTupleSink();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px">



<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">        <span style="color:#911d67">switch</span> ( sink.getType() ) {</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div><div><div>On May 24, 2011, at 9:06 AM, Edson Tirelli wrote:</div><br></div><div><div></div><div>
<blockquote type="cite"><div><br></div>    Shannon,<div><br>    What is the following method doing?</div><div><br></div><div><span style="color:rgb(4, 49, 195)">engine</span>.process(reading);</div>
<div><br></div><div>    Can you please open a JIRA and attach your test case or point me to the jira reporting this problem if it exists already?</div><div><br></div><div>    Thanks,</div><div>        Edson</div><div><br>




</div><div><br><div class="gmail_quote">2011/5/23 Shannon Hastings <span dir="ltr">&lt;<a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div style="word-wrap:break-word">I am using drools 5.2.0.M2 and I still get this error:<div><div><br></div><div>Caused by: java.lang.NullPointerException</div><div><span style="white-space:pre-wrap">        </span>at org.drools.marshalling.impl.InputMarshaller.readLeftTuple(InputMarshaller.java:469)</div>




<div><br></div><div>Which was reported on drools 5.1.0 JIRA and claimed to be fixed.  I see the error when trying to load a session that was persisted that had objects inserted that  are time depended and cause rules to fire that use terms from flow such as &quot;after&quot;.  I only see this error if create a new session, submit some facts to it, close it, and then try to reload.  If i do not submit any facts to it I do not get the error.  I.E.  If all i do is create the KB with my rules I can reload a session from the DB no problem, but if i submit some facts and persist the session, then i cannot reload it.  This seems to be an issue with the JPA loading of the session that has facts in it that use Flow (JBPM).  Any help would be greatly appreciated.  Below are my simple rules followed by the test code used to submit the facts:</div>




<div><br></div><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="color:#aa120e">package</span> com.inventrio.rules.readings</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px">




 <br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="color:#aa120e">import</span> com.inventrio.healthmonitoring.model.*;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px">




<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="color:#aa120e">declare</span> Reading</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




    @role(event)</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">    @timestamp(readingTime)</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)">




end</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 142, 43)"><span style="color:#aa120e">rule</span><span style="color:#000000"> </span>&quot;High Blood Pressure&quot;</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)"><span style="color:#000000"><span style="white-space:pre-wrap">        </span></span>when</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>$eventA :  Reading(<a href="http://readingType.name/" target="_blank">readingType.name</a> == <span style="color:#008e2b">&quot;BPMETER&quot;</span>)</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>$systolic : Value( <span style="color:#aa120e">this</span>.valueType.name == <span style="color:#008e2b">&quot;SYSTOLIC&quot;</span>  ) <span style="color:#aa120e">from</span> $eventA.values</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$diastolic : Value( <span style="color:#aa120e">this</span>.valueType.name == <span style="color:#008e2b">&quot;DIASTOLIC&quot;</span>  ) <span style="color:#aa120e">from</span> $eventA.values</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span><span style="color:#aa120e">eval</span>( $systolic.getLongValue() &gt; 180 &amp;&amp; $diastolic.getLongValue() &gt; 120 )</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)"><span style="color:#000000"><span style="white-space:pre-wrap">        </span></span>then</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>System.out.println(<span style="color:#008e2b">&quot;HIGH BLOOD PRESSURE&quot;</span> );  </div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)">




end</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 142, 43)"><span style="color:#aa120e">rule</span><span style="color:#000000"> </span>&quot;Weight Trending Up&quot;</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)"><span style="color:#000000"><span style="white-space:pre-wrap">        </span></span>when</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>$eventC :  Reading(<a href="http://readingType.name/" target="_blank">readingType.name</a> == <span style="color:#008e2b">&quot;WEIGHT&quot;</span> )</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>$eventB  : Reading( <a href="http://readingType.name/" target="_blank">readingType.name</a> == <span style="color:#008e2b">&quot;WEIGHT&quot;</span> , <span style="color:#aa120e">this</span> after[5s, 1m] $eventC )</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$eventA  : Reading( <a href="http://readingType.name/" target="_blank">readingType.name</a> == <span style="color:#008e2b">&quot;WEIGHT&quot;</span> , <span style="color:#aa120e">this</span> after[5s, 1m] $eventB )</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$weight3 : Value( <span style="color:#aa120e">this</span>.valueType.name == <span style="color:#008e2b">&quot;WEIGHT&quot;</span>  ) <span style="color:#aa120e">from</span> $eventC.values</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$weight2 : Value( <span style="color:#aa120e">this</span>.valueType.name == <span style="color:#008e2b">&quot;WEIGHT&quot;</span>  ) <span style="color:#aa120e">from</span> $eventB.values</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$weight1 : Value( <span style="color:#aa120e">this</span>.valueType.name == <span style="color:#008e2b">&quot;WEIGHT&quot;</span>  ) <span style="color:#aa120e">from</span> $eventA.values</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span><span style="color:#aa120e">eval</span>(  $weight3.getDoubleValue().doubleValue() &lt; $weight2.getDoubleValue().doubleValue() + 1.0  &amp;&amp; $weight2.getDoubleValue().doubleValue() &lt; $weight1.getDoubleValue().doubleValue() + 1.0 )</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)"><span style="color:#000000"><span style="white-space:pre-wrap">        </span></span>then</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>System.out.println(<span style="color:#008e2b">&quot;WEIGHT IS GOING UP&quot;</span> ); </div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)">




end</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 142, 43)"><span style="color:#aa120e">rule</span><span style="color:#000000"> </span>&quot;Weight Trending Down&quot;</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)"><span style="color:#000000"><span style="white-space:pre-wrap">        </span></span>when</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>$eventC :  Reading(<a href="http://readingType.name/" target="_blank">readingType.name</a> == <span style="color:#008e2b">&quot;WEIGHT&quot;</span> )</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>$eventB  : Reading( <a href="http://readingType.name/" target="_blank">readingType.name</a> == <span style="color:#008e2b">&quot;WEIGHT&quot;</span> , <span style="color:#aa120e">this</span> after[5s, 1m] $eventC )</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$eventA  : Reading( <a href="http://readingType.name/" target="_blank">readingType.name</a> == <span style="color:#008e2b">&quot;WEIGHT&quot;</span> , <span style="color:#aa120e">this</span> after[5s, 1m] $eventB )</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$weight3 : Value( <span style="color:#aa120e">this</span>.valueType.name == <span style="color:#008e2b">&quot;WEIGHT&quot;</span>  ) <span style="color:#aa120e">from</span> $eventC.values</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$weight2 : Value( <span style="color:#aa120e">this</span>.valueType.name == <span style="color:#008e2b">&quot;WEIGHT&quot;</span>  ) <span style="color:#aa120e">from</span> $eventB.values</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>$weight1 : Value( <span style="color:#aa120e">this</span>.valueType.name == <span style="color:#008e2b">&quot;WEIGHT&quot;</span>  ) <span style="color:#aa120e">from</span> $eventA.values</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span><span style="color:#aa120e">eval</span>(  $weight3.getDoubleValue().doubleValue() &gt; $weight2.getDoubleValue().doubleValue() + 1.0  &amp;&amp; $weight2.getDoubleValue().doubleValue() &gt; $weight1.getDoubleValue().doubleValue() + 1.0 )</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)"><span style="color:#000000"><span style="white-space:pre-wrap">        </span></span>then</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span>System.out.println(<span style="color:#008e2b">&quot;WEIGHT IS GOING DOWN&quot;</span> ); </div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(170, 18, 14)">




end</div></div><div><br></div><div><br></div><div><br></div><div>And next is my object i insert before closeing and then trying to reload the session.</div><div><br></div><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">        </span><span style="color:#941c64">public</span> <span style="color:#941c64">void</span> testWeightRules() {</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                </span><span style="color:#941c64">try</span> {</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>Reading reading = <span style="color:#941c64">new</span> Reading();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading.setReadingTime(<span style="color:#941c64">new</span> Date(System.currentTimeMillis()));</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>ReadingType type = <span style="color:#941c64">new</span> ReadingType();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>type.setName(<span style="color:#3a40f4">&quot;WEIGHT&quot;</span>);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>type.setDescription(<span style="color:#3a40f4">&quot;&quot;</span>);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading.setReadingType(type);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>Value value = <span style="color:#941c64">new</span> Value();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>value.setDoubleValue(140.0);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>ValueType valueType = <span style="color:#941c64">new</span> ValueType();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>valueType.setName(<span style="color:#3a40f4">&quot;WEIGHT&quot;</span>);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>valueType.setDataType(ValueDataType.<span style="color:#0431c3">DOUBLE</span>);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>value.setValueType(valueType);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>reading.getValues().add(value);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading.setReadingType(type);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span><span style="color:#0431c3">engine</span>.process(reading);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px">




<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>Thread.sleep(7000);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px">




<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading = <span style="color:#941c64">new</span> Reading();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>reading.setReadingTime(<span style="color:#941c64">new</span> Date(System.currentTimeMillis()));</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>type = <span style="color:#941c64">new</span> ReadingType();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>type.setName(<span style="color:#3a40f4">&quot;WEIGHT&quot;</span>);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>type.setDescription(<span style="color:#3a40f4">&quot;&quot;</span>);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>reading.setReadingType(type);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>value = <span style="color:#941c64">new</span> Value();</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>value.setDoubleValue(142.0);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>valueType = <span style="color:#941c64">new</span> ValueType();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>valueType.setName(<span style="color:#3a40f4">&quot;WEIGHT&quot;</span>);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>valueType.setDataType(ValueDataType.<span style="color:#0431c3">DOUBLE</span>);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>value.setValueType(valueType);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading.getValues().add(value);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading.setReadingType(type);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span><span style="color:#0431c3">engine</span>.process(reading);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>Thread.sleep(7000);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>reading = <span style="color:#941c64">new</span> Reading();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading.setReadingTime(<span style="color:#941c64">new</span> Date(System.currentTimeMillis()));</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>type = <span style="color:#941c64">new</span> ReadingType();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>type.setName(<span style="color:#3a40f4">&quot;WEIGHT&quot;</span>);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>type.setDescription(<span style="color:#3a40f4">&quot;&quot;</span>);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading.setReadingType(type);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>value = <span style="color:#941c64">new</span> Value();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>value.setDoubleValue(144.0);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>valueType = <span style="color:#941c64">new</span> ValueType();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>valueType.setName(<span style="color:#3a40f4">&quot;WEIGHT&quot;</span>);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>valueType.setDataType(ValueDataType.<span style="color:#0431c3">DOUBLE</span>);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>value.setValueType(valueType);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>reading.getValues().add(value);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span>reading.setReadingType(type);</div>




<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                        </span><span style="color:#0431c3">engine</span>.process(reading);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:15px">




<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>} <span style="color:#941c64">catch</span> (Throwable t) {</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">                        </span>t.printStackTrace();</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">                </span>}</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">




<span style="white-space:pre-wrap">        </span>}</div></div><div><br></div><div>
<div><div style="word-wrap:break-word">Shannon Hastings<br><br></div><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Inventrio<br>




545 Metro Place South, Suite 475<br>Dublin, OH 43017<br><b>Phone</b>: (614) 389-2795 x101<br><b>Fax:</b> (614) 522-6249<br><b>Email:</b> <a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a><br>




<a href="http://www.inventrio.com/" target="_blank">http://www.inventrio.com</a></span></span></div></div>
</div>
<br></div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com/" target="_blank">www.jboss.com</a><br>
</div>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">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>



</blockquote></div></div></div><div><div></div><div><br><div>
<div><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Shannon Hastings<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><br>



<br></span></span></div><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Inventrio<br>



545 Metro Place South, Suite 475<br>Dublin, OH 43017<br><b>Phone</b>: (614) 389-2795 x101<br><b>Fax:</b> (614) 522-6249<br><b>Email:</b> <a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a><br>



<a href="http://www.inventrio.com/" target="_blank">http://www.inventrio.com</a></span></span></div></div>
</div>
<br></div></div></div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com/" target="_blank">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com/" target="_blank">http://salaboy.wordpress.com</a><br>



 - Co-Founder @ <a href="http://www.jbug.com.ar/" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">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>


</blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>


<div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Shannon Hastings<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><br>


<br></span></span></div><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Inventrio<br>


545 Metro Place South, Suite 475<br>Dublin, OH 43017<br><b>Phone</b>: (614) 389-2795 x101<br><b>Fax:</b> (614) 522-6249<br><b>Email:</b> <a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a><br>


<a href="http://www.inventrio.com/" target="_blank">http://www.inventrio.com</a></span></span></div></div></span>
</div>
<br></div></div></div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com/" target="_blank">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com/" target="_blank">http://salaboy.wordpress.com</a><br>


 - Co-Founder @ <a href="http://www.jbug.com.ar/" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">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>

</blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>

<div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Shannon Hastings<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><br>

<br></span></span></div><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Inventrio<br>

545 Metro Place South, Suite 475<br>Dublin, OH 43017<br><b>Phone</b>: (614) 389-2795 x101<br><b>Fax:</b> (614) 522-6249<br><b>Email:</b> <a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a><br>

<a href="http://www.inventrio.com/" target="_blank">http://www.inventrio.com</a></span></span></div></div></span>
</div>
<br></div></div></div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com/" target="_blank">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com/" target="_blank">http://salaboy.wordpress.com</a><br>

 - Co-Founder @ <a href="http://www.jbug.com.ar/" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
<div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Shannon Hastings<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><br>
<br></span></span></div><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Inventrio<br>
545 Metro Place South, Suite 475<br>Dublin, OH 43017<br><b>Phone</b>: (614) 389-2795 x101<br><b>Fax:</b> (614) 522-6249<br><b>Email:</b> <a href="mailto:shannon.hastings@inventrio.com" target="_blank">shannon.hastings@inventrio.com</a><br>
<a href="http://www.inventrio.com/" target="_blank">http://www.inventrio.com</a></span></span></div></div></span>
</div>
<br></div></div></div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto: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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>