<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Mike,</span></div><div><br><span></span></div><div><span>Thanks for your response. I attached the repository_export.zip, which was generated by Drools 5.0 Guvnor Import/Export function. The decision table "Test" is in the default package. Please let me know if you have any problem to reproduce the issue.</span></div><br><img src="file:///C:/Users/jian/AppData/Local/Temp/moz-screenshot-2.png" alt=""><div><img src="file:///C:/Users/jian/AppData/Local/Temp/moz-screenshot.png" alt="">
</div><img src="file:///C:/Users/jian/AppData/Local/Temp/moz-screenshot-1.png" alt=""><div><span>Thanks for your time,</span></div><div><span>Jian</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" size="2"> <hr size="1"> <b><span style="font-weight: bold;">From:</span></b> Michael Anstis <michael.anstis@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Rules Users List <rules-users@lists.jboss.org>; jian zhi <jianpzhi@yahoo.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, February 4, 2012 12:55 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] Migrating repository data from Drools 5.0 to 5.3Final<br> </font> </div> <br>
<div id="yiv1234362294"><div>What you describe is indeed peculiar.</div>
<div>Are you able to provide your 5.0 export? </div>
<div>Whilst the object model for guided decision tables did change for 5.2 the conversion simply copies data from the old model to the new on a one-to-one basis and the tests we have pass.</div>
<div>Thanks,</div>
<div>Mike</div>
<div>sent on the move</div>
<div>On 4 Feb 2012 16:37, "jian zhi" <<a rel="nofollow" ymailto="mailto:jianpzhi@yahoo.com" target="_blank" href="mailto:jianpzhi@yahoo.com">jianpzhi@yahoo.com</a>> wrote:<br></div><blockquote class="yiv1234362294gmail_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><div><div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">
<div>Hi all,</div>
<div> </div>
<div>I migrated the repository from <span>Drools</span> 5.0 to 5.3Final. The data was stored in Microsoft SQL Server database. I exported
the repository from Drools 5.0 Guvnor and imported it back to Drools 5.3 Guvnor. After that I found
that the order of the condition columns in the web-guided decision table were
changed, and also the values for the conditions were misplaced. See the rule sources
below. </div>
<div> </div>
<div>Is this a bug, or I didn’t use the right way to migrate the drools data between two versions?<br></div>
<div> </div>
<div>Thanks in advance,</div>
<div>Jian</div>
<div> <br>Here is the source of the decision table in Drools 5.0:<br></div>
<div>#from row number: 1</div>
<div>rule "Row 1 test"</div>
<div><span> </span>dialect
"mvel"</div>
<div><span> </span>when</div>
<div><span> </span>consumerAction
: ConsumerWorkActionFact( checkIfExist == "true" )</div>
<div><span> </span>accountAction
: ConsumerAccountWorkActionFact( checkIfExist == "true" )</div>
<div><span> </span>consumerTag
: ConsumerTagAssociationFact( hasAnyConsumerTagEM == "111" )</div>
<div><span> </span>consumerAccount
: ConsumerAccountAssociationFact( hasAnyAccountClosed == "false" )</div>
<div><span> </span>then</div>
<div><span> </span>consumerAction.setChangeStrategy(
"222" );</div>
<div><span> </span>consumerAction.setHoldConsumer(
"true" );</div>
<div><span> </span>accountAction.setAssignConsumerAccountTags(
"333" );</div>
<div>end</div>
<div> </div>
<div>Here is the source of the decision table in Drools 5.3:</div>
<div>#from row number: 1 </div>
<div>2. | rule "Row 1 test" </div>
<div>3. |<span> </span>dialect
"mvel" </div>
<div>4. |<span> </span>when </div>
<div>5. |<span>
</span>consumerAction : ConsumerWorkActionFact( checkIfExist ==
"true" ) </div>
<div>6. |<span>
</span>consumerTag : ConsumerTagAssociationFact( hasAnyConsumerTagEM ==
"false" ) </div>
<div>7. |<span>
</span>consumerAccount : ConsumerAccountAssociationFact( hasAnyAccountClosed ==
true ) </div>
<div>8. |<span>
</span>accountAction : ConsumerAccountWorkActionFact( checkIfExist ==
"111" ) </div>
<div>9. |<span> </span>then </div>
<div>10. |<span>
</span>consumerAction.setChangeStrategy( "222" ); </div>
<div>11. |<span>
</span>consumerAction.setHoldConsumer( "true" ); </div>
<div>12. | <span> </span>accountAction.setAssignConsumerAccountTags(
"333" ); </div>
<div>13. | end<br><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><br> </div> </div> </div></body></html>