]
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