[
https://issues.redhat.com/browse/DROOLS-5877?page=com.atlassian.jira.plug...
]
Kris Verlaenen updated DROOLS-5877:
-----------------------------------
Sprint: 2020 Week 49-51 (from Nov 30), 2020 Week 52-03 (from Dec 21), 2021 Week 04-06
(from Jan 25) (was: 2020 Week 49-51 (from Nov 30), 2020 Week 52-03 (from Dec 21))
Support MVEL BLiteral in the exec model
---------------------------------------
Key: DROOLS-5877
URL:
https://issues.redhat.com/browse/DROOLS-5877
Project: Drools
Issue Type: Bug
Components: executable model
Reporter: Luca Molteni
Assignee: Luca Molteni
Priority: Major
It seems like it's already supported in the consequence
[
https://github.com/kiegroup/drools/blob/6408b5e1caa1e5c5fe94e45f82e1bedfb...]
{code:java}
package com.myspace.check20201202;
//from row number: 1
rule "Row 1 MatteoTable"
dialect "mvel"
when
f1 : Person( age >= 18B )
then
f1.setMinor( false );
end
//from row number: 2
rule "Row 2 MatteoTable"
dialect "mvel"
when
f1 : Person( age < 18B )
then
f1.setMinor( true );
end
package com.myspace.check20201202;
import java.math.BigDecimal;
/**
* This class was automatically generated by the data modeler tool.
*/
public class Person implements java.io.Serializable {
static final long serialVersionUID = 1L;
private java.lang.String name;
private BigDecimal age;
private java.lang.Boolean minor;
public Person() {
}
public java.lang.String getName() {
return this.name;
}
public void setName(java.lang.String name) {
this.name = name;
}
public java.lang.Boolean getMinor() {
return this.minor;
}
public void setMinor(java.lang.Boolean minor) {
this.minor = minor;
}
public java.math.BigDecimal getAge() {
return this.age;
}
public void setAge(java.math.BigDecimal age) {
this.age = age;
}
public Person(java.lang.String name, java.math.BigDecimal age,
java.lang.Boolean minor) {
this.name = name;
this.age = age;
this.minor = minor;
}
}
{code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)