Re: [rules-users] drools-5.2.0.SNAPSHOT-guvnor.war

2010-08-18 Thread Georg Maier
Hi,

 

if you're new, why not trying the last final release? 

 

http://www.jboss.org/drools/downloads.html

 

You'll find 5.1 final Guvnor there, which has just been released some two
weeks ago.

But "installation" of Guvnor is not "installation" of Drools!

 

Good luck!

 

 

Von: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Shukla, Pankaj
(Pankaj)
Gesendet: Donnerstag, 19. August 2010 08:32
An: rules-users@lists.jboss.org
Betreff: [rules-users] drools-5.2.0.SNAPSHOT-guvnor.war

 

Hi, 

 

I am new in drools and i am trying to install it. In this process i need to
download drools-5.1.0.SNAPSHOT-guvnor.war/drools-5.2.0.SNAPSHOT-guvnor.war. 

 

When I am trying to access the following URL 

 

https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk
/target/drools-5.1.0.SNAPSHOT-guvnor.war 

 

It shows some error : The requested resource () is not available. 

 

Please help me in getting this war file.

 

Thanks

Pankaj Shukla

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] drools-5.2.0.SNAPSHOT-guvnor.war

2010-08-18 Thread Shukla, Pankaj (Pankaj)
Hi,

I am new in drools and i am trying to install it. In this process i need to 
download drools-5.1.0.SNAPSHOT-guvnor.war/drools-5.2.0.SNAPSHOT-guvnor.war.

When I am trying to access the following URL

https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/drools-5.1.0.SNAPSHOT-guvnor.war

It shows some error : The requested resource () is not available.

Please help me in getting this war file.

Thanks
Pankaj Shukla
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] How Can a Drools Rule call another Drools Rule?

2010-08-18 Thread Sanjib Karmakar

Hi friends 

I would like to execute a rule say Rule-1 from inside another rule say
Rule-2.
In project I am using xml and not drl, and I am using Drools 5.0

Please let me know how to call a rule from another rule.

Thanks 
Sanjib
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/How-Can-a-Drools-Rule-call-another-Drools-Rule-tp1219190p1219190.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] PLEASE HELP: Possible concurrency issue in Drools

2010-08-18 Thread Norman C
Mark,

Thanks for your help.  I will apply this fix in my production system.

Norman

  On 18/08/2010 00:49, Norman C wrote:
