Re: [rules-users] FW: Rule runs twice without explicit call to update($fact).

2009-11-25 Thread Wolfgang Laun
"Just the place for a Snark! I have said it twice: That alone should encourage the crew. Just the place for a Snark! I have said it thrice: What i tell you three times is true." [...] He had forty-two boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to menti

Re: [rules-users] Question on Rule Flow and Web Console

2009-11-25 Thread ramram8
Thnx for ur advice Kris Yes I think I will use either an XOR or a Rule List But I have a question about this because i was trying them yesterday: 1- Do I have to use either the rule or XOR or I have to use then both together? 2- How I can pass a parameter to a rule or an XOR ? 3- can u give me a

[rules-users] 5.10M samples

2009-11-25 Thread Chris Richmond
I loaded the latest (5.1M) sample for fusion into eclipse and it builds and runs, but does anyone else get this exception from time to time? Thanks, Chris = Unexpected exception caught: [Error: cannot invoke getter: getSymbol [de

Re: [rules-users] GUI help

2009-11-25 Thread SzA84
I think not, because orvosimeres is the class in the package: public class orvosimeres { } Nicolas Héron wrote: > > I thing it is because you use twice the same variable ovosimeres > your rule should be > Rule "grafikus" >dialect "mvel" >when >orvosimeres:Adat

Re: [rules-users] unable to resolve Type Declaration class

2009-11-25 Thread Edson Tirelli
Nope, this sounds like a bug... can you open a JIRA with that info please? Edson 2009/11/25 richarda > > Also tried under 5.1.0M1 release.. same issue :( > Am i doing something wrong by declaring the @role in the Configuration > section? > > > richarda wrote: > > > > Still trying to get t

Re: [rules-users] GUI help

2009-11-25 Thread Nicolas Héron
I thing it is because you use twice the same variable ovosimeres your rule should be Rule "grafikus" dialect "mvel" when orvosimeres:Adattipus( ertek == "/heart_rate" ) orvosimeres2:Mertadat( mertekegyseg == "/min" , mozgas == "true" , vernyomas > ( 140 )

Re: [rules-users] unable to resolve Type Declaration class

2009-11-25 Thread richarda
Also tried under 5.1.0M1 release.. same issue :( Am i doing something wrong by declaring the @role in the Configuration section? richarda wrote: > > Still trying to get this to work. > I have managed to create from a default (new) guvnor setup. > > Steps I do.. > 1. Create fresh guvnor > 2. In

[rules-users] FW: Rule runs twice without explicit call to update($fact).

2009-11-25 Thread Jason Smith
I never got an answer, any answer to this question. I really need to know if PropertyChangeSupport actually works. Is anyone out there successfully using it? In one case (using "modify()") I get a NPE. In all cases, the rules run twice unless I explicitly call "update()". Is anyone *not* se

[rules-users] GUI help

2009-11-25 Thread SzA84
Hi! I have some questions about the guided editor. I try to build a rule in the guided editor. I added some conditions and this is the generated DRL: Rule "grafikus" dialect "mvel" when orvosimeres$Adattipus( ertek == "/heart_rate" ) orvosimeres$M

[rules-users] Drools bootcamp schedules

2009-11-25 Thread Chris Richmond
Hello all, Is there a list of scheduled boot camps with dates/locations anywhere? I can't seem to find it on the site/blog. Thanks, Chris ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/ru

Re: [rules-users] Drools Flow 5.1 - Update JPA Entity - while workitem is in pending state - variable persistence strategy

2009-11-25 Thread Vijay K Pandey
Thanks Kris. That's what I thought later on after your first mail on this topic. So I did got the JPA entity persisted/merged after retrieving the entitymanagerfactory from the working memory's environment and got it done through the JPA transaction - I will refactor this to use the JPA command

Re: [rules-users] unable to resolve Type Declaration class

2009-11-25 Thread richarda
Still trying to get this to work. I have managed to create from a default (new) guvnor setup. Steps I do.. 1. Create fresh guvnor 2. In eclipse create Message.java file in package com.sample, and create a jar file 3. In guvnor import the model for the Message.jar file 4. In guvnor create a categ

Re: [rules-users] StatefulKnowledgeSession Vs StatefulSession

2009-11-25 Thread Wolfgang Laun
This works for me: StatefulKnowledgeSession session; //... KnowledgeBase kb = session.getKnowledgeBase(); for( KnowledgePackage kp: kb.getKnowledgePackages() ){ for( Rule r: kp.getRules() ){ System.out.println( "Rule: " + r.getName() ); }

Re: [rules-users] StatefulKnowledgeSession Vs StatefulSession

2009-11-25 Thread DeepakA
So how can I access RuleBase from StatefulKnowledgeSession? I cant find a API that links RuleBase and StatefulKnowledgeSession interface. I need to get hold of each individual rule from StatefulKnowledgeSession DeepakA wrote: > > I used a KnowledgeBuilder ro read the resources (DSL & DSLR

Re: [rules-users] Drools Flow 5.1 - Update JPA Entity - while workitem is in pending state - variable persistence strategy

2009-11-25 Thread Kris Verlaenen
Quoting Vijay K Pandey : > > c)I would like to change it through Drools Process because that's > where I have associated the JPA entities - I would not like to update > it from outside. Not sure this is a problem. You merely create an association to these JPA entities (assuming we implement

Re: [rules-users] Flow (human task) and web apps

2009-11-25 Thread Kris Verlaenen
Quoting ramram8 : > Concerning this point the JNDI seems to be a good idea but in case I > cant use the JNDI is there any alternative Any solution that would allow an external application and console to share the same session would work. > I used the XML dumper and changed the dynamic process to

Re: [rules-users] StatefulKnowledgeSession Vs StatefulSession

2009-11-25 Thread Mark Proctor
DeepakA wrote: > I used a KnowledgeBuilder ro read the resources (DSL & DSLR files) > Then created a KnowledgeBase and created a StatefulKnowledgeSession out of > the KnowledgeBase. > The StatefulKnowledgeSession was used to start the process and fire all > rules. > Then I realized I was not able t

Re: [rules-users] Question on Rule Flow and Web Console

2009-11-25 Thread Kris Verlaenen
How about simply adding an XOR split node after the second node that checks the value of the parameter? Or adding a ruleset node there and they use rules to create this human task if necessary? A more advanced way to model this would be to use dynamic or ad-hoc processes. At this point you could

[rules-users] RESTful Example

2009-11-25 Thread Tony Qian
All, First, I apologize long email. I have a few questions on how to use RESTful web Service on Execution Server. I have read through the document and followed the instruction. I think I missed a few critical steps. Here are what I did. 1) Created package, category, rule, a java cla

[rules-users] RESTful Example

2009-11-25 Thread Qian, Tony
All, First, I apologize long email. I have a few questions on how to use RESTful web Service on Execution Server. I have read through the document and followed the instruction. I think I missed a few critical steps. Here are what I did. 1) Created package, category, rule, a java class (Re

[rules-users] StatefulKnowledgeSession Vs StatefulSession

2009-11-25 Thread DeepakA
I used a KnowledgeBuilder ro read the resources (DSL & DSLR files) Then created a KnowledgeBase and created a StatefulKnowledgeSession out of the KnowledgeBase. The StatefulKnowledgeSession was used to start the process and fire all rules. Then I realized I was not able to access the RuleBase from

[rules-users] Activation groups (xor-group)

2009-11-25 Thread Swindells, Thomas
Please could someone clarify exactly how activation-groups work. My understanding of them is that if a set of rules are all in the same activation group then only one of them will fire. Is this correct? In particular what happens if a rule becomes deactivated, can another rule in the same activa

Re: [rules-users] Drools 5.0 Guvnor install

2009-11-25 Thread SzA84
Thanks! That was the problem! mdesignz wrote: > > Have you tried:./run.sh -b localhost > and force JBoss to bind to localhost? > > Unless you change JBoss, you need to specify the port: > http://localhost:8080/drools-guvnor > > On Nov 24, 2009, at 11:46 AM, SzA84 wrote: > >> >> Unfortu

[rules-users] Question on Rule Flow and Web Console

2009-11-25 Thread ramram8
Hi All, I have a question about rule flow and web console: - Can we create a Rule Flow scenario in which the User tasks in it is dynamic. I created a Rule Flow usingFluent Api but what will happen is that in this case I wont have a single Rule Flow scenario with dynamic number of user t