Re: [rules-users] How to match a string in LHS ?

2013-06-05 Thread Wolfgang Laun
If you have inserted a java.lang.String as a fact, you can determine whether it is "ok" by when String( toString == "ok" ) -W On 06/06/2013, abhinay_agarwal wrote: > AFAIK, you would like to match the string "ok" with someother string. I > don't > see any other string here. > > Can you

Re: [rules-users] Guvnor-5.5

2013-06-05 Thread abhinay_agarwal
hey steve, Yes the 5.3 works perfectly with was 7, just a few warning, but works fine. 5.3 has problem running on was 8. 5.5 has problem running on all WAS servers. never tried 6. Regards, Abhi -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-tp4022096p4024160.h

Re: [rules-users] Url Resource Guvnor connection + ProtocolException

2013-06-05 Thread abhinay_agarwal
Is there a way to shut down the basic authetiaction that guvnor asks for in 5.5.0 Final. I know this was not mandatory prior to 5.4.0. Abhi -- View this message in context: http://drools.46999.n3.nabble.com/Url-Resource-Guvnor-connection-ProtocolException-tp4024145p4024159.html Sent from the

Re: [rules-users] How to match a string in LHS ?

2013-06-05 Thread abhinay_agarwal
AFAIK, you would like to match the string "ok" with someother string. I don't see any other string here. Can you be a bit more clear with your question.. Abhi -- View this message in context: http://drools.46999.n3.nabble.com/How-to-match-a-string-in-LHS-tp4024157p4024158.html Sent from the D

[rules-users] Walkin Clinic for Drools & jBPM @ Red Hat Summit

2013-06-05 Thread Mark Proctor
http://blog.athico.com/2013/06/walkin-clinic-for-drools-jbpm-red-hat.htmlRed Hat Summit, BostonJune 11th to 14th We have a dedicated room for community members to come and chat and hang out with core Drools & jBPM developers. The room should be open to all, not just those with summit passes, althou

[rules-users] Knowledge base Import/Export?

2013-06-05 Thread gilbertoy
Good afternoon everyone, Since I am inexperienced on using Drools, I would like to ask an information: There is a way to export and import rules, variables and such ? I would like to try using Drools Guvnor validations on another software knowledge base, but for this I would have to implement a w

Re: [rules-users] Url Resource Guvnor connection + ProtocolException

2013-06-05 Thread Stephen Masters
There's a pretty good chance that you're being redirected as a result of not being authenticated. As a tip on diagnosing, try using curl from the server you're deploying on, to see what you get, like so: Find out what happens with unauthenticated access: curl http://whatevertheurlis/ A

[rules-users] Url Resource Guvnor connection + ProtocolException

2013-06-05 Thread abhinay_agarwal
Hey, I am trying to reach my guvnor repository using a very simple block of code UrlResource urlResource = new UrlResource(url); urlResource.setBasicAuthentication("enabled"); urlResource.setUsername("admin"); urlResource.setPassword("admin"); kbuilder.add(urlResource, ResourceType.PKG); Now,

Re: [rules-users] Guvnor 6.0.0.Beta2 on Tomcat 7 - should problems be reported?

2013-06-05 Thread Michael Anstis
Hi, Beta3 has better error handling.. so at least something (more) meaningful should show. Alternatively the real error is probably on a log somewhere (sorry, I don't know where this would be on Jelastic). If you're using the "mortgages" demo repository\project and opening the rule that is a DSL

[rules-users] Guvnor 6.0.0.Beta2 on Tomcat 7 - should problems be reported?

2013-06-05 Thread kappert
I have deployed guvnor-6.0.0.Beta2-tomcat7.0.war on Tomcat 7 in Jelastic (a cloud provider). The guided rule editor does not come up and this is an exception I have found in catalina.out: org.jboss.errai.marshalling.client.api.exceptions.MarshallingException: class is not available to the marshal

[rules-users] Kagent and Resource Scanning

2013-06-05 Thread gboro54
The methods ResourceFactory.getResourceChangeNotifierService().start() and ResourceFactory.getResourceChangeScannerService().start() start the scanning services in Drools. My question is does this apply to all knowledge agents within an application or does this need to be done for all kAgents separ

Re: [rules-users] Setting a value in LHS

2013-06-05 Thread Stephen Masters
Aha! That's exactly the sort of syntax I was looking for! :) I just couldn't find any examples of the DRL syntax for 'creating' a value like that in the LHS. A quick test with a contrived little example shows me that the following works: rule "Warn when my meal is too large" when $meal: Mea

[rules-users] Difference of behavior between JBoss4 and JBoss5 wen I call a function in drl file

2013-06-05 Thread je74
In a rule 1, I call a function and I insert a new Object in the workingMemory. An another rule (rule 2) match when the new object is in the workingMemory. In JBoss4, It's ok In JBoss5, rule 2 not match even though the new object is in the workinMemory. Example: function boolean simple

Re: [rules-users] Separate selectable drl files in drools kbase.. Or agenda groups

2013-06-05 Thread Wolfgang Laun
On 05/06/2013, Ramon Buckland wrote: > Hi Wolfgang, > > Thanks for the suggestions. I have a few questions, does changing the focus > on the RHS work like : > > kcontext.getKnowledgeRuntime().getAgenda().getAgendaGroup( "B to D" > ).setFocus(); Looks like it. > > Do I need to import kcontext ? o

Re: [rules-users] how to write the rule to match the latest facts

2013-06-05 Thread suntrian
then it throws java.lang.ClassCastException Error...i remember that there can't be global object in the LHS ...so i need to adopt your idea , insert a Date Object instead of using global one. -- View this message in context: http://drools.46999.n3.nabble.com/how-to-write-the-rule-to-match-the-l

Re: [rules-users] how to write the rule to match the latest facts

2013-06-05 Thread suntrian
thanks , i add a global Date() Object nowtime to store the current time and update it with setGlobal method before insert new facts..then in the rule files , i add constraint this after nowtime to match the latest fact. -- View this message in context: http://drools.46999.n3.nabble.com/how-to

Re: [rules-users] Separate selectable drl files in drools kbase.. Or agenda groups

2013-06-05 Thread Ramon Buckland
Hi Wolfgang, Thanks for the suggestions. I have a few questions, does changing the focus on the RHS work like : kcontext.getKnowledgeRuntime().getAgenda().getAgendaGroup( "B to D" ).setFocus(); Do I need to import kcontext ? or is it implicitly in scope already ? > a low salience rule would

Re: [rules-users] how to write the rule to match the latest facts

2013-06-05 Thread Wolfgang Laun
You'll need an attribute that determines the order. If your facts are events, there's the timestamp. Otherwise, add a counter. $latest: F( $c: counter ) not F( counter > $c ) -W On 05/06/2013, suntrian wrote: > i inserted several facts of one type into the workmemory , but i need just > t

[rules-users] how to write the rule to match the latest facts

2013-06-05 Thread suntrian
i inserted several facts of one type into the workmemory , but i need just the latest one, how should i write the rule to match the latest fact -- View this message in context: http://drools.46999.n3.nabble.com/how-to-write-the-rule-to-match-the-latest-facts-tp4024131.html Sent from the Drools: