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(a)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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users