Compiling rules using maven?
by Ansgar Konermann
Hi,
is there any official support for compiling *.drl files into
pre-compiled binary rule packages using a maven plugin?
I found reminescents of a maven plugin in the ticket tracking system,
but the code seems to be orphaned.
Thanks in advance
Ansgar
15 years, 6 months
Drools Flow Fluent API and the StateNode
by Daniel Nathanson
Hi,
How can I create a StateNode using the DroolsFlowProcessFactory? I'm
using Drools 5.1.1 and the StateNode exists, but there is no method:
StateNodeFactory stateNode(long)
available. For that matter, there is no StateNodeFactory class either.
Is this an oversight? Do I need a newer version of Drools? Is there a
workaround?
Regards,
Dan Nathanson
15 years, 6 months
Can I deploy pre-compiled drools rules as OSGi bundles?
by Ansgar Konermann
Hi,
I heard that drools was called "OSGi ready" some time ago. As I am new
to OSGi, I'd like to hear some opinions on whether the following
scenario would work for rules deployment:
For the drools part:
- pre-compile all rules into a binary package file
- include these file as a resource into an OSGi bundle
- put a configuration file, say drools-rules.xml into META-INF,
containing references to all the rule files/resources which should be
loaded/used
For the OSGi part:
- create an extender bundle which uses the information from the
configuration file of the above bundle
- automatically de-serializes the rule packages and
- registers a service which offers methods to run the rules contained in
the rules bundle
The service interface in my case would be project-specific, and would be
the same for all rule bundles. We have multiple customers, each with
their own implementation of a ruleset for risk estimation. Each service
instance could carry a property configured in the
META-INF/drools-rules.xml file, making it easy for client code to find
the correct service instance to call.
What I'm particularly interested in:
- does Drools support being used in an OSGi setting as sketched above?
- can anyone estimate whether I will I into class loading issues?
Thanks in advance
Ansgar
15 years, 6 months
Integrating Drools Fusion and JBPM5
by Plug Tree
Hi guys, just wanted to share a little post that we wrote about the
integration of CustomEventListeners in JBPM5 and CEP in Drools Fusion to
control processes.
<%20http://www.plugtree.com/?p=26492>
ttp://www.plugtree.com/?p=26492 <%20http://www.plugtree.com/?p=26492>
Feedback is appreciated ! Thanks!
Plugtree LLC
15 years, 6 months
Drools definitive list of Error Codes
by Murali Venugopal
Hi,
I looking forward to find a Definitive List of Error codes and their definitions. Please help me to find and understand them.
eg: [ERR 102], [ERR 101]
_ _ _ _ |.
| | ||_|| (_||| \/
Get your world in your inbox!
Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id!
Log on to http://www.sify.com
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin(a)sifycorp.com
15 years, 6 months
[Announce] EulerGUI 1.7.1
by Jean-Marc Vanel
Reminder:
EulerGUI is a GUI for Semantic Web plus rules, centered on the N3 language.
It is Open Source, written in Java Swing, and reuses Drools, Jena, etc.
It has an N3 textual editor, with syntax coloring, tooltips. This N3 editor
is reusing the famous jEdit editor.
EulerGUI includes SPARQL queries, Pellet OWL reasoner, Graphviz diagram,
etc.
It has importers for OWL+SWRL ontologies, plain XML, plain XML, UML, eCore,
java bytecode (just method signatures).
It can launch several N3 logic engines, the main being based on Drools, by
translating N3 rules (adapted to the Semantic Web) to Drools rules language.
For Drools users, the main new features are:
- Drools N3 engine :
* Use Drools' insertLogical() feature for automatic retraction of
consequences no more holding,
* implement e:max, e:min (with dynamic RDF lists coming from e:findall)
* better handling of RDF lists, predicates list:in, math:memberCount
* better translation of e:findall
* fewer calls to the eval() macro of Drools,
* implement add and multiply builtins with more than 2 operands
* eg:trace works with variables created in an algebraic formula
* Jos de Roo's owl rules for OWL now passes Drools translation
- new cache for compiled rule bases using OSCache
- new N3 - Java
mapping<http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/a...>,
leverages on Drools to call Java methods in real time from N3 rules; will
replace the JavaScript+Java translator in most places
More details in the
CHANGELOG<http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/CHANGELOG>
.
--
Jean-Marc Vanel
Consulting, services, training,
Rule-based programming, Semantic Web
http://jmvanel.free.fr/
EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java
bytecode
+33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16
( we rarely listen to voice messages, please send a mail instead )
--
Jean-Marc Vanel
Consulting, services, training,
Rule-based programming, Semantic Web
http://jmvanel.free.fr/
EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java
bytecode
+33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16
( we rarely listen to voice messages, please send a mail instead )
15 years, 6 months
Guvnor and designer/editor...
by bob.breitling
Hey everybody,
I am trying to get the designer/editor and Guvnor working together. When I
edit a BPMN file the editor appears but the iframe it runs in has an
attribute of height=100%, which does not work with FF3 (and other browsers).
Has anybody seen the problem? and is there a solution for it. I am running
build 1.0.0.33 of the designer/editor. I can not get 1.0.0.49 to deploy.
Always complains about a SLFJ class not being found.
Thanks in advance.
Bob
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-and-designer-e...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 6 months
Swing GUI & Drools
by albertkao
I want to find out whether Swing GUI, Drools 2.5 (the only version approved
by my company) & JDK 1.6.20 are a good fit for my application.
i.e. whether my application is complex enough to use Drools.
If Drools should be used, please give some hints how to implement with
Drools 2.5.
The business logic is:
if (Entity = Corporation) {
Switch (Account type) {
1: the Entity dropdown box field should be greyed out; the In
checkbox should be enabled.
2: the Entity dropdown box field should be greyed out; the Out field
should be selected.
3: the Entity dropdown box field show all the available values;
4: the Entity dropdown box field show value1, value2 only.
} else {
// ...
}
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Swing-GUI-Drools-tp22...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 6 months
Drools 5 - Is there an interactive shell for it? And can I define objects in that shell?
by dc tech
I've used Jess before and one of the things that I really found helpful was
it has an interactive shell and the fact that you can model fact definitions
(deftemplate - equivalent to a Java class) and insert facts (via assert) in
the shell directly. That allowed for very easy experimentation without
getting into too much programming. An example is provided below and you can
see that examples like this are easy to experiment with.
Is there an equivalent interactive shell in Drools? Would it allow the
definition and creation of Facts in this fashion?
Or do most of you just cut the java code to experiment?
>> SAMPLE JESS CODE
; This is equivalent to a Java class definition
(deftemplate day_time
(slot time_of_day)
(slot day_of_week)
)
; Rule 1
(defrule have_a_nice_weekend
(day_time (time_of_day EVENING) (day_of_week FRI))
=>
(printout t "Good night. Have a great Weekend")
)
; Rule 2
(defrule tgif
(day_time (time_of_day MORNING) (day_of_week FRI))
=>
(printout t "Good Morning. Aren't you glad its Friday?")
)
; Insert a Fact
(assert (day_time (time_of_day EVENING)(day_of_week FRI)))
; Execute whatever is on the agenda
(run)
15 years, 6 months