Re: [rules-users] Guvnor Help !!

2012-06-27 Thread abhinay_agarwal
hey vincent/manstis/davide, actually as i said its jzz been a few days that i ve been learning GUVNOR , so i make mistakes while asking questions..pardon me for that... (by uploading facts..i meant uploading POJO models jar) :P Now, as you said, rules are used to modify the working memory,i get

Re: [rules-users] Guvnor Help !!

2012-06-27 Thread abhinay_agarwal
hey mike, from uploading facts i meant uploading the jars with classes.. when you say that "Think of the Global Area as a place where assets can be stored to share across packages"..does it mean that if i make a rule in GLOBAL AREA..will that rule be taken into consideration for all the other pa

Re: [rules-users] drools-camel-server > RetractAll() Command?

2012-06-27 Thread Vincent LEGENDRE
... and don't forget the 'Cleanup trigger' cleanup rule too ... You can also do that kind of rule without 'Cleanup trigger', using a very low salience, or specific agenda-group or ruleflow-group. But if you really retract ALL facts, it will be far much faster to create a new kSession (not a new

Re: [rules-users] Guvnor Help !!

2012-06-27 Thread Davide Sottara
Historically, knowledge bases (e.g. think of basic prolog or ontologies) are more "static" and contain both facts and rules. Maybe it would be more appropriate to think of those facts as "initial" rather than "global". In fact, you can write a rule : rule "Init" when then insert( new X(..) );

Re: [rules-users] Support for dynamic / ad-hoc queries in Drools

2012-06-27 Thread Wolfgang Laun
On 27 June 2012 19:23, Davide Sottara wrote: > This would be a special case of a dynamic knowledge artifact (queries, > rules, > processes, etc..) being added to a knowledge base. The "low-level", runtime > addition of an artifact is possible, so it would just need to be exposed in > a more conve

Re: [rules-users] Support for dynamic / ad-hoc queries in Drools

2012-06-27 Thread Davide Sottara
This would be a special case of a dynamic knowledge artifact (queries, rules, processes, etc..) being added to a knowledge base. The "low-level", runtime addition of an artifact is possible, so it would just need to be exposed in a more convenient way in the API. Another (interesting) option woul

Re: [rules-users] drools-camel-server > RetractAll() Command?

2012-06-27 Thread Davide Sottara
One option is to send a special "cleanup" trigger fact and add a rule: rule "Cleanup" when $c : Cleanup() $o : Object( this != $c ) then retract( $o ); end You'll then need to retract the Cleanup fact. For example, you might use another rule or make it an event with expiration -- View this

[rules-users] drools-camel-server > RetractAll() Command?

2012-06-27 Thread Nicholas Hemley
Hello, I am currently working with the drools-camel-server and would like to retract all objects in the KB (via Commands that connect using JAXRS). Some of the objects are created by rules and so I do not have all the FactHandles. How do I achieve this, please? Interestingly, the newGetObject

Re: [rules-users] Drools verifier

2012-06-27 Thread Michael Anstis
Strange I recall this very same question being asked numerous times in the past week. Whilst a fan of Bill Murray, in particular the film Ground Hog Day, I have no wish to relive your question on a continual loop. Download drools-verifier, look at the code, ask directed questions; i.e. what funct

[rules-users] Drools verifier

2012-06-27 Thread paco
Someone knows how is it possible to add news functionalities on Drools-verifier? What can I do to know if it's possible to add some functnalities? In what way can I do? Thanks -- View this message in context: http://drools.46999.n3.nabble.com/Drools-verifier-tp4018296.html Sent from the Drools: U

Re: [rules-users] Guvnor Help !!

2012-06-27 Thread Vincent LEGENDRE
@ abhinay_agarwal : more generally, it is a nonsense to say "upload facts to a package", global or not. package contains rules, and are used to create a session, in which you then add facts. may be a confusion with Guvnor's test scenario ? this is also a nonsense to tell "a rule used to fire

Re: [rules-users] Support for dynamic / ad-hoc queries in Drools

2012-06-27 Thread Wolfgang Laun
On 27 June 2012 16:20, Swindells, Thomas wrote: > > > > -Original Message- > > From: rules-users-boun...@lists.jboss.org [mailto:rules-users- > > boun...@lists.jboss.org] On Behalf Of Wolfgang Laun > > Sent: 27 June 2012 14:47 > > To: Rules Users List > > Subject: Re: [rules-users] Suppor

Re: [rules-users] Guvnor Help !!

2012-06-27 Thread Michael Anstis
Think of the Global Area as a place where assets can be stored to share across packages. When you build a package assets linked from the Global Area will be included. This package is the KnowledgeBase, the runtime, with which rules will lead to activations. It is impossible to upload FACTS to Guv

Re: [rules-users] Continuous deployment of rules/vetoing changesets

