<p>What you describe is indeed peculiar.</p>
<p>Are you able to provide your 5.0 export? </p>
<p>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.</p>
<p>Thanks,</p>
<p>Mike</p>
<p>sent on the move</p>
<p>On 4 Feb 2012 16:37, "jian zhi" <<a href="mailto:jianpzhi@yahoo.com">jianpzhi@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 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></p>