No rules loaded when reading package from Guvnor
by sgo
Hello all,
I'm a semi-beginner with Drools and am having an issue I haven't found
reported elsewhere.
I have a package defined in Guvnor, with model imported from JAR, one
global, a dozen rules and a couple of test scenarios. The package is loaded
from the binary published by Guvnor via a knowledge agent into my stateless
session (defined in Spring beans), but no rules ever fire. (Note that rules
do fire as expected in my Guvnor test scenarios.) When investigating in
debug mode, I see the package is properly loaded, with imported type
definitions and global, but no rule is in there! The package's rules table
is empty and I really have no clue why (I initially thought my rule
definitions could be the cause and created a minimal test package with just
one simple rule but with no success.)
Could anyone point to possible causes for this?
Many thanks in advance.
Simon
--
View this message in context: http://drools.46999.n3.nabble.com/No-rules-loaded-when-reading-package-fr...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
How to handle generics in Drools?
by Martin A
Hello,
In my rules file I'd like to set something like this:
rule "mayThrowDice"
when
$user : User($gp : gameplay)
$gameplay(this == $gp)
then
exists List<Boost>() {
..... some business logic
}
end
But it looks like there is no generics support. How can I make sure there is
a List of type Boost inserted into the session?
Thank you,
Martin
13 years, 1 month
drools stateful session, cluster and replication
by Rules
>From the documentation i understand that statefulknowledge session can be
persisted.
Can we also replicate the session/working memory across servers and still be
able to maintain the integrity of facts and rete tree ?
Is there a way i could replicate asserted facts incrementally or do i have
to replicate the entire session each time (i consume events from external
systems that could bring in new facts and alter existing facts) ?
I am considering an app server provided replication that uses multi
casting/uni casting and i will have a lot of data in working memory, around
3 GB. what are my options if i want to replicate it across cluster ?
Appreciate any help...
--
View this message in context: http://drools.46999.n3.nabble.com/drools-stateful-session-cluster-and-rep...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
Problem with Guvnor+Jboss Console
by olfa rejeb
Dear Ms/Mr,
I have downloaded jbpm-install (jbpm-5.1.0.Final-installer-full) and
installed jbpm by “ant install.demo”.,After I execute “ant start.demo”,
However, seems to be going wrong when running the a web-based application
like the jbpm-console, Guvnor and the Designer :
I can’t access http://localhost:8080/jbpm-console and
http://localhost:8080/drools-guvnor by Google Chrome or Firefox? What can I
do?
And when I use eclipse to store bpmn diagram into Guvnor, I can’t use the
existent guvnor database, why ?
I attachedto the mail screenshots of the errors and the jbpm-installer/
jboss-5.1.0.GA/server/default/log directory.
Thank you for your response
Best Regards
--
REJEB.OLFA
Doctorante /PhD student
Centre Génie Industriel - Ecole des mines d'Albi-Carmaux
Campus Jarlard - Rte de Teillet - 81013 ALBI cedex 09
Mail: olfa.rejeb@mines-albi
Tél :+33 (0)5 63 49 32 66
--
REJEB.OLFA
Doctorante /PhD student
Centre Génie Industriel - Ecole des mines d'Albi-Carmaux
Campus Jarlard - Rte de Teillet - 81013 ALBI cedex 09
Mail: olfa.rejeb@mines-albi
Tél :+33 (0)5 63 49 32 66
--
REJEB.OLFA
Doctorante /PhD student
Centre Génie Industriel - Ecole des mines d'Albi-Carmaux
Campus Jarlard - Rte de Teillet - 81013 ALBI cedex 09
Mail: olfa.rejeb@mines-albi
Tél :+33 (0)5 63 49 32 66
13 years, 1 month
Property access on Java Beans (POJO's)
by kapokfly
This is what is documented
/"
Any bean property can be used directly. A bean property is exposed using a
standard Java bean getter: a method getMyProperty() (or isMyProperty() for a
primitive boolean) which takes no arguments and return something. For
example: the age property is written as age in DRL instead of the getter
getAge():
Person( age == 50 )
// this is the same as:
Person( getAge() == 50 )
Drools uses the standard JDK Introspector class to do this mapping, so it
follows the standard Java bean specification.
"/
Apparently this is from Spring:
"The StandardEvaluationContext is where you may specify the root object to
evaluate against via the method setRootObject() or passing the root object
into the constructor. You can also specify variables and functions that will
be used in the expression using the methods setVariable() and
registerFunction(). The use of variables and functions are described in the
language reference sections Variables and Functions. The
StandardEvaluationContext is also where you can register custom
ConstructorResolvers, MethodResolvers, and PropertyAccessors to extend how
SpEL evaluates expressions. Please refer to the JavaDoc of these classes for
more details.
"
Can drools do the same to allow custom resolver, which would be quite useful
in our use cases.
Ivan
-----
Ivan, your Panda, forever
--
View this message in context: http://drools.46999.n3.nabble.com/Property-access-on-Java-Beans-POJO-s-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
Guvnor: Work in progresss - Guided Decision Table editor and Template Data editor
by Michael Anstis
I am refactoring the mergable grid widget, used by the captioned, to an
event-based design and have pushed changes to the master branch in github.
I pushed the changes as Jervis Liu is completing a major re-organisation of
the Guvnor code-base this week and I didn't want to end up with merge
conflict hell :)
The changes, at this stage, are incomplete. Consequently the captioned
editors do not fully work at the moment in the master branch. 5.3.0.Final
is unaffected.
So, if you get the latest code github's master branch be warned. My changes
will complete this week or early next.
With kind regards,
Mike
13 years, 1 month