Semantic Web Drools Module, Request for Feedbak
by Xavier Breton
Hi,
I'm looking for feedback, I'll develop a Semantic Web Drools Module that
will be the subject of my Master Degree Tesis.
The idea is to use Eclipse Modelling Framework (EMF) for prototyping and
follow a Model Driven Architecture (MDA) where the source language is
Semantic of Business Vocabularies and Business Rules (SBVR) and the target
language is Drools DRL.
The mapping could be (PIM level):
- Semantic Web Rule Language (SWRL)
- Ontology Web Language (OWL)
- RuleML
- Rule Interchange Format (RIF)
- REWERSE Rule Markup Language (R2ML)
It could be added to the module at the source UML or Entity Relationship
like models to transform the models into SBVR.
Regards
Xavier Breton
10 years, 9 months
Attach custom editor on guided decision table cell
by c3310082
Hi,
We would like to render a custom editor when a user double-clicks on a cell
that is present in web guided decision table in Guvnor 5.1 (or later). The
custom editor needs to be invoked for cells that represent a particular fact
model attribute only.
This is somewhat similar to WS custom forms functionality available for
guided business rules.
So far we have seen the
org.drools.guvnor.client.decisiontable.GuidedDecisionTableWidget class that
contains implementation for:
public void onCellDblClick(GridPanel grid,
int rowIndex,
int colIndex,
EventObject e)
in the GridCellListenerAdapter class that opens up text editor or drop down
editor.
We're new to GWT and Guvnor so would appreciate it if anyone can provide the
high level steps.
Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Attach-custom-editor-...
Sent from the Drools - Dev mailing list archive at Nabble.com.
12 years, 1 month
Guided Editor in BRMS / Guvnor Version 5 (Snapshot of 26 June)
by Paul Browne
Folks,
For various reasons I'm trying out the Guided Editor for Business Rules in
the Guvnor Version 5 (Snapshot of 26 June from Hudson, deployed on JBoss App
Server 4.2.2GA).
I've created the Package / Category and uploaded a simple fact model (as
works in BRMS version 4). I create a new business rule using the guided
editor and the screen shows successfully with both 'When' and 'Then'
parts.Assume the next question is due to me missing something, but wanted to
double check:
When I press the green '+' to the right of the screen I am shown the message
/ dialog layer saying '
*Add a condition to the rule... *or* Add an action to the rule.
*Problem is that there doesn't appear to be a way of adding a condition or
action. The only thing I'm seeing in the logs is
* (Contexts.java:flushAndDestroyContexts:335) could not discover
transaction status
*Am I missing something or should I come back to Guvnor later in the
development Cycle?
Thanks
Paul
12 years, 8 months
Drools on android
by Justin King
Hi All,
I'm wondering if anyone has tried to use drools in a google android
application, and if so what problems did you have? I'd also be interested to
know if its even possible!
Thanks!
--
Regards,
Justin King
PhD Candidate
Faculty of Information and Communication Technologies
Swinburne University of Technology
http://www.ict.swin.edu.au/ictstaff/justinking
--
Regards,
Justin King
PhD Candidate
Faculty of Information and Communication Technologies
Swinburne University of Technology
http://www.ict.swin.edu.au/ictstaff/justinking
12 years, 11 months
Decision table - Otherwise
by Michael Anstis
Hi,
I'm adding support for "otherwise" to (for the time being) the guided
decision table in Guvnor.
The idea being if you set a cell to represent "otherwise" the generated rule
is the opposite of the accumulation of the other cells; perhaps best
explained with an example:-
Person( name == )
Mark
Kris
Geoffrey
<otherwise>
This would generate:-
Person(name not in ("Mark", "Kris", "Geoffrey")
Equals is the simple example, this is my thoughts for the other operators we
might like to support:-
- != becomes "in (<list of the other cells' values)"
- < becomes ">= the maximum value of the other cells' values
For example:-
Person ( age < )
10
20
30
<otherwise>
Person ( age >= 30 )
- <= becomes "> the maximum value of the other cells' values
- > becomes "<= the minimum value of the other cells' values
- >= becomes "< the minimum value of the other cells' values
- "in" becomes "not in (<a list of all values contained in all the other
cells' lists of values>)"
For example:-
Person ( name in )
Jim, Jack
Lisa, Jane, Paul
<otherwise>
Person ( name not in ("Jim", "Jack", "Lisa", "Jane", "Paul" ) )
- I'm not sure there is a simple solution for "matches" and "soundslike"
but welcome advice, although a possibility might be to create a compound
field constraint:-
Person ( name soundslike )
Fred
Phil
not Person ( name soundslike "Fred" || soundslike "Phil" )
Would this be considered the most suitable approach?
Inputs and thoughts welcome.
Thanks,
Mike
13 years, 7 months
Forking to apply manual patch
by Leonardo Gomes
Hello Guys,
I didn't actually followed-up on all emails about the Git repository, but I
think that it should be simple.
*Problem:*
I would like to manually apply the changes that I did into
lr_unlinking_20101116 branch (+ some other changes I didn't commit yet) to
the newly split repositories.
I modified: drools-api, drools-core, drools-compiler.
*Solution:*
- Fork https://github.com/droolsjbpm/droolsjbpm-knowledge for the drools-api
changes
and https://github.com/droolsjbpm/drools for the others (core and compiler).
- Manually apply my patches, create a pull request.
Is that correct? Anything else to keep in mind?
Thanks,
Leonardo.
13 years, 7 months
Query on drools
by praveen p
Hi,
We need to make a decision on whether to use Jboss drools for our project,
please help me out on this. We are planning to develop a tool which
generates random test data based on some conditions. These conditions can be
something like age>18<60, 6 lettered string containing only first four
letters of an alphabet, Amount=Price*quantity. We are planning to store
these conditions in drools rule engine and generate data based on them. The
java application has to connect to drools, fetch the rule associated with a
property, get back to java layer and generate some output based on these
rules. Is this possible using drools? Please let me know the possibility and
provide some clarity on it.
Regards,
Praveen.
13 years, 8 months
Proxy classes and setGlobal
by Laird Nelson
I am attempting to set a global to the value of a looked-up session bean.
The global is defined as being of the business interface type.
When I look up this EJB, and attempt to set the global,
AbstractWorkingMemory barfs at line 615 (5.2.0 HEAD) saying that my EJB
reference is not in fact an instance of the proper type. This is because of
course the EJB reference is a dynamic proxy class generated by the EJB
container. So the stack looks like this:
Expected [com.foobar.Responses], found [$Proxy143].
at
org.drools.common.AbstractWorkingMemory.setGlobal(AbstractWorkingMemory.java:615)
at
org.drools.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:319)
The comparison is being done by AbstractWorkingMemory by taking (in my case)
Responses.class (an interface--the correct interface) and doing this:
Responses.class.isInstance(theProxyISupplied);
This returns false.
Actually, this surprised me: the Java notes on dynamic proxy classes
indicate that the following statement must return true:
theProxyISupplied instanceof Responses;
...but they say nothing about the Class#isInstance(Object) method.
Is there an additional edge case comparison here that needs to happen?
Thanks,
Laird
13 years, 8 months
Drools plugin for Grails
by Pablo Nussembaum
Hey All,
I just released a new version of the drools-gorm plugin based on the lastest stable version of Drools and jBPM 5.
Feel free to use and report bugs! ;-)
Thanks!,
--
Bauna
13 years, 8 months