<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>As long as the result </span><span>of the evaluation</span><span> is same we are fine with it.&nbsp;</span></div><div><br><span></span></div><div><span>One more question regarding to the data migration. In Drools 5.0 there is no restriction between the fact type and name so the fact name could be same as the fact type. After we migrated the data to 5.3 we got the </span>IllegalArgumentException: object is not an instance of declaring class. Is it possible to fix the problem by converting the fact name to the 'Fact Type' with first character in lowercase during importing so the data is backward compatible?</div><div><br></div><div>Thanks a lot,</div><div>Jian<br></div><div><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new
 york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Michael Anstis &lt;michael.anstis@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> jian zhi &lt;jianpzhi@yahoo.com&gt;; Rules Users List &lt;rules-users@lists.jboss.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, February 13, 2012 3:53 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] Fwd: Migrating repository data from Drools 5.0 to 5.3Final<br> </font> </div> <br>
<div id="yiv622052424">This is fine.<br><br>5.2 onwards groups columns for the same pattern together - if you looked at the DRL fo 5.0 you'd have seen the columns are effectively grouped together too.<br><br>For example; given the following 5.0 configuration (taken from what you describe you have done):-<br>
<br>Pattern $a : Column A - Condition 1<br>Pattern $b : Column B - Condition 1<br>
Pattern $c : Column C - Condition 1<br>
Pattern $d : Column D - Condition 1<br>
Pattern $a : Column E - Condition 2<br>
Pattern $b : Column F - Condition 2<br>
<br>5.0 DRL<br><br>$a : Pattern( Condition 1, Condition 2 )<br>$b : Pattern( Condition 1, Condition 2 )<br>$c : Pattern( Condition 1 )<br>$d : Pattern( Condition 1 )<br><br>Importing this into 5.3 groups the columns:-<br>
<br>Pattern $a : Column A - Condition 1<br>Pattern $a : Column B - Condition 2<br>

Pattern $b : Column C - Condition 1<br>
Pattern $b : Column D - Condition 2<br>

Pattern $c : Column E - Condition 1<br>
Pattern $d : Column F - Condition 1<br>
<br>5.2 DRL<br><br>$a : Pattern( Condition 1, Condition 2 )<br>$b : Pattern( Condition 1, Condition 2 )<br>$c : Pattern( Condition 1 )<br>
$d : Pattern( Condition 1 )<br><br>Furthermore, at the request of the community, the behavior of "default values" changed so that the are only the default value for a new row (5.2 onwards) and not the value used for an empty cell (5.0). I know this has caused some re-work for people migrating a legacy decision table from 5.0 to 5.2 but since the impact, to date, has been small I do not plan on making any programmatic changes.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="yiv622052424gmail_quote">2012/2/13 jian zhi <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:jianpzhi@yahoo.com" target="_blank" href="mailto:jianpzhi@yahoo.com">jianpzhi@yahoo.com</a>&gt;</span><br><blockquote class="yiv622052424gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><div>Mike,<br></div><div><br></div><div>Thanks for the detail explanation.<br></div><div><br></div><div>I found that the order of the conditions were changed again after I added two more conditions to the same package I used last time.</div>
<div class="yiv622052424MsoNormal">I added default value to the first two conditions. Added the fifth condition by using the binding name created for the first condition.Add the sixth condition by using the binding name created for the second condition. After I import the data to 5.3 the fifth condition became the second and the sixth
condition became the fourth. Also the default value for the first and second conditions are not listed in the rule source in 5.3. Could you please take a look? I attach the modified repository in the email.</div><div class="yiv622052424MsoNormal">
<br></div><div class="yiv622052424MsoNormal">Thanks a lot,</div><div class="yiv622052424MsoNormal">Jian<img alt=""><img alt=""></div><div><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
 <div dir="ltr"> <font face="Arial"><div class="yiv622052424im"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Michael Anstis &lt;<a rel="nofollow" ymailto="mailto:michael.anstis@gmail.com" target="_blank" href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;<br>
 </div><b><span style="font-weight: bold;">To:</span></b> drools-user &lt;<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, February 10, 2012 12:59 PM<br>
 <b><span style="font-weight: bold;">Subject:</span></b> [rules-users] Fwd: Migrating repository data from Drools 5.0 to 5.3Final<br> </font> </div><div><div class="yiv622052424h5"> <br>
<div>I suspect ConsumerAccountAssociationFact.hasAnyAccountClosed is a boolean. <br><div><br>In 5.3 we handle data-types better than 5.0, so String, Numbers, Dates are Booleans have editors appropriate for the data-type and the resulting DRL only escapes values with quotation marks where needed (i.e. Strings and Dates). Boolean's in the table are now shown as Checkboxes. If the value is "true" it is ticked, if the value is "false" the checkbox is not ticked.<br>


<br>I don't therefore believe there is any problem.<br><div><div><br><div>On 10 February 2012 16:35, jian zhi <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:jianpzhi@yahoo.com" target="_blank" href="mailto:jianpzhi@yahoo.com">jianpzhi@yahoo.com</a>&gt;</span> wrote:<br>


<blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><div><span>Mike,<br></span></div><div>


