Bug 1069283

Summary: Domain Specific Language works in a standalone application but it doesn't work in Guided Rule Editor in Business Central
Product: [Retired] JBoss BRMS Platform 6 Reporter: Ricardo Jun Taniguchi <jtaniguc>
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, mbaluch, mwinkler, rrajasek
Target Milestone: ER2   
Target Release: 6.0.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:57:23 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
Project with source code used by this bug testing
none
rule created using the Guided Rule in Business Central none

Description Ricardo Jun Taniguchi 2014-02-24 16:18:33 UTC
Created attachment 867044 [details]
Project with source code used by this bug testing

Description of problem:

The attached project (dsl-classup.tar.gz) contains a DSL using 2 simple classes (Reservation and Customer) and a DSLTest class to test it. A DSL is created (src/main/resources/jbtravel/jbtravel.dsl) and a Rule using this DSL is created as well.  They all work correctly.

I've created a new repository and a new project to store the same files in Business Central, removing the dslr file. When i try to create a Guided Rule with DSL support, the RHS isn't processed correctly according to the attached screenshot. 


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

How reproducible:
every time a new Guided Rule is created in Business Central

Steps to Reproduce:
1.Create a repository in Business Central (using the web interface - repository name used: dsl-classup)
2.Create a project in Business Central (using the web interface - project name used: model - groupid: com.jbtravel - artifactId=model)
3.Clone the project locally to a repository. (git clone ssh://admin@localhost:8001/<repositoryName>)
4.Update the project including all files, except the jbtravel.dslr (copy the contents of dsl-classup.tar.gz into model directory)
5.Push the project into Business Central's repository (git commit && git push)
6.Create a new Guided Rule using Business Central.
7.Use the values presented in the screenshot.
8.Open the source tab.
9.Validate the source code ([11] Unable to expand: [reservation : Reservation]Charge 200 class upgrade fee)

Actual results:
The rule using a DSL isn't processed by the Business Central interface due to a wrong format presented (instead of presenting "Charge {value} class upgrade fee" the only output presented is "[reservation : Reservation]Charge {value} class upgrade fee".


Expected results:
The DSL rule processing should be able to read the DSL file and process it as:
Charge {value} class upgrade fee". This allows a correct processing and a valid rule file.

Additional info:

Comment 1 Ricardo Jun Taniguchi 2014-02-24 16:19:33 UTC
Created attachment 867045 [details]
rule created using the Guided Rule in Business Central

Comment 3 manstis 2014-02-25 16:59:43 UTC
I followed the steps and was not able to replicate.

There have been numerous bug fixes relating to DSL->Source in recent weeks (I forget the BZ numbers) and it's quite possible this has already been fixed.

I've referenced some of the BZs (but it might not be them all).

I'd suggest retesting with the next release.

Comment 4 Ricardo Jun Taniguchi 2014-02-25 21:35:48 UTC
Is there any Red Hat internal server that I can download these bits?

Comment 5 Ricardo Jun Taniguchi 2014-03-14 12:44:00 UTC
Now it is fixed. The syntax used in the DRL file was using an old construction, not supported.

Comment 6 Marek Baluch 2014-03-14 12:49:11 UTC
Ricardo thanks for the verification.

Moving to VERIFIED.