[jboss-jira] [JBoss JIRA] (DROOLS-2045) DSLs from other packages in current project should be visible when editing a Guided Rule (With DSL)

Michael Anstis (JIRA) issues at jboss.org
Fri Oct 27 05:38:02 EDT 2017


     [ https://issues.jboss.org/browse/DROOLS-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Anstis moved GUVNOR-2263 to DROOLS-2045:
------------------------------------------------

                   Project: Drools  (was: Guvnor)
                       Key: DROOLS-2045  (was: GUVNOR-2263)
                  Workflow: GIT Pull Request workflow   (was: classic default workflow)
               Component/s: DSLs Editor
                                (was: DSL)
        Steps to Reproduce:   (was: 1- Create a repository on the Workbench.
2- Create a project on the creaed repo on the Workbench.
3- Create two packages on the project (pkg1 and pkg2)
4- Create the following DSL expression on pkg1:
    [when]There is a string {str}= String(this == "{str}")
5- Create the following DSL expression on pkg2:
    [when]There is a {value}= Number(intValue == {value})
6- Create a Guided Rule (with DSL) on pkg1: While adding DSL expressions, you will only see "There is a string {str}" as an option for the conditions. Add that condition and replace "str" with "1"
7- Click on "validate" on the rule: You will receive a "Mismatched input 'string' on line 6" because it is using the DSL expression from the other package

If you clone this repo and compile it locally with "mvn clean package", you might have the same error.)
         Affects Version/s: 6.3.0.Beta2
                                (was: drools_6.3.0.Beta2)
    Workaround Description:   (was: For the moment, keeping DSL files repeated and aligned among different packages allow us to work on this issue. However, it will be simpler to just have all DSL expressions from all packages accessible from the Guided Rule (with DSL) options, since they will be used when compiling the rules anyway)


> DSLs from other packages in current project should be visible when editing a Guided Rule (With DSL)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-2045
>                 URL: https://issues.jboss.org/browse/DROOLS-2045
>             Project: Drools
>          Issue Type: Enhancement
>          Components: DSLs Editor
>    Affects Versions: 6.3.0.Beta2
>            Reporter: Mariano Nicolas De Maio
>
> When creating a a Guided Rule (With DSL), only DSL expressions defined in the current package are shown to be added in the editor. This doesn't seem to be a desired feature, since when you click "Validate" on said rule, it seems to be compiling the rule using DSL expressions of other packages as well.
> The same behavior is later on seen when compiling rules with "Build and Deploy" from the project editor.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list