<span><br></span></div><div><span>Thanks for the quick response. I downloaded the war and tested the fix. The order of the conditions are correct now. There is still a small problem in the last condition.</span></div><div>


<span><br></span></div><div><span>In Drools 5.0 the source is consumerAccount : ConsumerAccountAssociationFact( hasAnyAccountClosed == "false" ).</span></div><div><span>In Drools 5.3 the source is consumerAccount : ConsumerAccountAssociationFact( hasAnyAccountClosed == false ). It displays a square check box in the cell.</span></div>


<div><span><br></span></div><div><span>Could you please take a look?</span></div><div><span>Thanks,</span></div><div><span>Jian<br></span></div><div><br><span></span></div><div><span></span></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">


 <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial"><div> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Michael Anstis &lt;<a rel="nofollow" ymailto="mailto:michael.anstis@gmail.com" target="_blank" href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;<br>


 </div><b><span style="font-weight: bold;">To:</span></b> jian zhi &lt;<a rel="nofollow" ymailto="mailto:jianpzhi@yahoo.com" target="_blank" href="mailto:jianpzhi@yahoo.com">jianpzhi@yahoo.com</a>&gt;; Rules Users List &lt;<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt; <br>


 <b><span style="font-weight: bold;">Sent:</span></b> Thursday, February 9, 2012 4:55 AM<div><div><br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] Migrating repository data from Drools 5.0 to 5.3Final<br>


 </div></div></font> </div><div><div> <br>
<div>You can get a build containing the fix from Nexus:<br><br><a rel="nofollow" target="_blank" href="https://repository.jboss.org/nexus/index.html#nexus-search;gav%7Eorg.drools%7Eguvnor-webapp%7E5.3.2-SNAPSHOT%7E%7E">https://repository.jboss.org/nexus/index.html#nexus-search;gav~org.drools~guvnor-webapp~5.3.2-SNAPSHOT~~</a><br>



<br><div>2012/2/8 jian zhi <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:jianpzhi@yahoo.com" target="_blank" href="mailto:jianpzhi@yahoo.com">jianpzhi@yahoo.com</a>&gt;</span><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div><div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><div><span>Mike,</span></div><div><br><span></span></div><div><span>Is it possible to release a patch of 5.3?</span></div><div><br><span></span></div>



<div><span>Thanks,</span></div><div><span>Jian</span></div><div><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">



 <div dir="ltr"> <font face="Arial"><div> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Michael Anstis &lt;<a rel="nofollow" ymailto="mailto:michael.anstis@gmail.com" target="_blank" href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;<br>



 <b><span style="font-weight: bold;">To:</span></b> Rules Users List &lt;<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt; <br> </div><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, February 8, 2012 3:17 AM<div>



<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] Migrating
 repository data from Drools 5.0 to 5.3Final<br> </div></font> </div><div><div> <br>
<div><div>The problem has existed since 5.2 and would potentially affect loading any earlier version.</div>
<div>Prior to 5.2 the object model used by the guided decision table did not hold a Pattern to which individual condition columns are bound. </div>
<div>The conversion code groups individual condition columns into the appropriate group and moves the underlying column data accordingly (as there was no guarantee columns with the same bound name were consecutive).</div>




<div>There was a problem with the creation and insertion of the new Pattern objects that relied upon the order of entries in a HashMap being consistent. This has now changed.</div>
<div>I know others have been using the new guided decision table with old repositories without problem and our unit tests did not detect the problem either.</div>
<div>AFAIK this is the first report of any such issue since the release of 5.2's betas, however I would be wrong to say there is no risk.</div>
<div>sent on the move</div>
<div>On 8 Feb 2012 01:22, "vadlam" &lt;<a rel="nofollow" ymailto="mailto:sreeram.vadlamudi@wellsfargo.com" target="_blank" href="mailto:sreeram.vadlamudi@wellsfargo.com">sreeram.vadlamudi@wellsfargo.com</a>&gt; wrote:<br></div><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">




does this issue happen for any previous version of Guvnor data such as 5.0<br>
or 5.1 or 5.2 exported and imported into a Guvnor 5.3 repository ?<br>
<br>
does this mean, we cannot rely on 5.3.0 version of Guvnor code when<br>
migrating data from a previous version and should rather apply the fix &nbsp;?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a rel="nofollow" target="_blank" href="http://drools.46999.n3.nabble.com/rules-users-Migrating-repository-data-from-Drools-5-0-to-5-3Final-tp3715772p3724570.html">http://drools.46999.n3.nabble.com/rules-users-Migrating-repository-data-from-Drools-5-0-to-5-3Final-tp3715772p3724570.html</a><br>





Sent from the Drools: User forum mailing list archive at <a rel="nofollow" target="_blank" href="http://Nabble.com">Nabble.com</a>.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote>
</div><br>_______________________________________________<br>rules-users mailing list<br><a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>



<br><br> </div></div></div> </div>  </div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div><br><br> </div></div></div> </div>  </div></div></blockquote></div><br>
</div></div></div><br>
</div><br>_______________________________________________<br>rules-users mailing list<br><a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br><br> </div></div></div> </div>  </div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div><br><br> </div> </div>  </div></body></html>