[rules-users] Migrating repository data from Drools 5.0 to 5.3Final

Michael Anstis michael.anstis at gmail.com
Tue Feb 7 17:00:41 EST 2012


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

On 7 February 2012 19:54, jian zhi <jianpzhi at yahoo.com> wrote:

> 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 at gmail.com>
> *To:* Rules Users List <rules-users at lists.jboss.org>; jian zhi <
> jianpzhi at 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,
> Mike
> sent on the move
> On 4 Feb 2012 16:37, "jian zhi" <jianpzhi at 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: 1
> rule "Row 1 test"
>                 dialect "mvel"
>                 when
>                                 consumerAction : ConsumerWorkActionFact(
> checkIfExist == "true" )
>                                 accountAction :
> ConsumerAccountWorkActionFact( checkIfExist == "true" )
>                                 consumerTag : ConsumerTagAssociationFact(
> hasAnyConsumerTagEM == "111" )
>                                 consumerAccount :
> ConsumerAccountAssociationFact( hasAnyAccountClosed == "false" )
>                 then
>                                 consumerAction.setChangeStrategy( "222" );
>                                 consumerAction.setHoldConsumer( "true" );
>                                 accountAction.setAssignConsumerAccountTags(
> "333" );
> end
>
> Here is the source of the decision table in Drools 5.3:
> #from row number: 1
> 2. | rule "Row 1 test"
> 3. |     dialect "mvel"
> 4. |     when
> 5. |         consumerAction : ConsumerWorkActionFact( checkIfExist ==
> "true" )
> 6. |         consumerTag : ConsumerTagAssociationFact(
> hasAnyConsumerTagEM == "false" )
> 7. |         consumerAccount : ConsumerAccountAssociationFact(
> hasAnyAccountClosed == true )
> 8. |         accountAction : ConsumerAccountWorkActionFact( checkIfExist
> == "111" )
> 9. |     then
> 10. |         consumerAction.setChangeStrategy( "222" );
> 11. |         consumerAction.setHoldConsumer( "true" );
> 12. |         accountAction.setAssignConsumerAccountTags( "333" );
> 13. | end
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120207/105a2e89/attachment.html 


More information about the rules-users mailing list