Using Data Enumerations in BRMS 4.0.1 with DSLs
by Shahad Ahmed
Does anyone know if the new data enumeration functionality in the BRMS
version 4.0.1 works with DSL sentences?
I have a Customer object that has a String attribute called value that can
be be one of the values "High", "Medium" and "Low". I've defined a data
enumeration for this as follows in the BRMS:
'Customer.value': ['High','Medium','Low']
This works fine using the guided editor and I see a drop down list
containing ['High','Medium','Low'] whenever I create a rule involving a
Customer value attribute. I then created a DSL which has the following
definitions in it:
[condition][]There is a Customer=c: Customer()
[condition][]- who is {value} value=value == "{value}"
I then created a guided rule that has the following when condition, where [
] represents the text box the guided editor creates to enter a value for the
{value} placeholder:
There is a Customer
- who is [ ] value
However, I had hoped that the data enumeration stuff would have worked out
that {value} represents a Customer.value attribute and consequently provided
a drop down list of values. So, I'm not sure if this is a bug, or this is
just not implemented and a possible JIRA enhancement request.
Thanks,
Shahad
18 years, 3 months
RE: [rules-users] Date - Effective & Date - Expire in BRMS
by Hehl, Thomas
Include them in your session as separate object(s) and make your references
to those object instead of to constants.
_____
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Knapp, Barry
Sent: Thursday, September 13, 2007 2:22 PM
To: Rules Users List
Subject: [rules-users] Date - Effective & Date - Expire in BRMS
Where can the values for Effective date and Expiration date for a decision
table? Is there some place in the BRMS to change these dates, so I do not
need to update the rule sheet.
Thanks
Barry
18 years, 3 months
Error writing DSL
by kissro@lidp.com
In eclipse, I have this coded in a .dsl
There is a Policy p:Policy()
for a male sex = "m"
with a premium less than {premium} premium < {premium}
Accept policy p.setStatus(32)
My .dslr rule file contains this
rule "Low Premium"
when
There is a Policy
for a male
with a premium less than 50.00
then
Accept policy
end
The .drl view shows this
rule "Low Premium"
when
p : Policy()
sex = "m"
premium < 50.00
then
p.setStatus(32);
end
I'm getting the error - Unexpected token 'sex'. I tried removing the
'for a male' part leaving 'with a premium less than 50.00' but then
I get 'Unexpected token 'premium''. How do I code the .dsl and/or .dslr
files to get the expected results.
Thanks,
Rod
18 years, 3 months
Best practice for "drool-ing" a complex object
by Mito Krkvak
Hi,
I have perhaps a simple question.
Here is my complex Object:
public class Object1 {
private String id;
private Set<Object2> obj2s;
}
public class Object2 {
private String idof2;
private Object3 obj3;
private Object4 obj3;
}
The business logic depends on the Object1 and all of the Object2 in the
list.
My question is what is the best way to pass this to drools and have the
rules be applied. I read somewhere that the best is to have "flat" objects,
with no lists, then pass those objects into the engine. However with
4.0there is a way to go through the lists, but it is still not
suggested. Is
that correct ?
Any suggestions are welcomed.
Thanks.
Krk
18 years, 3 months
drools3.0 and drools4.0
by vamshidhar reddy chitti
HI
Can anyone say wat r the api changes w,r.t both versions 3.0 and 4,0
i dont find ColumnDescr in 4.0
thanx
vamshi
---------------------------------
Wissenswertes für Bastler und Hobby Handwerker.BE A BETTER HEIMWERKER!
18 years, 3 months
column in OR
by Raffaele Viola
Hi all,
how can I put two columns in OR
Thanks
Raffo
18 years, 3 months
Use of "=" in DSL
by vdelbart
Hello,
In my DSL, I have :
{indicator}:={boolean}
mapping with
{indicator}.setValue({boolean});
but in my rule when I write :
myIndicator:=true
In the DRL viewer, I have :
{boolean}myIndicator.setValue({boolean});
I think I can't use the "=" in my DSL...
I try to use simple quote or double quote but nothing works...
Anybody have a solution ?
V.
--
View this message in context: http://www.nabble.com/Use-of-%22%3D%22-in-DSL-tf4434499.html#a12651260
Sent from the drools - user mailing list archive at Nabble.com.
18 years, 3 months
RuleML-2007 CfPart - Early Bird Registration / Late-Breaking Demos
by Adrian Paschke
EARLY BIRD REGISTRATION DEADLINE
International RuleML Symposium on Rule Interchange and Applications
(RuleML-2007)
http://2007.ruleml.org/
We would like to kindly remind you about some important deadlines:
September 15, 2007: RuleML-2007 Early-Bird registration deadline.
September 14, 2007: Discounted Hotel booking deadline.
If you plan participate in RuleML-2007, but have not registered yet,
please, register now at: http://2007.ruleml.org/index-Dateien/Page930.htm
RuleML-2007 will be co-located with the Business Rules Forum and take
place in:
Buena Vista Palace
1900 Buena Vista Drive
Lake Buena Vista, FL 32830
Toll-Free: 1-866-397-6516
Tel: (407) 827-2727 Fax: (407) 827-6070
http://www.buenavistapalace.com/
A special rate is available while rooms are available in the Conference
room block, and only until September 14, 2007. You will get further
information on how to obtain the special rate during the RuleML-2007
registration. Please book early to avoid disappointment. To check hotel
availability you may go directly to the hotel Internet page.
You will find further accommodations, e.g. here:
http://www.orlando.com/
http://www.expedia.com/
Orlando Vista Hotel is in walking distance:
http://www.orlandovistahotel.com/
http://www.expedia.ca/pub/agent.dll/qscr=dspv/nojs=1/htid=2690
We would also like to recommend you to make FLIGHT booking as soon as
possible since rates will rise a lot as closer to the travel date.
The International RuleML Symposium on Rule Interchange and Applications
(RuleML-2007) will take place, October 25-26, 2007, in Orlando, Florida
<http://2007.ruleml.org>, co-located with The 10th International
Business Rules Forum <http://www.businessrulesforum.com>. RuleML-2007 is
devoted to practical distributed rule technologies and rule-based
applications which need language standards for rules operating in the
context of, e.g., the Semantic Web, Web 2.0, Intelligent Multi-Agent
Systems, Event-Driven Architectures, and Service-Oriented Computing
Applications.
The new RuleML-2007 Challenge provides an excellent opportunity to
demonstrate rule-based tools, use cases, and applications (and to win a
prestigious prize). Late-breaking demos for the RuleML-2007 Challenge
are welcome.
Please send title, author(s) and brief description by September, 30th to
ruleml2007(a)easychair.org
<http://2007.ruleml.org/index-Dateien/Page787.htm>.
We will appreciate if you would become a Sponsor:
http://2007.ruleml.org/index-Dateien/Page307.htm
Please have a look at the Levels and their Benefits:
http://2007.ruleml.org/sponsoring/SponsorshipPackage.pdf
Thank you,
RuleML-2007 Organizing Committee
18 years, 3 months
rules name
by Raffaele Viola
Hi all,
can I set using the decision table the name of each rules?
thanks
Raffo
18 years, 3 months