>Hi All,
>I've posted on this topic twice and logged a JIRA ticket 
>(https://jira.jboss.org/browse/JBRULES-2651) as well.  I've received 
>no responses and the bug hasn't been updated since I logged it.
I just replied to the jira. I'm committing the fix now.

Mark



  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Scalability

2010-08-18 Thread Salaboy
That's my blog! 
The feature it's already in the trunk but it's experimental. If you are 
interested to test it I can assist you in order to improve it! 
Greetings! 

- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On 18/08/2010, at 17:14, Orlando Costa  wrote:

> 
> Thanks Mauricio, I guess having multiple sessions was in our mind as well.
> 
> But this Drools Grid looks quite interesting and promising:
> http://salaboy.wordpress.com/2010/04/07/drools-grid-rio-project-using-gnostic/
> 
> When will the feature be released, by end of this year?
> Br
> Orlando.
> 
> -- 
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Scalability-tp1194022p1213479.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Fusion Performance and RETE algorithm

2010-08-18 Thread Orlando Costa

Hi Edson
I was more refering to more sub-set of ESP/CEP in my question, because of
the description you have made about EPN and "agent" architecture that could
be used as a footprint to a possible solution. 

Thus, I was wondering if there was more technical resource just on that
topic (and not so much in CEP theory/background in general, as I already
material on that).

Best regards
Orlando.

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Fusion-Performance-and-RETE-algorithm-tp1190098p1214947.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Fusion Performance and RETE algorithm

2010-08-18 Thread Edson Tirelli
   Hi Orlando,

   Dr. David Luckam's website has a lot of content on CEP:

http://www.complexevents.com/

   Also, his book "The Power of Events" is
considered the publication that formalized the concept of CEP. It is a good
book, very helpful in understanding the overall concepts. Just be aware that
being a "visionary" book, on one hand, lots of requirements for CEP products
described there are still wishful thinking that no product on the market
implemented yet and on the other hand, some products offer several features
that were not envisioned by him at the time.

Edson


2010/8/18 Orlando Costa 

>
> Hi Edson,
> This was really the kind of information I was looking for, many thanks! (I
> think you should even put this text highlighted on the documentation
> available at Drools site, these are very valuable insights).
>
> I am kind of new in ESP/CEP (been reading "Event Processing - Designing IT
> Systems for Agile Companies" and many other online info), but when you talk
> about EPN (Event-Processing Network), this is a concept that I am not yet
> familiar. This paragraph were you say:
>
> "Although, the chosen architecture for your kbase and sessions will
> obviously have a high impact on the performance metrics you will achieve.
> Since you mentioned that in your use case every single fact will match and
> cause rules to fire, and the actions involve heavy operations like database
> access, I would recommend looking into an "agent" architecture, where you
> partition your knowledge base into several kbases with related rules. The
> kbases will operate on the atomic (or "raw") events and create the
> composite
> events that you can feed into entry points of sessions of subsequent
> kbases,
> effectively increasing the overall system throughput and simplifying the
> maintenance of each agent's kbase in particular."
>
> looks quite interesting to explore. Besides the book I mentioned (and I am
> also going to check this on "Event Processing in Action" by Etzion) do you
> recommend any resource (book, article, etc) that elaborates more on the
> concepts you have described?
>
> Best regards
> Orlando.
>
>
>
>
>
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Fusion-Performance-and-RETE-algorithm-tp1190098p1213845.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Fusion Performance and RETE algorithm

2010-08-18 Thread Orlando Costa

Hi Edson, 
This was really the kind of information I was looking for, many thanks! (I
think you should even put this text highlighted on the documentation
available at Drools site, these are very valuable insights).

I am kind of new in ESP/CEP (been reading "Event Processing - Designing IT
Systems for Agile Companies" and many other online info), but when you talk
about EPN (Event-Processing Network), this is a concept that I am not yet
familiar. This paragraph were you say:

"Although, the chosen architecture for your kbase and sessions will
obviously have a high impact on the performance metrics you will achieve.
Since you mentioned that in your use case every single fact will match and
cause rules to fire, and the actions involve heavy operations like database
access, I would recommend looking into an "agent" architecture, where you
partition your knowledge base into several kbases with related rules. The
kbases will operate on the atomic (or "raw") events and create the composite
events that you can feed into entry points of sessions of subsequent kbases,
effectively increasing the overall system throughput and simplifying the
maintenance of each agent's kbase in particular."

looks quite interesting to explore. Besides the book I mentioned (and I am
also going to check this on "Event Processing in Action" by Etzion) do you
recommend any resource (book, article, etc) that elaborates more on the
concepts you have described? 

Best regards
Orlando.






-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Fusion-Performance-and-RETE-algorithm-tp1190098p1213845.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Scalability

2010-08-18 Thread Orlando Costa

Thanks Mauricio, I guess having multiple sessions was in our mind as well.

But this Drools Grid looks quite interesting and promising:
http://salaboy.wordpress.com/2010/04/07/drools-grid-rio-project-using-gnostic/

When will the feature be released, by end of this year?
Br
Orlando.

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Scalability-tp1194022p1213479.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Accumulate in Drools

2010-08-18 Thread Manav


Am using 2.0.10 (mvel2-2.0.10.jar) . That's giving the issue below.

Also tried it with other versions mvel2-2.0.16.jar , mvel2-2.0.17.jar but no 
luck.

regards,
Manav
  

From: Edson Tirelli 
To: Manav ; Rules Users List 
Subject: Re: [rules-users] Accumulate in Drools

>   Which version of MVEL are you using?
>
>  Edson
>
>2010/8/17 Manav 
>
> Here's the modified rule :
>
> rule "Test Accumulate Function"
> when
>  $p : ProductType ($name : name)
>  $min_score : Number ()
>  from accumulate (Client (productTypeExperience.keySet contains $name,
>    $score : productTypeExperience[$name]),
>    min (((ExperienceLevel)$score).value()))
>
> then
>  System.out.println ("$min_score" + $min_score);
> end
>
> and the runtime exception that i am getting is
> Caused by: org.drools.RuntimeDroolsException:
>  [Error: unable to resolve method: java.util.HashMap.$name() [arglength=0]]
> [Near : {... Unknown }]
>
> Regards,
> Manav
>





From: Edson Tirelli 
To: Manav ; Rules Users List 
Sent: Mon, August 16, 2010 7:46:54 PM
Subject: Re: [rules-users] Accumulate in Drools


     You can't use the cast and the method call in a regular constraint. You 
can 
use it as part of an expression. So:

 $min_score : Number ()
   from accumulate (Client (productTypeExperience.keySet contains $name,
 $score : productTypeExperience[$name],
                     min ( ((ExperienceLevel)$score).value() ) )

     We are working on the support of free form expressions on constraints for 
Drools 6 (not sure we can make it for 5.2).

     Edson


2010/8/15 Manav 

Hi,
>I am trying my hand at the accumulate function in Drools 5.x but the drl fails
>to compile.
>Not sure what's wrong with it. Please help.
>This is the sample that i am working with
>
>rule "Test Accumulate Function"
>when
> $p : ProductType ($name : name)
> $min_score : Number ()
>   from accumulate (Client (productTypeExperience.keySet contains $name,
> $score :
>((ExperienceLevel)productTypeExperience[$name]).value()),
>  min ($score))
>then
> System.out.println ("$min_score" + $min_score);
>end
>Regards,
>Manav
>
>
>
>
>
>___
>rules-users mailing list
>rules-users@lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
>


-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com



  ___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Flow inconsistancies

2010-08-18 Thread paulB

Thanks, Alan.  My problem was slightly similar.

I found that the generated classes and methods for the returnValueEvaluators
(and other generated classes/methods) were being overwritten for every
process in the same package.  Thus, the last compiled process in my
changeset for a given package worked fine, and the preceding processes were
exhibiting the strange behavior. The reason it "worked" on my local machine
was due to the fact that I was only debugging with one process in my
changeset.

A workaround for this is to have every process in a different package.  But
this makes me believe there is something still very wrong, here.  I have yet
to determine if this is an issue in the trunk or 5.1, or if it's simply
something in my local configurations and/or loaded classes.  I may drill
further to determine that.

I would highly recommend these debugging tools and parameters to anyone
trying to debug a server side issue with these generated classes:

drools.dump.dir
http://blog.athico.com/2008/02/looking-under-drools-skirt.html

Eclipse Remote Debugging
http://www.eclipsezone.com/eclipse/forums/t53459.html

Cheers.

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-inconsistancies-tp862p1209881.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Adding two numbers

2010-08-18 Thread sreekar

 ...or you can use predicate... I read somewhere that it's better than using
eval.
stub:PaymentStub($j : daysJuror, $p : daysPanel -> ($j + $p > 0))
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Adding-two-numbers-tp1205623p1209276.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Adding two numbers

2010-08-18 Thread Hehl, Thomas
Aha! That's it.

 

Thanks!

 



From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Swindells,
Thomas
Sent: Wednesday, August 18, 2010 9:26 AM
To: Rules Users List
Subject: Re: [rules-users] Adding two numbers

 

Have a look at eval().

 

From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Hehl, Thomas
Sent: 18 August 2010 14:22
To: rules-users@lists.jboss.org
Subject: [rules-users] Adding two numbers

 

I have two properties on my class that I'd like to add together and
compare results. I'm trying:

 

  when

stub:PaymentStub(daysJuror + daysPanel > 0)

 

But this throws an error. Either daysJuror or daysPanel work, but adding
them together doesn't. Isn't there a way to do this?

 

Thanks!

 

Thom Hehl

Java Applications Architect

Public Safety & Justice

Affiliated Computer Services, Inc.

A Xerox Company

1733 Harrodsburg Road

Lexington, KY 40504-3617

Tel 859.277.8800 x 144

Fax 859.277.2300

 

 





**
This message is confidential and intended only for the addressee. If you
have received this message in error, please immediately notify the
postmas...@nds.com and delete it from your system as well as any copies.
The content of e-mails as well as traffic data may be monitored by NDS
for employment and security purposes. To protect the environment please
do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex,
TW18 4EX, United Kingdom. A company registered in England and Wales.
Registered no. 3080780. VAT no. GB 603 8808 40-00

**

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] KnowledgeAgent detects resource changes and updates but nothing changes

2010-08-18 Thread Esteban Aliverti
Hi Tina,
It seems that you are using KAgent without incremental change set processing
enabled. Thus, the kagent's internal kbase is recreated (re-instantiated)
every time a change is detected. So, you must do:

session = kagent.getKnowledgeBase().newStatefulKnowledgeSession();

In order to do this you could add a kagent's event listener to be notified
whenever the agent has rebuilt his kbase.

Or, you could use incremental change set:

KnowledgeAgentConfiguration aconf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
aconf.setProperty("drools.agent.newInstance", "false");
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("test
agent", kbase, aconf);

Using this feature, the changes are always applied in the current kbase, so
there is no need to re-create your session.

For more information:
http://ilesteban.wordpress.com/2010/03/25/knowledge-agent-incremental-change-set-processing-and-binary-diff/
http://ilesteban.wordpress.com/2010/05/26/knowledge-agent-incremental-change-set-build-implementation/

Best,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2010/8/18 Tina Vießmann 

>  Hi,
>
> I've set up a knowledge agent the change set configuration. While running
> the application I'm changing the rules file and the agent detects the change
> and rebuidls the knowledge base. But after that the output that should have
> changed didn't change.
>
> Thank you! :)
>
> Greetings
> Tina
>
>
> Here are the code snippets:
>
> ResourceFactory.getResourceChangeNotifierService().start();
> ResourceFactory.getResourceChangeScannerService().start();
>
> KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("AITS CEP
> Engine Agent");
>
> kagent.applyChangeSet(ResourceFactory.newClassPathResource("changeset.xml"));
>
> KnowledgeBase knowledgeBase = kagent.getKnowledgeBase();
>
> session = knowledgeBase.newStatefulKnowledgeSession();
>
>
>
>  xmlns:xs='http://www.w3.org/2001/XMSchema-instance'
> xs:schmeaLocation='
> http://drools.org/drools-5.0/change-setdrools-change-set-5.0.xsd' >
>
> 
> 
> 
>
> 
>
>
>
> The status information put out to the console are:
>
> [2010:08:230 16:08:93:debug] ResourceChangeScanner attempt to scan 1
> resources
> [2010:08:230 16:08:93:debug] ResourceChangeScanner modified
> resource=[ClassPathResource path='testRule.drl'] : 1282139449234 :
> 1282141364812
> [2010:08:230 16:08:93:debug] ResourceChangeNotification received ChangeSet
> notification
> [2010:08:230 16:08:93:debug] ResourceChangeScanner thread is waiting for 60
> seconds.
> [2010:08:230 16:08:93:debug] ResourceChangeNotification processing
> ChangeSet
> [2010:08:230 16:08:93:debug] ResourceChangeNotification ChangeSet modified
> resource=[ClassPathResource path='testRule.drl'] for
> listener=org.drools.agent.impl.knowledgeagenti...@1acfa31
> [2010:08:230 16:08:93:debug] KnowledgeAgent received ChangeSet changed
> notification
> [2010:08:230 16:08:93:info] KnowledgeAgent applying ChangeSet
> [2010:08:230 16:08:93:debug] KnowledgeAgent rebuilding KnowledgeBase using
> ChangeSet
> [2010:08:230 16:08:109:debug] ResourceChangeNotification thread is waiting
> for queue update
> [2010:08:230 16:08:218:debug] KnowledgeAgent obtaining pkg
> resource=[ClassPathResource path='testRule.drl']
> [2010:08:230 16:08:218:debug] KnowledgeAgent mapping
> resource=[ClassPathResource path='testRule.drl'] to
> KnowledgeDefinition=[Rule name=Insert Watcher Into Knowledge Base,
> agendaGroup=MAIN, salience=0, no-loop=false]
> [2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to
> resource=[ClassPathResource path='testRule.drl']
> [2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing
> listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to
> resource=[ClassPathResource path='testRule.drl']
> [2010:08:230 16:08:218:debug] KnowledgeAgent mapping
> resource=[ClassPathResource path='testRule.drl'] to
> KnowledgeDefinition=[Rule name=Add Event to Watcher Set, agendaGroup=MAIN,
> salience=0, no-loop=false]
> [2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to
> resource=[ClassPathResource path='testRule.drl']
> [2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing
> listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to
> resource=[ClassPathResource path='testRule.drl']
> [2010:08:230 16:08:218:debug] KnowledgeAgent mapping
> resource=[ClassPathResource path='testRule.drl'] to
> knowledgedefinition=org.drools.rule.typedeclarat...@1bed3d1
> [2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to
> resource=[ClassPathResource path='testRule.drl']
> [2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing
> listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to
> resource=[ClassPathResource path='testRule.drl']
> [2010:08:230 16:08:218:debug] KnowledgeAgent mapping
> resource=[ClassPathResource path='

[rules-users] KnowledgeAgent detects resource changes and updates but nothing changes

2010-08-18 Thread Tina Vießmann

 Hi,

I've set up a knowledge agent the change set configuration. While 
running the application I'm changing the rules file and the agent 
detects the change and rebuidls the knowledge base. But after that the 
output that should have changed didn't change.


Thank you! :)

Greetings
Tina


Here are the code snippets:

   ResourceFactory.getResourceChangeNotifierService().start();
   ResourceFactory.getResourceChangeScannerService().start();

   KnowledgeAgent kagent =
   KnowledgeAgentFactory.newKnowledgeAgent("AITS CEP Engine Agent");
   kagent.applyChangeSet(ResourceFactory.newClassPathResource("changeset.xml"));

   KnowledgeBase knowledgeBase = kagent.getKnowledgeBase();

   session = knowledgeBase.newStatefulKnowledgeSession();



  
   xs:schmeaLocation='http://drools.org/drools-5.0/change-setdrools-change-set-5.0.xsd'

>

   
   
   

   



The status information put out to the console are:

[2010:08:230 16:08:93:debug] ResourceChangeScanner attempt to scan 1 
resources
[2010:08:230 16:08:93:debug] ResourceChangeScanner modified 
resource=[ClassPathResource path='testRule.drl'] : 1282139449234 : 
1282141364812
[2010:08:230 16:08:93:debug] ResourceChangeNotification received 
ChangeSet notification
[2010:08:230 16:08:93:debug] ResourceChangeScanner thread is waiting for 
60 seconds.

[2010:08:230 16:08:93:debug] ResourceChangeNotification processing ChangeSet
[2010:08:230 16:08:93:debug] ResourceChangeNotification ChangeSet 
modified resource=[ClassPathResource path='testRule.drl'] for 
listener=org.drools.agent.impl.knowledgeagenti...@1acfa31
[2010:08:230 16:08:93:debug] KnowledgeAgent received ChangeSet changed 
notification

[2010:08:230 16:08:93:info] KnowledgeAgent applying ChangeSet
[2010:08:230 16:08:93:debug] KnowledgeAgent rebuilding KnowledgeBase 
using ChangeSet
[2010:08:230 16:08:109:debug] ResourceChangeNotification thread is 
waiting for queue update
[2010:08:230 16:08:218:debug] KnowledgeAgent obtaining pkg 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:218:debug] KnowledgeAgent mapping 
resource=[ClassPathResource path='testRule.drl'] to 
KnowledgeDefinition=[Rule name=Insert Watcher Into Knowledge Base, 
agendaGroup=MAIN, salience=0, no-loop=false]
[2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing 
listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:218:debug] KnowledgeAgent mapping 
resource=[ClassPathResource path='testRule.drl'] to 
KnowledgeDefinition=[Rule name=Add Event to Watcher Set, 
agendaGroup=MAIN, salience=0, no-loop=false]
[2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing 
listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:218:debug] KnowledgeAgent mapping 
resource=[ClassPathResource path='testRule.drl'] to 
knowledgedefinition=org.drools.rule.typedeclarat...@1bed3d1
[2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing 
listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:218:debug] KnowledgeAgent mapping 
resource=[ClassPathResource path='testRule.drl'] to 
knowledgedefinition=org.drools.rule.typedeclarat...@1f528ab
[2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:234:debug] ResourceChangeNotification subscribing 
listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:234:debug] KnowledgeAgent mapping 
resource=[ClassPathResource path='testRule.drl'] to 
knowledgedefinition=org.drools.rule.funct...@1bb9829
[2010:08:230 16:08:234:debug] KnowledgeAgent notifier subscribing to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:234:debug] ResourceChangeNotification subscribing 
listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:234:debug] KnowledgeAgent mapping 
resource=[ClassPathResource path='testRule.drl'] to 
knowledgedefinition=org.drools.rule.funct...@eb840f
[2010:08:230 16:08:234:debug] KnowledgeAgent notifier subscribing to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:234:debug] ResourceChangeNotification subscribing 
listener=org.drools.agent.impl.knowledgeagenti...@1acfa31 to 
resource=[ClassPathResource path='testRule.drl']
[2010:08:230 16:08:234:debug] KnowledgeAgent adding 
KnowledgeDefinitionsPackage

Re: [rules-users] Adding two numbers

2010-08-18 Thread Swindells, Thomas
Have a look at eval().

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Hehl, Thomas
Sent: 18 August 2010 14:22
To: rules-users@lists.jboss.org
Subject: [rules-users] Adding two numbers

I have two properties on my class that I'd like to add together and compare 
results. I'm trying:

  when
stub:PaymentStub(daysJuror + daysPanel > 0)

But this throws an error. Either daysJuror or daysPanel work, but adding them 
together doesn't. Isn't there a way to do this?

Thanks!


Thom Hehl

Java Applications Architect

Public Safety & Justice

Affiliated Computer Services, Inc.

A Xerox Company

1733 Harrodsburg Road

Lexington, KY 40504-3617

Tel 859.277.8800 x 144

Fax 859.277.2300




**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Spring configuration v5.1.0.M2 V/s v5.1.0

2010-08-18 Thread KiranP

Hello Everybody,

I was dazelled by reading the post 
http://drools-java-rules-engine.46999.n3.nabble.com/5-1-0-CR1-Drools-Spring-Configuration-Changed-td997130.html
Drools-Spring-Configuration-Changed? 

I was working with Drools v5.1.0.M2 which had around 50 different Processes
and Simple configuration as :

"Configure EMF and Transaction Manager pass them to JPAKnowledgeServiceBean
and directly use it into 
my own Services - ProcessService.startprocess(); and
ProcessService.resumeService();"

this services in turn were calling simple API Provided by :
JPAKnowledgeServiceBean 

  createNew...(); 
  load...( id ) ;

and the workItemHandler to Task Assignment was taken care by the
Configuration File - drools.session.conf

now i want to upgrade to Drools v5.1.0

but for that i have to create 50 different Spring Configurations one for
each process and use a kstore (its not as easy as it looks)

then again i cannot have a single service method like
ProcessService.startProcess(processId); 
instead i have to use ProcessService.startProcessABCProcess(); then
ProcessService.startXYZProcess(processId); and so on for all the 50
processes

more over this we also have to re-create the Environment,kbase and
configuration for each process start and resume..


Dont you think that the M2 version API's were more easy and effective???

Suggestions and Work-out are very much welcome.

-
Keep Working >>
KiranP
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Spring-configuration-v5-1-0-M2-V-s-v5-1-0-tp1206134p1206134.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Adding two numbers

2010-08-18 Thread Hehl, Thomas
I have two properties on my class that I'd like to add together and
compare results. I'm trying:

 

  when

stub:PaymentStub(daysJuror + daysPanel > 0)

 

But this throws an error. Either daysJuror or daysPanel work, but adding
them together doesn't. Isn't there a way to do this?

 

Thanks!

 

Thom Hehl

Java Applications Architect

Public Safety & Justice

Affiliated Computer Services, Inc.

A Xerox Company

1733 Harrodsburg Road

Lexington, KY 40504-3617

Tel 859.277.8800 x 144

Fax 859.277.2300

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule template shortcut needed

2010-08-18 Thread Wolfgang Laun
On 18 August 2010 13:31, djb  wrote:
>
> Hi there,
>
> My question is related to the ability to remove criterion in a rule template
> by a cunning commenting trick so that if the variable @{VAR} is blank, the
> line will be blank.  Wolfgang wrote the code, I believe.

Not true, if you mean the template-+spreadsheet rule expansion code.

But I did write the classes for the instantiation of templates where
parameters come from Beans or Maps.

>
> I've got a situation where I've got DB rows where i've got:
> TYPE  |  CODE  |  TYPE2  |  CODE2_FROM  |  CODE2_TO
>
> there are 17 types.  So it lets us have rules like
> Type U code 123 cannot be charged with Type V codes 234 to 236.
>
> I need the rules to compare the correct property, but I don't want to lose
> the advantage of the RETE algorithm by using a getValue("type1") function.
>
> I see one solution:
> 2.  Make a template with 17 + 17 + 17 = 51 columns, where each one uses the
> // @{VAR} trick.

Notice that *any* part of a template can be a formal parameter. So a line could
also be s.th. like
   @{CLASS} ( @{FIELD} == @{VALUE} )

-W


>
> Is there a better way?  Or, should I just do getValue("type")?
>
> Thanks
> Daniel
>
>
> --
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Rule-template-shortcut-needed-tp1203969p1203969.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule template shortcut needed

2010-08-18 Thread Swindells, Thomas
How about writing a simple pre/post processor which finds and replaces string 
with what you want - eg converts getValue("type1") to whatever call you would 
prefer?

> -Original Message-
> From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
> boun...@lists.jboss.org] On Behalf Of djb
> Sent: 18 August 2010 12:31
> To: rules-users@lists.jboss.org
> Subject: [rules-users] Rule template shortcut needed
>
>
> Hi there,
>
> My question is related to the ability to remove criterion in a rule template
> by a cunning commenting trick so that if the variable @{VAR} is blank, the
> line will be blank.  Wolfgang wrote the code, I believe.
>
> I've got a situation where I've got DB rows where i've got:
> TYPE  |  CODE  |  TYPE2  |  CODE2_FROM  |  CODE2_TO
>
> there are 17 types.  So it lets us have rules like
> Type U code 123 cannot be charged with Type V codes 234 to 236.
>
> I need the rules to compare the correct property, but I don't want to lose
> the advantage of the RETE algorithm by using a getValue("type1") function.
>
> I see one solution:
> 2.  Make a template with 17 + 17 + 17 = 51 columns, where each one uses the
> // @{VAR} trick.
>
> Is there a better way?  Or, should I just do getValue("type")?
>
> Thanks
> Daniel
>
>
> --
> View this message in context: http://drools-java-rules-
> engine.46999.n3.nabble.com/Rule-template-shortcut-needed-
> tp1203969p1203969.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Skills required for using Drools Guvnor

2010-08-18 Thread djb

on a scale of 1 to 10, where 1 is a non-programmer, 5 is a junior programmer,
and 10 is the person who wrote Guvnor, you're looking at about a 4, to
change rules.  

It's best if you download it, and check out the sample rules provided.  Then
you can get your own feeling about it.  It's not really difficult to change
the rules, but it's easy to get something wrong, as the rule wizard is a bit
odd.


-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Skills-required-for-using-Drools-Guvnor-tp1201945p1204276.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Rule template shortcut needed

2010-08-18 Thread djb

Hi there,

My question is related to the ability to remove criterion in a rule template
by a cunning commenting trick so that if the variable @{VAR} is blank, the
line will be blank.  Wolfgang wrote the code, I believe.

I've got a situation where I've got DB rows where i've got:
TYPE  |  CODE  |  TYPE2  |  CODE2_FROM  |  CODE2_TO

there are 17 types.  So it lets us have rules like 
Type U code 123 cannot be charged with Type V codes 234 to 236.

I need the rules to compare the correct property, but I don't want to lose
the advantage of the RETE algorithm by using a getValue("type1") function.

I see one solution:  
2.  Make a template with 17 + 17 + 17 = 51 columns, where each one uses the
// @{VAR} trick.

Is there a better way?  Or, should I just do getValue("type")?

Thanks
Daniel


-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Rule-template-shortcut-needed-tp1203969p1203969.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Flow - Replay

2010-08-18 Thread jawa

Hi,

I am writing a drools flow application and I run into a problem. Here is the
scenario:

I have a drools flow which have multiple nodes to ask different questions to
customer And depending on the response of customer Flow decides which
question to ask customer. Customer can answer straight away or can take
hours to come back and answer. The flow is stored in db and it starts
wherever it left last time. Now the problem is if customer has replied some
questions and then he thinks that he selected a wrong answer to one of the
previous questions and wants to edit that. How can I move my flow back to
that question and start over from that question again? I can't have some
many transitions from each question because customer can go to any of the
previous question so it is not possible for have transitions in flow to go
to each previous question from each question. Is there anything in flow that
can have me start again from a specific node? e.g. If customer is question
No.32 and he wants to go back to Question No.2 or uses browsers back button
then how can we have flow to start again from Question No.2? Because the
whole tree the customer was gone through previously can change depending on
his response of Question No.2. Any idea? Let me know if I have not explained
my problem correctly.

Thanks
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Replay-tp1203317p1203317.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Skills required for using Drools Guvnor

2010-08-18 Thread Georg Maier
Without having that much knowledge about Guvnor... what comes to my mind is
to define a Domain Specific Language which provids everything the end user
might need. This way he / she just needs to create the rules by "clicking"
and not "programming".

Stating this though I didn't try it yet J

 

You might want to check expert documentation 4.10 and Guvnor documentation. 

http://www.jboss.org/drools/documentation.html

 

Good luck!

 

Georg

 

 

Von: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Swapnil Sawant
Gesendet: Mittwoch, 18. August 2010 11:17
An: rules-users@lists.jboss.org
Betreff: Re: [rules-users] Skills required for using Drools Guvnor

 

Just  wanted to make picture more clear.

 

 

I will be developing my application where I would be using drools guvnor for
managing rules separately .

 

In the process of development, I would be setting up all the things required
for 'running rules in my application'

 

Once application development is finished, I will be deploying it at client
side.

 

Once this deployment  is done, now If any rule has to be managed(updations)
then what kind of skills the end user of this application should possess so
that he can manage the rules on his own ?

 

 

Thanks,

 

Swapnil Sawant

 

 

From: Swapnil Sawant 
Sent: Wednesday, August 18, 2010 2:27 PM
To: 'rules-users@lists.jboss.org'
Subject: RE: Skills required for using Drools Guvnor

 

Small correction Java programming language J

 

From: Swapnil Sawant 
Sent: Wednesday, August 18, 2010 2:22 PM
To: 'rules-users@lists.jboss.org'
Subject: Skills required for using Drools Guvnor

 

Hi,

 

 

I had a very basic question. I wanted to know the pre-requisite skills which
are required in order to start working on drools guvnor GUI.

 

When I say work , I mean creating rules/modifying them etc.

 

Technical knowledge(e.g. java technology) is must in this case? 

 

 

 

Thanks & Regards,

Swapnil Sawant

 

 

 



This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do not
use or disseminate the information, notify the sender and delete it from your
system.

__

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Skills required for using Drools Guvnor

2010-08-18 Thread Swapnil Sawant
Just  wanted to make picture more clear.


I will be developing my application where I would be using drools guvnor for 
managing rules separately .

In the process of development, I would be setting up all the things required 
for 'running rules in my application'

Once application development is finished, I will be deploying it at client side.

Once this deployment  is done, now If any rule has to be managed(updations) 
then what kind of skills the end user of this application should possess so 
that he can manage the rules on his own ?


Thanks,

Swapnil Sawant


From: Swapnil Sawant
Sent: Wednesday, August 18, 2010 2:27 PM
To: 'rules-users@lists.jboss.org'
Subject: RE: Skills required for using Drools Guvnor

Small correction Java programming language :)

From: Swapnil Sawant
Sent: Wednesday, August 18, 2010 2:22 PM
To: 'rules-users@lists.jboss.org'
Subject: Skills required for using Drools Guvnor

Hi,


I had a very basic question. I wanted to know the pre-requisite skills which 
are required in order to start working on drools guvnor GUI.

When I say work , I mean creating rules/modifying them etc.

Technical knowledge(e.g. java technology) is must in this case?



Thanks & Regards,
Swapnil Sawant




This Email may contain confidential or privileged information for the intended 
recipient (s) If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.

_
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Skills required for using Drools Guvnor

2010-08-18 Thread Swapnil Sawant
Small correction Java programming language :)

From: Swapnil Sawant
Sent: Wednesday, August 18, 2010 2:22 PM
To: 'rules-users@lists.jboss.org'
Subject: Skills required for using Drools Guvnor

Hi,


I had a very basic question. I wanted to know the pre-requisite skills which 
are required in order to start working on drools guvnor GUI.

When I say work , I mean creating rules/modifying them etc.

Technical knowledge(e.g. java technology) is must in this case?



Thanks & Regards,
Swapnil Sawant




This Email may contain confidential or privileged information for the intended 
recipient (s) If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.

_
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Skills required for using Drools Guvnor

2010-08-18 Thread Swapnil Sawant
Hi,


I had a very basic question. I wanted to know the pre-requisite skills which 
are required in order to start working on drools guvnor GUI.

When I say work , I mean creating rules/modifying them etc.

Technical knowledge(e.g. java technology) is must in this case?



Thanks & Regards,
Swapnil Sawant
S



This Email may contain confidential or privileged information for the intended 
recipient (s) If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.

_
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users