[jboss-jira] [JBoss JIRA] (DROOLS-4862) Dsl mapping fails during validation in Guided Rule Editor

Anna Dupliak (Jira) issues at jboss.org
Mon Dec 9 14:46:00 EST 2019


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

Anna Dupliak updated DROOLS-4862:
---------------------------------
    Steps to Reproduce: 
# Go to test project *Traffic*
# Add DSL asset in traffic package with following content:
{code}
[when]There is a Person with age equals to {age}=p:Person(age == {age})
{code}
# Add Guided Rule asset and add a cause 
{code}[when]There is a Person with age equals to {age}=p:Person(age == {age})
{code}
# Change value age to 10 
# Press  *validate* button
# Expected successfully passed validation

  was:
# Go to test project *Traffic*
# Add DSL asset in traffic package with following content:
{code}
[when]There is a Person with age equals to {age}=p:Person(age == {age})
{code}
# Add Guided Rule asset and add a cause *"[when]There is a Person with age equals to {age}=p:Person(age == {age})"*
# Change value age to 10 
# Press  *validate* button
# Expected successfully passed validation



> Dsl mapping fails during validation in Guided Rule Editor
> ---------------------------------------------------------
>
>                 Key: DROOLS-4862
>                 URL: https://issues.redhat.com/browse/DROOLS-4862
>             Project: Drools
>          Issue Type: Bug
>          Components: Guided Rule Editor
>    Affects Versions: 7.31.0.Final
>            Reporter: Anna Dupliak
>            Assignee: Michael Anstis
>            Priority: Major
>              Labels: BusinessCentral
>
> Dsl written expressions validation fails with errors:
> {code}
> [KBase: kbase1]: [8] No mapping entries for expanding: 		There is a Person with age equals to 10
> [KBase: kbase1]: [8] Unable to expand: There is a Person with age equals to 10
> [KBase: kbase1]: [ERR 102] Line 8:8 mismatched input 'is' in rule "rule with DSL"
> [KBase: defaultKieBase]: [8] No mapping entries for expanding: 		There is a Person with age equals to 10
> [KBase: defaultKieBase]: [8] Unable to expand: There is a Person with age equals to 10
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list