[Red Hat JIRA] (DROOLS-5762) DRLX Research Spike
by Edoardo Vacchi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5762?page=com.atlassian.jira.plug... ]
Edoardo Vacchi updated DROOLS-5762:
-----------------------------------
Sprint: 2020 Week 49-51 (from Nov 30)
> DRLX Research Spike
> -------------------
>
> Key: DROOLS-5762
> URL: https://issues.redhat.com/browse/DROOLS-5762
> Project: Drools
> Issue Type: Story
> Components: core engine
> Reporter: Edoardo Vacchi
> Assignee: Edoardo Vacchi
> Priority: Major
> Labels: drools-core
>
> Create a revised version of the DRLX language, i.e. a revised DRL language for rules definition, with less edge cases, and a slightly different syntax.
> Spec design will follow. This story is meant to deliver a small, first version of the language, just to kick off the project.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[Red Hat JIRA] (DROOLS-5897) Compound BigDecimal operator is translated to assignOperator in MVEL
by Luca Molteni (Jira)
Luca Molteni created DROOLS-5897:
------------------------------------
Summary: Compound BigDecimal operator is translated to assignOperator in MVEL
Key: DROOLS-5897
URL: https://issues.redhat.com/browse/DROOLS-5897
Project: Drools
Issue Type: Bug
Components: core engine
Reporter: Luca Molteni
Assignee: Luca Molteni
{code:java}
@Test
@Ignore("without B it doesn't work on MVEL")
public void testCompoundOperator() throws Exception {
// DROOLS-5894
String drl =
"import " + Person.class.getCanonicalName() + "\n" +
"dialect \"mvel\"\n" +
"rule R\n" +
"when\n" +
" $p : Person( age >= 26 )\n" +
"then\n" +
" $p.money += 50000;\n" +
"end";
KieSession ksession = getKieSession(drl);
Person john = new Person("John", 30);
john.setMoney( new BigDecimal( 70000 ) );
ksession.insert(john);
assertEquals(1, ksession.fireAllRules());
assertEquals(new BigDecimal( 120000 ), john.getMoney());
}{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months