2012-06-27 Thread Gustaf Cele
Hi Wolfgang! A staging area sounds like a good idea. Would something as simple as this work? KnowledgeAgent stagingAgent = connectToGuvnorAndStartPolling(); KnowledgeBase productionKnowledgeBase = ...; stagingAgent.addEventListener(new DefaultKnowledgeAgentEventListener() { @Override

[rules-users] Guvnor Help !!

2012-06-27 Thread abhinay_agarwal
Hey, I’ve been using GUVNOR for uploading JARS and creating rules using FACTS.. Now I thing I wanna know is - a rule which is GLOBAL AREA, can it be used to fire rules which are there in some different package ?? (same facts may be uploaded in both GLOBAL AREA and the PACKAGE !! .. if requirem

Re: [rules-users] Support for dynamic / ad-hoc queries in Drools

2012-06-27 Thread Swindells, Thomas
> -Original Message- > From: rules-users-boun...@lists.jboss.org [mailto:rules-users- > boun...@lists.jboss.org] On Behalf Of Wolfgang Laun > Sent: 27 June 2012 14:47 > To: Rules Users List > Subject: Re: [rules-users] Support for dynamic / ad-hoc queries in Drools > > On 27/06/2012, jpul

Re: [rules-users] Support for dynamic / ad-hoc queries in Drools

2012-06-27 Thread Wolfgang Laun
On 27/06/2012, jpullmann wrote: > Hello Wolfgang, > > the suggested solution is an elegant syntactical shortcut to what I > and other Drools users already do. Support for one-shot queries appears > to be a meaningful extension to the WorkingMemory API, and the unavoidable > > effort of parsin

Re: [rules-users] Continuous deployment of rules/vetoing changesets

2012-06-27 Thread Wolfgang Laun
Have you considered using a "staged" approach? Rather than forwarding LATEST right into production, have one listener move it into the staging area or not - depending on the tests. The production side listener(s) are directed onto the staging area. -W On 27/06/2012, Gustaf Cele wrote: > Hi, >

Re: [rules-users] Support for dynamic / ad-hoc queries in Drools

2012-06-27 Thread jpullmann
Hello Wolfgang, the suggested solution is an elegant syntactical shortcut to what I and other Drools users already do. Support for one-shot queries appears to be a meaningful extension to the WorkingMemory API, and the unavoidable effort of parsing and temporarily adding the query pattern

[rules-users] Continuous deployment of rules/vetoing changesets

2012-06-27 Thread Gustaf Cele
Hi, I have a Guvnor server (5.4.0.Final) which provides rules to a client (which itself is an EJB server app) using KnowledgeAgents to get hold of rule updates. The knowledge agents are started with changeset XMLs on the classpath which point at my Guvnor instance. The KnowledgeAgents are set

Re: [rules-users] RuleFlow not Found

2012-06-27 Thread abhinay_agarwal
hey salaboy, in your examples Salaboy-Drools_jBPM5-Training-Examples-bee925b (03-DroolsExpert-RuleAttributes), the following lines getting printed in console for the RULE NUMBER SONGS : /Thriller ACTIVATION CREATED rule:Number Songs activationId:Number Songs [1] declarations: $song=Song {id= nu

Re: [rules-users] RuleFlow not Found

2012-06-27 Thread Salaboy
Did you check the jbpm documentation? Cheers Sent from my iPhone On 27 Jun 2012, at 03:55, abhinay_agarwal wrote: > why is der no .rf file in my HELLO WORLD project.. > > Where can i read about how to configure a .bpmn flow rule ??? > > Please can some1 lemme know...is there any difference us

Re: [rules-users] Support for dynamic / ad-hoc queries in Drools

2012-06-27 Thread Wolfgang Laun
You can do that with a few lines of code to compile and deploy a query. You pass in the session, the builder and the query text: dq = new DynamicQuery( StatefulKnowledgeSession kSession, KnowledgeBuilder kBuilder, String queryString ) and you call it, passing in the parame

[rules-users] Support for dynamic / ad-hoc queries in Drools

2012-06-27 Thread jpullmann
Hello, is there any support for ad-hoc queries in Drools or are there plans to introduce this feature ? Being part of the rule base queries are executed in the manner of prepared statements. To execute dynamic query patterns I currently create, add and remove a KB package containing the

[rules-users] (no subject)

2012-06-27 Thread Manikandan Subramanian
-- Thanks, Mani ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] The rule language. More about the agenda-group and ruleflow-group attributes

2012-06-27 Thread abhinay_agarwal
hey maxim, i ve the same scenario..can yu help me with things you ve learnt ? Thanks, Abhinay -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-The-rule-language-More-about-the-agenda-group-and-ruleflow-group-attributes-tp3853915p4018279.html Sent from the Drools: U