[jboss-jira] [JBoss JIRA] (DROOLS-2043) Guided Rule Editor does not support Magic Characters in DSLs

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


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

Michael Anstis moved GUVNOR-2039 to DROOLS-2043:
------------------------------------------------

              Project: Drools  (was: Guvnor)
                  Key: DROOLS-2043  (was: GUVNOR-2039)
             Workflow: GIT Pull Request workflow   (was: classic default workflow)
          Component/s: DSLs Editor
                           (was: DSL)
    Affects Version/s: 5.5.0.Final
                           (was: drools-5.5.0.Final)


> Guided Rule Editor does not support Magic Characters in DSLs
> ------------------------------------------------------------
>
>                 Key: DROOLS-2043
>                 URL: https://issues.jboss.org/browse/DROOLS-2043
>             Project: Drools
>          Issue Type: Bug
>          Components: DSLs Editor
>    Affects Versions: 5.5.0.Final
>            Reporter: Hendrik Wouters
>              Labels: dsl, guided_editor, guvnor, magic_characters, regex
>
> Validation of a DSL rule in the guided editor fails when the DSL contains regex magic characters, such as '?'.
> Example DSL:
> [when]Assignment "{$assignment}" is {numberOfDays} days? overdue = {$assignment}: Assignment( hasDeadline before daysAgo({numberOfDays}) )
> In the textual rule editor, this works fine:
>  - Assignment "$a" is 1 day overdue
>  - Assignment "$b" is 2 days overdue
> In the guided rule editor, it doesnt. Magic characters appear to be ignored, and no match with the DSL is made.
> Verification gives the following errors:
> 	[Assignment Overdue (Guided DSL)] [ERR 102] Line 5:13 mismatched input '"$assignment"' in rule "Assignment Overdue (Guided DSL)"
> 	[Assignment Overdue (Guided DSL)] Parser returned a null Package



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


More information about the jboss-jira mailing list