Rule Template when cell is empty, or ""
by djb
Hi,
I am using rule templates now...
and I am populating the cells with the empty string, "", when it is not
applicable.
But if the variable mapped to the "" is used, it just wipes out the whole
condition that it is used in. Same for null.
(I'm printing out the DRL rules to see what is generated).
It works fine if I artificially place values in all the cells...
Do I have to put some placeholder like "N/A" everywhere an empty cell shows
up?
Please help,
Thanks
Daniel
--
View this message in context: http://n3.nabble.com/Rule-Template-when-cell-is-empty-or-tp184391p184391....
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months
How does KnowledgeAgent cache rule in case URL is temporarily unavailable
by Wing
Hello,
I read that the old Drools APIs include RuleAgent in which you can specify a
cache directory in RuleAgent.properties file to keep a local copy of the
rules in case the remote URL is temporarily unavailable.
Now, with the new Drools APIs, the RuleAgent is replaced by KnowledgeAgent.
But I do not see that you can specify any directory for caching the rules in
ResourceChangeScannerConfiguration for KnowledgeAgent.
How does KnowledgeAgent cache rules in case the URL is temporarily
unavailable? How do I turn on rule cacheing for KnwledgeAgent when the URL
is temporarily unavailable?
thanks for your help!
Wing Tang
--
View this message in context: http://n3.nabble.com/How-does-KnowledgeAgent-cache-rule-in-case-URL-is-te...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months
Creating excel decision tables
by Jeffrey Schneller
How would you create something similar the below rules in a decision
table. The value of the ChoiceOption is actually an Interface which
OptionValue and ItemValue bath implement. Any ideas?
Thanks.
rule 'test'
dialect 'mvel'
when
$o : ChoiceOption(sku=="mount")
OptionValue(value == "inside") from $o.value
then
log("works");
end
rule 'test2'
dialect 'mvel'
when
$o : ChoiceOption(sku=="opt3")
ItemValue(value == "123") from $o.value
then
log("works");
end
14 years, 10 months
Open Source Healthcare Event (last week of March)
by Mark Proctor
http://blog.athico.com/2010/02/open-source-healthcare-event-last-week.html
Last November I bloggged about the great news for collaboration on
Drools between the US Navy and OSDE (Argentinian health care). This is
with a focus of potentially enabling Drools as an important component
for the Open Source Healthcare Connect
<http://www.connectopensource.org/display/Gateway/CONNECT+Community+Portal>project,
which provides a gateway into NHIN.
<http://healthit.hhs.gov/portal/server.pt?open=512&mode=2&cached=true&objI...>
Since then we've had other heath care organisations show an interest in
getting involved at some level. So it made sense that we should
potentially organise another event, similar to last years boot camp, but
specifically for the healthcare community.
The event will cover the usual intro into Drools, along with additional
talks on the recent developments of Drools; such as our
simulation/testing frameworks and service frameworks. We would ideally
like to keep this industry and academic research focused. That means we
will need as many third party industry and academic research talks as
possible and break out sessions to discuss requirements and potential
collaborations.
So whether you want to come along and tell the world about your research
projects, requirements and ideas or just see what others are up to, or
just find out what Drools is about, this should be a useful event for
anyone in the healthcare industry.
If this interests you, either as an attendee or a presenter, then please
let me know. The date is quite soon, tentatively last week of March and
at the Duke University in North Carolina for 3 days.
Mark
14 years, 10 months
Drools noob queries
by davido
Drools noob queries
We are examining Drools for use in an insurance company. The scenario under
consideration is underwriting rules. These rules are used in several
processes e.g. quotes, adjustments, renewals etc.
To help us in our assessment I was hoping you may be able to answer/provide
guidance on the “noob” queries towards the end of this mail.
For now we are looking at the Quotes process. Basically we’d like to
replicate the existing process which goes something like this:
1. Check for minimum data requirements to complete process
2. Decide if data will cause an outright decline
3. Decide if data will cause an referral for human review
4. Calculate the premium required for a range of potential options that the
end user will choose from i.e. we calculate several possible premiums
The calculation process is pretty much a linear one. We never revisit any
step once it has been passed through.
In terms of execution the process is stateless. As part of the process there
are look-ups to several large in memory collections. These collections would
not change during execution. There may be several versions of the
collections in memory at any one time (we could be supporting old and new
rates at the same time and choose which to use based on a business date).
Questions
I’m assuming we can use Flow do dictate the execution process?
Can we load the in memory collections and rules just once and keep this
alive 24/7. We are mostly using thread safe singleton Spring beans in the
rest of the app and we’re hoping a similar concept exists in Drools.
What books would you recommend that would best suit our needs?
--
View this message in context: http://n3.nabble.com/Drools-noob-queries-tp182561p182561.html
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months
Weblogic rules to Drools rules.
by kashif10
Hi,
We have a product using weblogic server & weblogic rules.
We are planning to move our application to jboss As using drool rules.
Brief intro of our rules:
Currently we have around 20K rules in our databse. We load all those rules
form our database in to weblogic Rule Manger. All those rules loaded in to
Rule manger with rule ID as key & Rule Data as values. we can simply add
new ruels on run time we can remove any rule form RuleMnager at runtime.
Then we have catalogs in out databse pointing those rules.
So whenever user inputs some data & ask to evaluate that data with some
catalog.
Then we simply add user data in WM & get rules from Rule manager one by one
& evaliate the rule on the basisi of WM. In the end we send the
alerts/result to user.
My questions:
i) Is there a rule manger Api in drools to whoch we provide rule Id along
with rule data to load rules in memory.
& we can remove & add furtgur rules in to it.
Also how effecient is it to load & evaluate more than 20K rules.
ii) I don't find RuleSet in ApI, whats the replacement of it?
iii) Any link having good example to load rules & then evaluate a set from
this a caalog type of case.
I hope your precious answers will help us a lot to make the decision.
Thanks.
--
View this message in context: http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p126265.html
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months
Stateless Vs Stateful Sessions in Webtier
by Pritam
It isn't clear from the documentation and examples on the recommended usage
of knowledge sessions. From Michael Bali's book, it is highly recommended to
use StatelessKnowledgeSession, since it's threadsafe, but a quick look at
the API shows that it doesn't support many of the features of stateful
ksession.
-- cannot pass agendaFilter
-- cannot use agenda-group, activation-group or ruleflow-group in statelss
ksession
-- It looks like one cannot get Agenda from a statelss ksession and hence
cannot use clear() or setFocus()
...
Drools says, for rules itself, "it doesn't matter whether you use stateless
or stateful ksession ..." then why is that an entire set of metadata like
grouping and ordering is ignored?
If statefulknowledge session isn't threadsafe, then what are the best
practices and considerations for making it threadsafe?
--
View this message in context: http://n3.nabble.com/Stateless-Vs-Stateful-Sessions-in-Webtier-tp130284p1...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months