[JBoss JIRA] (DROOLS-1902) Unable to parse source with expression builder, reopens in free form
by Toni Rikkola (Jira)
[ https://issues.redhat.com/browse/DROOLS-1902?page=com.atlassian.jira.plug... ]
Toni Rikkola reassigned DROOLS-1902:
------------------------------------
Assignee: Toni Rikkola (was: Michael Anstis)
> Unable to parse source with expression builder, reopens in free form
> --------------------------------------------------------------------
>
> Key: DROOLS-1902
> URL: https://issues.redhat.com/browse/DROOLS-1902
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.1.0.Beta3
> Reporter: Jiří Locker
> Assignee: Toni Rikkola
> Priority: Minor
> Labels: reported-by-qe
>
> Classical reopen issue. I build a rule using the guided elements. It's saved in DRL source and when I reopen the rule, the DRL element cannot be parsed and so it falls back to free form.
> In this case the DRL element looks like:
> {noformat}
> $dayOffRequest : DayOffRequest( )
> ShiftAssignment( employee == $dayOffRequest.employee , shift.timeslot.startTime.toLocalDate() == $dayOffRequest.date )
> {noformat}
> Expected result: When reopened, the element above should be presented in expression editor.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months
[JBoss JIRA] (DROOLS-1902) Unable to parse source with expression builder, reopens in free form
by Toni Rikkola (Jira)
[ https://issues.redhat.com/browse/DROOLS-1902?page=com.atlassian.jira.plug... ]
Toni Rikkola updated DROOLS-1902:
---------------------------------
Labels: drools-tools reported-by-qe (was: reported-by-qe)
> Unable to parse source with expression builder, reopens in free form
> --------------------------------------------------------------------
>
> Key: DROOLS-1902
> URL: https://issues.redhat.com/browse/DROOLS-1902
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.1.0.Beta3
> Reporter: Jiří Locker
> Assignee: Toni Rikkola
> Priority: Minor
> Labels: drools-tools, reported-by-qe
>
> Classical reopen issue. I build a rule using the guided elements. It's saved in DRL source and when I reopen the rule, the DRL element cannot be parsed and so it falls back to free form.
> In this case the DRL element looks like:
> {noformat}
> $dayOffRequest : DayOffRequest( )
> ShiftAssignment( employee == $dayOffRequest.employee , shift.timeslot.startTime.toLocalDate() == $dayOffRequest.date )
> {noformat}
> Expected result: When reopened, the element above should be presented in expression editor.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months
[JBoss JIRA] (DROOLS-1902) Unable to parse source with expression builder, reopens in free form
by Toni Rikkola (Jira)
[ https://issues.redhat.com/browse/DROOLS-1902?page=com.atlassian.jira.plug... ]
Toni Rikkola updated DROOLS-1902:
---------------------------------
Tester: Jozef Marko
> Unable to parse source with expression builder, reopens in free form
> --------------------------------------------------------------------
>
> Key: DROOLS-1902
> URL: https://issues.redhat.com/browse/DROOLS-1902
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.1.0.Beta3
> Reporter: Jiří Locker
> Assignee: Toni Rikkola
> Priority: Minor
> Labels: drools-tools, reported-by-qe
>
> Classical reopen issue. I build a rule using the guided elements. It's saved in DRL source and when I reopen the rule, the DRL element cannot be parsed and so it falls back to free form.
> In this case the DRL element looks like:
> {noformat}
> $dayOffRequest : DayOffRequest( )
> ShiftAssignment( employee == $dayOffRequest.employee , shift.timeslot.startTime.toLocalDate() == $dayOffRequest.date )
> {noformat}
> Expected result: When reopened, the element above should be presented in expression editor.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months
[JBoss JIRA] (DROOLS-5546) An accumulate with more than one binding is wrongly generated in the executable model
by Mario Fusco (Jira)
Mario Fusco created DROOLS-5546:
-----------------------------------
Summary: An accumulate with more than one binding is wrongly generated in the executable model
Key: DROOLS-5546
URL: https://issues.redhat.com/browse/DROOLS-5546
Project: Drools
Issue Type: Bug
Reporter: Mario Fusco
Assignee: Mario Fusco
Reproducer
{code:java}
@Test
public void testAccumulateWithManyBindings() {
String str =
"import " + Person.class.getCanonicalName() + ";\n" +
"rule R when\n" +
" accumulate (\n" +
" Person($age : age, $name : name), $max : max( $name.length() ) " +
" )" +
"then\n" +
" insert($max);\n" +
"end";
KieSession ksession = getKieSession( str );
ksession.insert( new Person( "Mario", 40 ) );
ksession.insert( new Person( "Mark", 40 ) );
ksession.insert( new Person( "Luca", 40 ) );
ksession.fireAllRules();
List<Number> results = getObjectsIntoList(ksession, Number.class);
assertEquals(1, results.size());
assertEquals(5, results.get(0).intValue());
}{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 9 months