Bug 1059166

Summary: Guided rule editor fails to open a valid rule
Product: [Retired] JBoss BRMS Platform 6 Reporter: Jorge Perez Bolano <jperezbo>
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, lpetrovi, manstis, rrajasek, vigoyal
Target Milestone: ER1   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The Guided Rule Editor fails to open a valid rule correctly even though the rule has passed validation and is valid in the GIT repository. The Editor may incorrectly remove some of the rule definitions or modify rule constructs incorrectly. Cause: Consequence: Fix: Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:57:01 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
Guided Rule none

Description Jorge Perez Bolano 2014-01-29 10:46:35 UTC
Created attachment 857010 [details]
Guided Rule

Create a rule using the guided editor similar to:

package org.demo.gestionreservas;

rule "JorgeTest"
salience 10
dialect "mvel"
when
  reserva : Reserva( )
  itinerario : Itinerario( destino == "USA" ) from reserva.itinerarios
then
  reserva.setOnHold( "No" );
  update( reserva );
end

Attached an image of guided rule definition. The validation is ok and the rule is also OK in git. 

When you try to reload the guided rule, "itinerario : Itinerario( destino == "USA" )" is lost.

As you can see in the image there is also a minor error in the guided editor as there is no space between "from" and the entity. 



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

BRMS CR2

Comment 2 Toni Rikkola 2014-01-31 12:36:33 UTC
test in master: https://github.com/droolsjbpm/drools/commit/dbf7158a1

Comment 3 Mario Fusco 2014-01-31 14:31:40 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/f799d40bb

Reassigning to Toni to check that it works also in the guided editor.

Comment 5 Jiri Locker 2014-03-17 17:43:54 UTC
Very similar to (if not the same as) bug 1052313.

Works in ER2.