Bug 1069283 - Domain Specific Language works in a standalone application but it doesn't work in Guided Rule Editor in Business Central
Summary: Domain Specific Language works in a standalone application but it doesn't wor...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ER2
: 6.0.1
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-24 16:18 UTC by Ricardo Jun Taniguchi
Modified: 2014-08-06 19:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:57:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Project with source code used by this bug testing (2.69 KB, application/x-gzip)
2014-02-24 16:18 UTC, Ricardo Jun Taniguchi
no flags Details
rule created using the Guided Rule in Business Central (81.35 KB, image/png)
2014-02-24 16:19 UTC, Ricardo Jun Taniguchi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1048300 0 unspecified CLOSED Validation of Guided rules with DSL fails 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1055703 0 high CLOSED Reopening Guided Rule with DSL will replace all DSLs 2021-02-22 00:41:40 UTC

Internal Links: 1048300 1055703

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.


Note You need to log in before you can comment on or make changes to this bug.