Guvnor to build rules for Drools Fusion
by cyphr
Hi,
I've been looking into Drools for a couple of weeks now - with more serious
attention to Drools fusion.
There are some things am not able to gauge accurately, please help me out
here.Drools Fusion appears to be able to handle what i want.
The challenge is to have an end user (read Business User , Completely
Non-Technical Folk) interface to make these complex rules from a webpage. Am
not able to clearly assert if Guvnor will be able to craft CEP oriented
queries from the UI, and will it be possible for completely non techie
person to do that too...
a. Can this be achieved - build rules (free form, not template based)
without Technical know how ( of Drools or CEP).
b. Can Guvnor be used to achieve this ?
The UI should be capable of making rules that -
1. Correlate different types of events across different time windows.
2. Certain rules might need caching and storing of the facts for a longer
period of time.
3. Slightly complex rules which can correlates values inferred from other
rules over various time windows again AND specify a series of actions that
need to be done if the condition is matched - like storing those inferred(or
accumulated) values into a database or sending out an email.
I am seeking inputs to these two questions - can someone throw some light
here?
Thanks in anticipation.
Regards,
Rishi
PS: Thanks to Edson for the trunk docs - wonderfully written for any newbie
to jump right in (cant wait to see the rest, though).
--
View this message in context: http://www.nabble.com/Guvnor-to-build-rules--for-Drools-Fusion-tp23553352...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 6 months
Lists and enums in Drools
by Armaghan Mahmud
Hi,
I need help with constructing rules for my scenario.
I started off by creating enum values in the main java file and comparing
them with the rules to get different responses for different enum values.
That was easy.
This time, I'm constructing a list of enum values and passing them into the
rules engine as well. I would like to configure my rules in such a way that
when they look for the different enum values, they should also look in the
list to test if the enum value passed into the rules engine is a member of
the list or not. My old rules looked like this:
rule "Testing for Alpha"
salience 100
when
alpha : AlphaWrapperClass(type == Class.ALPHA)
then
System.out.println("Found Alpha");
alpha.isFound(true);
end
I tweaked the above rule to :
rule "Testing for Alpha"
salience 100
when
$test: AlphaEnumCollectionsWrapperClass(alphaList : alphaList)
alpha : AlphaWrapperClass(type == Class.ALPHA && $test contains type )
then
System.out.println("Found Loudspeaker Equipment. Who wants to jam that?
Must resist... Jamming sequence in progress... ");
materiel.setJam(true);
end
But I'm seeing the following error:
org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for
'$test' of '[ClassObjectType classAlphaEnumCollectionsWrapperClass]' in rule
"Testing for Alpha": [Rule name=Testing for Alpha, agendaGroup=MAIN,
salience=100, no-loop=false]
I'd greatly appreciate your help.
Thanks,
Armaghan
15 years, 6 months
NullPointerException with Wrapper objects
by dhai
I am facing problems which many have encountered in the past. I searched
forums but could not get precise answer. The problem is with null values in
Wrapper objects. See the following code:
rule "Null Check " salience 100
when
Salary ( ld : loanDeduction==null || < 0f ) // loanDeduction
is java.lang.Float
then
log("Load return is null"); //Global function
ld = 0f;
end
rule "Nett Salary" salience 70
when
Salary ( nett != ( gross – loanDeduction – pf) )
then
log("Invalid nett salary amount");
end
You may have idea what I am trying to do. But I get NullPointerException in
“Nett Salary” rule when I fire the rules having fact with null in the
loanDeduction attribute. I believe my “Null Check” exception should execute
first and it does when I put negative value in loadDeduction. What is
solution in such a case?
--
View this message in context: http://www.nabble.com/NullPointerException-with-Wrapper-objects-tp2351550...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 6 months
when will drools guvnor support the drools rule template(drt)?
by Tao Yang
hi, all
we use the drools rule template and decision table in our project
development, and we want to use drools guvnor to manage those templates and
tables but we find the drools guvnor don't support the drools rule
templat(drt). who can tell me when drools guvnor supporting the drools
rule template(drt)? thanks a lots.
best regards
Chris
2009.5.13
15 years, 6 months
KnowledgeAgent and Pipeline
by David Zeigler
Hi,
I've set up the KnowledgeAgent to automatically reload the rules
resources if they change. If I use this with a Pipeline, it seems
that its StatelessKnowledgeSession is not reloaded automatically. The
only way I've been able to get the Pipeline to reflect the rules
change is to do the following prior to each pipeline.insert():
StatelessKnowledgeSession ksession =
kagent.getKnowledgeBase().newStatelessKnowledgeSession();
Pipeline pipeline =
PipelineFactory.newStatelessKnowledgeSessionPipeline(ksession);
pipeline.setReceiver( messageTransformer );
Reloading the pipeline for each request adds a lot of overhead (halves
my transactions per second). Is there a way to automatically reload
the Pipeline's session when its needed instead of recreating the
Pipeline prior to each insert? I see there is a
ResourceChangeListener interface that I could probably use to
accomplish this, but I figured I'd ask in case there is a better way
to handle this case with pipelines. What's the best approach?
I'm using 5.0.0.CR1.
Thanks!
David
15 years, 6 months
Drools Flow Trigger process by ruleset
by Garrett Conaty
I've seen in the latest docs on trunk that it's possible to set some
constraints on a start node so that a process would execute when the
appropriate rules matched.
However I can't see an example of this, nor can I edit the properties
through the Eclipse UI.
Is it possible to define a condition under which the process will
execute and then have the process start when the rule matches. Is
this done external to the rule file or can it be done on the rulefile
itself? I could see a few ways of doing this and am looking for some
guidance towards the correct (read as easiest for biz users) method.
1) Kick off a process that the first node after the start is a
ruleflow group (serving basically as a gate)
2) Deploy a rule that when it matches starts up the process (separate
rule file and separate ruleflow file)
3) Define a start condition in the rule file and deploy the process.
Then whenever the rule matches, a process instance is started.
Personally I like #3 and the docs seem to imply it's possible, but I
can't see how.
Thanks,
Garrett
15 years, 6 months
Using groovy classes as Fact Classes in Guvnor
by leesy84
Hi
I am currently trying to implement Drools 5.0.CR1 with grails, I have
created a couple of domain classes which are simple Groovy classes with a
couple of fields. I want to load these classes as my model into Guvnor and
then create rules using those classes. I am having a few problems when
"Saving and Validating" my configuration. I have a war file that is
generated using maven and it has my classes files inside it in
/WEB-INF/classes/ . I load the war as my model and the classes are shown on
the packages main page but the following error is given when pressing "Save
and Validate configuration"
[ERR 102] Line 1:10 mismatched input '-'
I have also tried using groovyc to compile my class files then jar'ing them
up and loading that as the model but got another error:-
java.lang.ClassNotFoundException: groovy.lang.GroovyObject
I was wondering if it is possible to use groovy compiled class files and if
it is then does anyone know what my issue might be or how it is meant to be
done correctly.
Thanks in advance for any help
Daniel Lees
--
View this message in context: http://www.nabble.com/Using-groovy-classes-as-Fact-Classes-in-Guvnor-tp23...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 6 months
2nd CFP RuleML-2009 - 3rd International Symposium on Rules, Applications and Interoperability
by Adrian Paschke
-----------------------------------------------------------------------
Our apologies if you receive duplicates of this posting.
Please feel free to distribute it to those who might be interested.
-----------------------------------------------------------------------
Call for Papers
RuleML 2009
3rd International Symposium on Rules, Applications and Interoperability
November 5-7 2009, Las Vegas, Nevada, USA
http://2009.ruleml.org/
****************************************************************************
*Latest news *
*Student grants of the value of up to $1000 plus free registration *
*Keynote by Sandro Hawke, W3C RIF Contact - The Future of Rule Interchange*
*Prestigious prizes and new categories in the RuleML Challenge *
****************************************************************************
Sponsored by
============================================================================
Franz Inc
NICTA (National ICT Australia) Ltd
Corporate Semantic Web
Logic Programming Associated Ltd
Modelsystems Ltd
ruleCore
============================================================================
Overview and Aim
============================================================================
The International Symposium on Rules, Applications and Interoperability has
evolved from an annual series of international workshops since 2002,
international conferences in 2005 and 2006, and international symposia since
2007. This year, the 3rd International Symposium on Rules, Applications and
Interoperability (RuleML-2009) takes place in Las Vegas, Nevada, USA,
collocated with the 12th Business Rules Forum, the world's largest Business
Rules event. RuleML-2009 is devoted to practical distributed rule
Technologies and rule-based applications which need language standards for
Rules (inter)operating in, e.g., the Semantic Web, Multi-Agent Systems,
Event-Driven Architectures, and Service-Oriented Applications.
The main goal of RuleML-2009 is to stimulate the cooperation and
interoperability between business and research, by bringing together rule
system providers, participants in rule standardization efforts, open source
communities, practitioners, and researchers. The concept of the symposium
has also advanced continuously in the face of extremely rapid progress in
practical rule and event processing technologies. As a result, RuleML-2009
will feature hands-on demonstrations and challenges alongside a wide range
of thematic tracks, and thus will be an exciting venue to exchange new
ideas and experiences on all issues related to the engineering, management,
integration, interoperation and interchange of rules in open distributed
environments such as the Web.
Conference Theme
============================================================================
This year, we particularly welcome submissions that address applications of
Web rule technologies for business and information systems. We invite you to
share your ideas, results, and experiences: as an industry practitioner,
rule system provider, technical expert and developer, rule user or
researcher, exploring foundations, developing systems and applications,
or using rule-based systems. We invite high-quality submissions related to
(but not limited to) one or more of the following topics:
Track Topics
----------------------------------------------------------------------------
Rule Transformation and Extraction
- Transformation and extraction with rule standards, such as SBVR, RIF and
OCL
- Extraction of rules from code
- Transformation and extraction in the context of frameworks such as KDM
(Knowledge Discovery meta-model)
- Extraction of rules from natural language
- Transformation or rules from one dialect into another
Rules and Uncertainty
- Languages for the formalization of uncertainty rules
- Probabilistic, fuzzy and other rule frameworks for reasoning with
uncertain or incomplete information
- Handling inconsistent or disparate rules using uncertainty
- Uncertainty extensions of event processing rules, business rules,
reactive rules, causal rules, derivation rules, association rules,
or transformation rules
Rules and Norms
- Methodologies for modeling regulations using both ontologies and rules
- Defeasibility: modeling rule exceptions and priority relations among
rules
- The relationship between rules and legal argumentation schemes
- Rule language requirements for the "isomorphic" modeling of legislation
- Rule based inference mechanism for legal reasoning
- E-contracting and automated negotiations with rule-based declarative
strategies
Rule-based Game AI
- Rule-based movement, decision making, strategies, behavior design
- Rule-based environmental programming, virtual reality
- Rules for multi-agent/character games
- Rules for serious games
- Rule-based agent design
Rule-based Event Processing and Reaction Rules
- Reaction rule languages and engines (production rules, ECA rules, logic
event action formalisms, vocabularies/ontologies)
- State management approaches and frameworks
- Concurrency control and scalability
- Event and action definition, detection, consumption, termination,
lifecycle management
- Dynamic rule-based workflows and intelligent event processing
(rule-based CEP)
- Non-functional requirements, use of annotations, metadata to capture
those
- Design time and execution time aspects of rule-based (Semantic) Business
Processes Modeling and Management
- Practical and business aspects of rule-based (Semantic) Business Process
Management (business scenarios, case studies, use cases etc.)
Rules and Cross Industry Standards
- Rules in Current Industry Standards, including:
- XBRL: Extensible Business Reporting Language
- MISMO: Mortgage Industry Standards Maintenance Org
- FIXatdl: FIX Algorithmic Trading Definition Language
- FpML: Financial products Markup Language
- HL7: Health Level 7
- Acord: Association for Cooperative Operations Research and Development
(Insurance Industry)
- Rules for Governance, Risk, & Compliance (GRC), e.g., rules for internal
audit, SOX compliance, enterprise risk management (ERM), operational
risk, etc
- Rules and Corporate Actions
General Rule Topics
- Rules and ontologies
- Execution models, rule engines, and environments
- From rules to FOL to modal logics
- Rule-based reasoning with non-monotonic negation, modalities, deontic,
temporal, priority, scoped or other rule qualification
- Rule-based default reasoning with default logic, defeasible logic, and
answer set programming
- Graphical processing, modelling and rendering of rules
- Rules in Semantic Web Technologies(SW), Artificial Intelligence (AI),
Business Process Modeling (BPM), Cloud Computing (CC),
Intelligent Agents, Model-Driven Architecture (MDA),
Software Engineering (SE), Unified Modeling Language (UML),
e-Learning, e-Commerce, ...
- Miscellaneous rule topics
Case studies, experience reports, and industrial problem statements are
particularly encouraged.
RuleML-2009 Challenge
============================================================================
The RuleML-2009 Demo Challenge is one of the highlights of RuleML-2009. We
invite submissions of demos where rules are used in interesting and
practically relevant ways to, e.g., derive useful information, transform
knowledge, provide decision support and provide automated rule-based
monitoring, enforcement, validation or management of the behavioural logic
of the application. The Challenge offers participants the chance to
demonstrate their commercial and open source tools, use cases, and
applications. Submissions are solicited in these categories:
- Benchmarks (test cases, suites) with evaluations of (their own, other)
rule engines and/or rule translators, possibly drawing on our growing
pool at http://ruleml-challenge.cs.nccu.edu.tw
- Case studies (use cases) implemented via engines/translators employing
rule standards such as RIF, RuleML, CLIPS, Common Logic, SBVR, and ISO
Prolog.
We welcome all demos about tools and applications using rules such as:
- Derivation rules, including query and integrity rules
- ECA rules, including production rules, reaction rules, and rule-based
CEP languages
Authors of demo are also invited to submit a Challenge demo paper for
publications in the conference proceedings, see the submission section below
for submission details.
Prizes will be awarded to the two best applications from each category. All
accepted demos will be presented in a special Challenge Session. A
submission to the RuleML Challenge has to meet the requirement that
declarative rules explicitly play a central role in the application.
Basically this means that:
Rules are explicitly represented in a declarative format and they are
decoupled from the application (rather than being compiled or hard-coded
into the application logic). The demo should preferably (but not
necessarily)
be embedded into a web-based or distributed environment so that there will
be a need for features related to the RuleML conference topics, as listed
in the call for papers. For more details and the demo site web link please
consult the RuleML-2009 Challenge website:
http://ruleml-challenge.cs.nccu.edu.tw
Student Grant Awards
============================================================================
Two travel grants are available to students who are authors or co-authors of
papers or demos accepted for presentation at the symposium. The grants
include free registration and cover travel expenses up to 1000 dollars.
Conference Language
============================================================================
The official language of the conference will be English.
Submission
============================================================================
Authors are invited to submit original contributions of practical relevance
and technical rigor in the field, experience reports and show case/use case
demonstrations of effective, practical, deployable rule-based technologies
or applications in distributed environments. Papers must be in English and
may be submitted at
http://www.easychair.org/conferences/?conf=ruleml2009
as:
Full Papers (15 pages in the proceedings)
Short Papers (8 pages in the proceedings)
RuleML-2009 Challenge Demo Paper + Show Cases (3-5 pages in the proceedings)
Please upload all submissions as PDF files in LNCS format
(http://www.springer.de/comp/lncs/authors.html). To ensure high quality,
submitted papers will be carefully peer-reviewed by 3 PC members based on
originality, significance, technical soundness, and clarity of exposition.
Authors are requested to upload the abstracts of their papers before June 9,
2009 and to upload their complete papers by June 16, 2009. The selected
Papers will be published in book form in the Springer Lecture Notes in
Computer Science (LNCS) series along with a CD with demo software and
documents. The best paper from all submissions will be determined by the PC
and
a Best Paper Award will be handed over at the Symposium by a Sponsor. All
submissions must be done electronically. A selection of revised papers will
be
resubmitted to a special issue of a journal.
Submissions to the RuleML Challenge 2009 consist of a demo paper of 3-5
pages, describing the demo show case, and a link to more information about
the
demo/show case, e.g. a project site, an online demonstration, a presentation
about the demonstration, or a download site for the demonstration. In case
of product demos, the link can be password-protected: please submit a
password for anonymous login from any Web browser, giving us the permission
to pass the password on to 3 PC members. The submissions should satisfy the
minimal requirements defined in the topics of interest and preferably
exhibit
some of the additional desiderata. The more desiderata are met by an
application, the higher the score will be. The demos will be evaluated by
the
RuleML-2009 Program Committee and prizes will be awarded to the two best
applications, sponsored by the RuleML Inc. non-profit organization.
Review Process
============================================================================
The submitted papers will pass the blind review process. At least three
members of the Program Committee will review each submission.
Important Dates:
============================================================================
Abstract submission deadline: June 9, 2009
Paper Submission deadline: June 16, 2009
Notification of acceptance: July 18, 2009
Camera ready due: August 9, 2009
Symposium dates: November 5-7, 2009
RuleML Challenge: November 5, 2009
Conference Venue
============================================================================
RuleML-2009 will take place at the Bellagio in Las Vegas collocated with the
Business Rules Forum.
Keynote Speakers
============================================================================
- Sandro Hawke, W3C RIF Team Contact
The Future of Rule Interchange
- TBA
Programme Committee
============================================================================
General Chair
--------------------
Adrian Paschke, Freie Universitaet Berlin, Germany
Program Chairs
--------------------
Guido Governatori, NICTA, Australia
John Hall, Model System, UK
Liaison Chair
--------------------
Hai Zhuge, Chinese Academy of Sciences
Publicity Chair
--------------------
William Langley, NRC-IRAP, Canada
Track Chairs
Rule Transformation and Extraction
--------------------
Erik Putrycz, Canada
Mark Linehan, IBM, USA
Rules and Uncertainty
--------------------
Matthias Nickles, University of Bath, UK
Davide Sottara, University Bologna, Italy
Rules and Norms
--------------------
Thomas Gordon, Fraunhofer FOKUS, Germany
Antonino Rotolo, CIRSFID, University of Bologna, Italy
Rule-based Game AI
--------------------
Benjamin Craig, National Research Council, Canada
Weichang Du, University of New Brunswick, Canada
Rule-based Event Processing and Reaction Rules
--------------------
Alex Kozlenkov, Betfair Ltd., UK
Adrian Paschke, Free Univ. Berlin, Germany
Rules and Cross Industry Standards
--------------------
Tracy Bost, Valocity, USA
Robert Golan, DBMind, USA
RuleML Challenge
--------------------
Yuh-Jong Hu, National Chengchi University, Taiwan
Ching-Long Yeh, Tatung University, Taiwan
Wolfgang Laun, Thales Rail Signalling Solutions GesmbH, Austria
RuleML 2009 Sponsors
============================================================================
Silver Sponsors
--------------------
Franz Inc
NICTA (National ICT Australia) Ltd
Corporate Semantic Web
Bronze Sponsors
--------------------
Logic Programming Associated Ltd
Modelsystems Ltd
ruleCore
RuleML 2009 Partners
============================================================================
W3C, World Wide Web Consortium
Belgian Business Rules Forum
MIT Sloan CIO Symposium
International Association for Artificial Intelligence and Law
Event Processing Technical Society
BPM Forum Belgium
October Rules Fest
SKG2009 5th International Conference on Semantic, Knowledge and Grid
RR-2009 3rd International Conference on Web Reasoning and Rule Systems
15 years, 6 months
Hibernate using JBoss datasource in BRMS
by sreenivas555
Hi All,
I want to use Hibernate and connect to JBoss datasource in BRMS. I am trying
to load the enum values from DB.
Step1: Define datasource in oracle-ds.xml under deployment folder.
Step2: Add the datasource in hibernate.cfg.xml
Step3: Create hibernate session and use it...
Error:
org.hibernate.HibernateException: Could not find datasource: java:/myDS
I tried all the above steps using a JSP, I am able to get the data but it is
not working in drools-guvnor. war.
Can anybody tell me how is drools-guvnor.war differ from normal war file?
Did I miss anystep?
Thanks in advance!!!!!
Thanks,
Sreenivas.
--
View this message in context: http://www.nabble.com/Hibernate-using-JBoss-datasource-in-BRMS-tp23499389...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 6 months