[jboss-jira] [JBoss JIRA] (DROOLS-2042) In Guided Editor when using DSL configuration, with "-" it adds condition to first Fact statement
Michael Anstis (JIRA)
issues at jboss.org
Fri Oct 27 05:38:01 EDT 2017
[ https://issues.jboss.org/browse/DROOLS-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Anstis moved GUVNOR-1808 to DROOLS-2042:
------------------------------------------------
Project: Drools (was: Guvnor)
Key: DROOLS-2042 (was: GUVNOR-1808)
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.3.0.Final)
> In Guided Editor when using DSL configuration, with "-" it adds condition to first Fact statement
> ---------------------------------------------------------------------------------------------------
>
> Key: DROOLS-2042
> URL: https://issues.jboss.org/browse/DROOLS-2042
> Project: Drools
> Issue Type: Bug
> Components: DSLs Editor
> Affects Versions: 5.5.0.Final
> Reporter: Deepesh Nandal
> Assignee: Mark Coble
>
> I have a something like following in DSL
> [when] There is an employee {employee} in Delhi = Employee(key == "{employee}")
> Address( zip == "110018")
> [when] - address area is neat and clean = neat == true
> I created a business rule and added DSL using editor, the view source shows following snippet:
> when
> Employee(key == "Deep" , neat == true)
> Address( zip == "110018")
> then
> end
> it is adding sub-condition , neat == true, to the wrong statement. In guvnor 5.2 this is done on last statement in the given rule.
> So it should have been:
> when
> Employee(key == "Deep")
> Address( zip == "110018" , neat == true)
> then
> end
> I think it should find the last ) in the statements and put sub-condition there.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list