[jboss-jira] [JBoss JIRA] (DROOLS-2781) [Guided Rule] Can't be opened if constraint to bound field present
Jozef Marko (JIRA)
issues at jboss.org
Tue Jul 24 09:20:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jozef Marko updated DROOLS-2781:
--------------------------------
Priority: Critical (was: Major)
> [Guided Rule] Can't be opened if constraint to bound field present
> ------------------------------------------------------------------
>
> Key: DROOLS-2781
> URL: https://issues.jboss.org/browse/DROOLS-2781
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.9.0.Final
> Reporter: Jozef Marko
> Assignee: Michael Anstis
> Priority: Critical
> Labels: drools-tools
> Attachments: Screenshot from 2018-07-24 14-32-00.png
>
>
> {code:mvel}
> package com.myspace.repr;
> import java.lang.Number;
> rule "rule"
> dialect "mvel"
> when
> DataObject( $stringField : sFieldOne == "something" )
> DataObjectTwo( sFieldTwo == $stringField )
> then
> end
> {code}
> Assume the rdrl file above where both *sFieldOne* and *sFieldTwo* are both of *String* type. Then if you try open this rdrl file in workbench the unexpected error dialog appears.
> The same can be seen if we assign role EVENT to *DataObject* and have this rule below.
> {code:mvel}
> package com.myspace.repr;
> import java.lang.Number;
> rule "eventRule"
> dialect "mvel"
> when
> e1 : DataObject( this after [1m, 2m] "24-Jul-2018" ) over window:time (10d)
> e2 : DataObject( this before e1 )
> then
> end
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list