Hi Mauricio Salatino.
Analysing the code of Drools-Process-Task, i found TaskServiceSession. In
this service , has the entitityManager , and he called the
I just wanna to pass a parameter :
To do this, the best way is override a lot of classes?
DroosProcessTask,Cannot provided this for me?
Date: Thu, 29 Oct 2009 15:14:50 -0500
From: Mauricio Salatino <salaboy(a)gmail.com>
Subject: Re: [rules-users] [Droolsflow] Pagination of
To: Rules Users List <rules-users(a)lists.jboss.org>
Content-Type: text/plain; charset="iso-8859-1"
Yes.. also probably you need to extend the named query too..
2009/10/29 Anderson vasconcelos <anderson.vass(a)gmail.com>
> It's possible to build a real pagination search using
> MinaTaskClient.getTasksAssignedAsPotentialOwner() (Using Limit and
> Must I Override the implementation of BlockingTaskSummaryResponseHandler
> rules-users mailing list
I'm going to be interacting with a KnowledgeBase in a web application. I do
not expect the rules to change during the running of the application. I
will be using StatelessKnowledgeSessions exclusively.
My question is: where is the best place to put the various parts, and what
sort of synchronization do I need to worry about? I did not see any
reference to these issues in the (massive, otherwise excellent) Drools
I assume that the best strategy is to:
- Locate the KnowledgeBase in the ServletContext upon startup
- Read in the rule base at startup in a synchronized block (I don't think
the servlet specification guarantees that a ServletContextListener is
thread-safe at startup, but maybe this is overkill)
- During runtime, synchronize on the rule base while acquiring a
StatelessKnowledgeSession from the ServletContext
- Use the acquired StatelessKnowledgeSession freely, without any further
concern for locking (after all, it's stateless, right?)
Could someone please correct me if any of these statements is wrong?
I am new to Drools and trying my hands out at Drools 5. I cann't figure out how to use agenda- groups. I have a small drl file with two agenda groups and one rule per agenda-group. This doesn't seem to work. However if I happen to comment out the agenda-group attribute, the results are as expected.
Please let me know what I am missing.
rule "Detect and Remove Duplicate Shelves"
$universe : LibraryUniverse()
$shelf : Shelf() from $universe.shelves
$shelf2 : Shelf(this != $shelf) from $universe.shelves
System.out.println("Duplicate Shelves found::"+$shelf);
// without the modify(), drools is not alerted about changes
rule "Singleton Shelf Detector"
$universe : LibraryUniverse(shelves.size > 1)
System.out.println("Multiple Shelves found::"+$universe.shelves.size);
Kanthi Swaroop Rongala
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.