Thanks for the repository export.
I was able to replicate the problem, https://issues.jboss.org/browse/GUVNOR-1826, and have fixed it in both master and the 5.3.x branch.
With kind regards,
Mike
Mike,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.Thanks for your time,Jian
From: Michael Anstis <michael.anstis@gmail.com>
To: Rules Users List <rules-users@lists.jboss.org>; jian zhi <jianpzhi@yahoo.com>
Sent: Saturday, February 4, 2012 12:55 PM
Subject: Re: [rules-users] Migrating repository data from Drools 5.0 to 5.3Final
What you describe is indeed peculiar.Are you able to provide your 5.0 export?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.Thanks,Mikesent on the moveOn 4 Feb 2012 16:37, "jian zhi" <jianpzhi@yahoo.com> wrote:Hi all,I migrated the repository from Drools 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.Is this a bug, or I didn’t use the right way to migrate the drools data between two versions?Thanks in advance,Jian
Here is the source of the decision table in Drools 5.0:#from row number: 1rule "Row 1 test"dialect "mvel"whenconsumerAction : ConsumerWorkActionFact( checkIfExist == "true" )accountAction : ConsumerAccountWorkActionFact( checkIfExist == "true" )consumerTag : ConsumerTagAssociationFact( hasAnyConsumerTagEM == "111" )consumerAccount : ConsumerAccountAssociationFact( hasAnyAccountClosed == "false" )thenconsumerAction.setChangeStrategy( "222" );consumerAction.setHoldConsumer( "true" );accountAction.setAssignConsumerAccountTags( "333" );endHere is the source of the decision table in Drools 5.3:#from row number: 12. | rule "Row 1 test"3. | dialect "mvel"4. | when5. | consumerAction : ConsumerWorkActionFact( checkIfExist == "true" )6. | consumerTag : ConsumerTagAssociationFact( hasAnyConsumerTagEM == "false" )7. | consumerAccount : ConsumerAccountAssociationFact( hasAnyAccountClosed == true )8. | accountAction : ConsumerAccountWorkActionFact( checkIfExist == "111" )9. | then10. | consumerAction.setChangeStrategy( "222" );11. | consumerAction.setHoldConsumer( "true" );12. | accountAction.setAssignConsumerAccountTags( "333" );13. | end
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users