Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1105025

Summary: jcr2vfs: test scenarios using ruleflow groups are not correctly migrated
Product: [Retired] JBoss BRMS Platform 6 Reporter: Petr Široký <psiroky>
Component: Migration ToolAssignee: Jan <jschatte>
Status: CLOSED EOL QA Contact: Tibor Zimanyi <tzimanyi>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.2CC: kverlaen
Target Milestone: DR4   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 18:36:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Git repo -- result of the jcr2vfs migration
none
Jcr repository export none

Description Petr Široký 2014-06-05 08:52:31 UTC
Description of problem:
After migration of test scenario that references some ruleflow group, Guvnor (Business Central) 6 is not able to load it correctly anymore (see below for full error message). 

The ruleflow is represented by class `org.drools.guvnor.client.modeldriven.testing.ActivateRuleFlowGroup` in Guvnor 5.x. However, this class does not exist in Guvnor (Business Central) 6 anymore. Since the class FQN is stored within the test scenario XML, XStream fails during unmarshalling.

Full error message shown in the UI:

Unable to complete your request. The following exception occurred: org.drools.ide.common.client.modeldriven.testing.ActivateRuleFlowGroup : org.drools.ide.common.client.modeldriven.testing.ActivateRuleFlowGroup ---- Debugging information ---- message : org.drools.ide.common.client.modeldriven.testing.ActivateRuleFlowGroup cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message : org.drools.ide.common.client.modeldriven.testing.ActivateRuleFlowGroup class : java.util.ArrayList required-type : java.util.ArrayList converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter path : /scenario/fixtures/org.drools.guvnor.client.modeldriven.testing.ActivateRuleFlowGroup class[1] : org.drools.workbench.models.testscenarios.shared.Scenario converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter version : 1.4.7 -------------------------------.


Version-Release number of selected component (if applicable):
6.0.2.ER3


Steps to Reproduce:
1. Download the attached git repository (which is a result of the migration) and clone it into BC.
2. Try to open some test scenario in package com.redhat.coolstore

Actual results:
Error pop-up is shown saying the XStream was not able to unmarshall the xml.


Expected results:
Test scenario is successfully opened.

Additional info:

Comment 1 Petr Široký 2014-06-05 08:55:06 UTC
Created attachment 902451 [details]
Git repo -- result of the jcr2vfs migration

Comment 2 Petr Široký 2014-06-05 08:56:49 UTC
Created attachment 902452 [details]
Jcr repository export

This can be used to import to Guvnor 5.x and then run the migration.

Comment 4 Walter Medvedeo 2014-06-13 11:03:11 UTC
The following commits solves the issue.

master: URL: http://github.com/droolsjbpm/drools-wb/commit/b1d192cdb

6.0.x: URL: http://github.com/droolsjbpm/drools-wb/commit/4fe161b7f

6.1.x: URL: http://github.com/droolsjbpm/drools-wb/commit/49d79a263

Comment 5 Walter Medvedeo 2014-06-13 11:29:27 UTC
The changes were reverted 6.0.x with the following commit:

http://github.com/droolsjbpm/drools-wb/commit/e167430f2

Comment 6 Walter Medvedeo 2014-06-13 11:31:43 UTC
Given that they were commited by mistake on 6.0.x.

The commits for master and 6.1.x are ok and continues alive.

Comment 7 Tibor Zimanyi 2015-01-30 12:14:37 UTC
Verified. Tried migration with the provided jcr repository from Comment 2 and it imported fine in Guvnor 6.