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