Re: [rules-users] Drools server link to Guvnor repository

2011-03-16 Thread Sébastien Raickman
Thanks a lot, that was it Seb On Tue, Mar 15, 2011 at 10:08 PM, Ross H wrote: > Try using a changeset with file:path-to-your-changeset.xml rather than > classpath:changeset.xml > > > SebRR wrote: > > > > Yes I am using 5.1.1 and if I go to the latest xsd > > (drools-spring-1.2.0.xsd), there

Re: [rules-users] Custom dates with @date-effective and @date-expires

2011-03-16 Thread Wolfgang Laun
The desired effect might be easier to achieve with a fact EffectiveDate { Date date; } and a pattern specifying the limits. The rule attributes (not metadata) are based on the system data, and you wouldn't want to mess with it just to use data-effective and date-expires. -W On 17 March 2011 00:3

Re: [rules-users] [Urgent] Error in ontext assist in DSLR Editor

2011-03-16 Thread drdaveg
I am seeing this behavior in 5.1.1 - it is as if the context sensitivity is far to "greedy" for replacement. Since this may not have been clearly understood from the original posting, if I have There is an {Instance} with field of "{value}" and my cursor is at the end of the line and I select

Re: [rules-users] Problems with Guided Rule Editor in Eclipse

2011-03-16 Thread drdaveg
In experimenting with my own "Guided editor" files I am trying both the "Fact" and "Condition sentences" to use the Guided editor in Eclipse without typing any DRL or Java by prospective business users. I have a Java project with classes that are imported by a rule project with drools.package (and

Re: [rules-users] Problem with CommandFactory.newStartProcess in 5.2 M1

2011-03-16 Thread Mauricio Salatino
Cool.. let me see... I don't have eclipse.. but I will take a look at the class.. Greetings. On Wed, Mar 16, 2011 at 11:00 PM, Seaver, Daniel (GE Healthcare) < dan.sea...@ge.com> wrote: > I’ve attached an eclipse project that demonstrates the problem if you’d > like to see it with your own eyes.

Re: [rules-users] drools design question

2011-03-16 Thread Esteban Aliverti
You could also use drools (maybe a decision table) to select the different drl files. Best regards, El mar 16, 2011 8:24 p.m., "marunam" escribió: Hi, We are developing an insurance application and we have decided to use drool rules for our business rules Now, we could have global business rul

[rules-users] Custom dates with @date-effective and @date-expires

2011-03-16 Thread Faisal Shafique
Hi, Can I use any arbitrary date for the drools execution so that correct rules are fired based on not current date but any arbitrary date? This is in the context of @date-effective and @date-expires metadata that can be specified as part of a rule. Drools expert documentation seems to imply th

Re: [rules-users] Problem with CommandFactory.newStartProcess in 5.2 M1

2011-03-16 Thread Mauricio Salatino
That's weird, I'm looking at the master repository and that's exactly what the newStartProcess do: public Command newStartProcess(String processId, Map parameters) { StartProcessCommand startProcess = new StartProcessCommand(); startProcess.setProcessId(processId); startProcess.setParameters((Hash

[rules-users] drools design question

2011-03-16 Thread marunam
Hi, We are developing an insurance application and we have decided to use drool rules for our business rules Now, we could have global business rules(applies to all states), specific to state, specific to factor X, specific to factor Y etc. This way we are expecting many drl files. Now, when the

[rules-users] Problem with CommandFactory.newStartProcess in 5.2 M1

2011-03-16 Thread Seaver, Daniel (GE Healthcare)
There appears to be a problem with CommandFactory.newStartProcess in Drools 5.2 M1. If I do this: String someString = "Some String"; Map variables = new HashMap(); variables.put("someString", someString); List> cmds = new ArrayList>();

Re: [rules-users] Problems with Guided Rule Editor in Eclipse

2011-03-16 Thread John Peterson
I'm working in Eclipse only right now, but not using DSL for this particular situation (yet). I've manage to make the error go away by removing the package name from drools.package, however, when I attempt to run the code that builds the application to run the rule, it fails to resolve the Obje

Re: [rules-users] Basic doubt regarding Drools Fusion - @expires

2011-03-16 Thread Edson Tirelli
By default, Drools does not start any internal thread, so that you can embed it in non-multithread applications or in JEE containers. That means that the actual release of events in such cases depends on triggers. In your example, after 1h has passed, whenever something happens to the session (a

Re: [rules-users] Open file leak in Drools Compiler

2011-03-16 Thread Edson Tirelli
This is JCI code that we inline. We should probably check if there is a new JCI version that fixes the problem if it is indeed a problem. Can I ask you please to open a JIRA with the info you reported here? Thanks, Edson 2011/3/16 Greg Barton > Yes, but it's not a full blown lea

Re: [rules-users] Open file leak in Drools Compiler

2011-03-16 Thread Greg Barton
Yes, but it's not a full blown leak. Wrapping stream use in a try/finally block is best. Feel free and open a JIRA to fix it. There may be other instances. --- On Wed, 3/16/11, Chris Selwyn wrote: > From: Chris Selwyn > Subject: Re: [rules-users] Open file leak in Drools Compiler > To: "Ru

Re: [rules-users] Problems with Guided Rule Editor in Eclipse

2011-03-16 Thread Vincent Legendre
I was pretty sure to have seen something about sample BRL from Guvnor appears in error in eclipse. I can find some on JIRA, but never the same problem I have ... May be on another forum, but not JIRA ... Anyway, my problem is using DSL in BRL opened with eclipse plugin Guided Editor. Seems that

Re: [rules-users] Open file leak in Drools Compiler

2011-03-16 Thread Chris Selwyn
Isn't it regarded as bad practice to rely on the finalize() method called by the garbage collector to release such resources? Chris On 16/03/2011 17:04, Greg Barton wrote: > Only if garbage collection never runs. Then you'd already be in trouble. :) > > --- On Wed, 3/16/11, Chris Selwyn wrote:

Re: [rules-users] Open file leak in Drools Compiler

2011-03-16 Thread Greg Barton
Only if garbage collection never runs. Then you'd already be in trouble. :) --- On Wed, 3/16/11, Chris Selwyn wrote: > From: Chris Selwyn > Subject: [rules-users] Open file leak in Drools Compiler > To: "Drools users" > Date: Wednesday, March 16, 2011, 11:49 AM > I am running Drools (actually

Re: [rules-users] Drools Execution Server - SOAP Support / XML Format

2011-03-16 Thread Mauricio Salatino
Hi there, Can you share the stack trace that you are getting when you start the server? I didn't create th soap.wsdl file. Greetings. On Wed, Mar 16, 2011 at 1:55 PM, bdoucet wrote: > Hi Mauricio, > > I tried to make the server working with a soap endpoint, > > I followed you documentation from

Re: [rules-users] Drools Execution Server - SOAP Support / XML Format

2011-03-16 Thread bdoucet
Hi Mauricio, I tried to make the server working with a soap endpoint, I followed you documentation from your article http://planet.jboss.org/post/drools_server_drools_grid_for_remote_distributed_executions, modified the camel-server.xml etc ... When the server start it complains that he can not

[rules-users] Open file leak in Drools Compiler

2011-03-16 Thread Chris Selwyn
I am running Drools (actually JBoss Rules 5.1.0 ) in Glassfish. My deployable is an EJB that uses a StatelessKnowledgeSession to run some rules that I get from a KnowledgeAgent that has a Changeset with a .drl in it. Therefore, I have placed the drools compiler into the deployable and it all ap

[rules-users] Basic doubt regarding Drools Fusion - @expires

2011-03-16 Thread Makewise - Vitor Rui Mendonça
Hi all! I’ve got a really basic doubt… I’ve read several documentation regarding it but I think I need some advice here… Imagine that I have an event: declare A @role( event ) @expires( 1h ) end On my Java code, I call “fireAllRules()” method every time that I put an event into the

Re: [rules-users] Problems with Guided Rule Editor in Eclipse

2011-03-16 Thread John Peterson
Thanks for the response, Vincent. Do you happen to have a link to the URL for the JIRA? I was looking for it, but haven't found it yet. It would seem to me that this is basic functionality. It sounds, from your response, that BRL is just not the focus. jp > Date: Wed, 16 Mar 2011 12:17:02 +

Re: [rules-users] A question about using "lane" in Drools-flow (Tihomir Surdilovic)

2011-03-16 Thread Tihomir Surdilovic
On 3/15/11 12:27 PM, Wen Yao wrote: Thanks Tihomir. Attached is my bpmn file which I haven't edited. I don't think I am using jBPM. I just new a ruleflow file which is supported by Drools 5.1. It's a bpmn file. For question 3, I created a bpmn file in eclipse and didn't edit it. Then try to

Re: [rules-users] Impement My own login page

2011-03-16 Thread Michael Anstis
Guvnor uses GWT extensively and our login mechanism uses a GWT RPC call to the server to authenticate with Seam. Our authentication mechanism is exposed through org.drools.guvnor.server.security.SecurityServiceImpl There is no HTML form with INPUT fields that you can easily substitute for your ow

Re: [rules-users] InvocationTargetException in KnowledgeStoreServiceImpl - full code

2011-03-16 Thread Mauricio Salatino
can you paste here the full stack trace of your problem? along with the version of jbpm and drools that you are using. Greetings. On Wed, Mar 16, 2011 at 7:38 AM, Odelya Holiday wrote: > Hi! > > I posted my previous message from the web client and it was corrupted. So > here is the full one: > >

Re: [rules-users] Drools verifier

2011-03-16 Thread FrankVhh
Hi, Thanks all for your replies. I forgot I had already uncommented the RHS of a rule, whic onviously did not return a warning. When I comment it, this warning is displayed. Sorry to bother you with this trivial problem. Redundancy, however, isn't detected yet. Neither are the "gaps" [temperatu

Re: [rules-users] Drools verifier

2011-03-16 Thread Toni Rikkola
Can you make few rules for us to test this with. I have to say that the verifier is not perfect when it searches for redundancy, so your rules might be too complex for it at the moment. Toni On Mar 16, 2011, at 1:29 PM, FrankVhh wrote: > Hi Wolfgang, > > Yes, you are absolutely right about th

Re: [rules-users] Drools verifier

2011-03-16 Thread Wolfgang Laun
And no Severity.ERROR or Severity.NOTE either? What kind of verifier finding(s) do you expect? A rule sample might help. -W PS: I'm just investigating this corner of Drools, and you do provide some inspiration ;-) On 16 March 2011 12:29, FrankVhh wrote: > Hi Wolfgang, > > Yes, you are absolut

Re: [rules-users] Can business people write rules?

2011-03-16 Thread Vincent Legendre
Le 15/03/2011 22:53, jwest a écrit : > However, I don't know how to make this first line more complex using > the guided editor. > For example, you can hover on the second line of the rule and click on > it and the shown dialog pop ups, allowing me to make this line more > complex through adding

Re: [rules-users] Drools verifier

2011-03-16 Thread FrankVhh
Hi Wolfgang, Yes, you are absolutely right about the path mistake. Can't believe I missed that. Fixing it removes the errors from the verifier. However, it still does not return the expected outputs... System.out.println(result.getVerifierData().getAll().isEmpty()); => returns false, which is as

Re: [rules-users] Problems with Guided Rule Editor in Eclipse

2011-03-16 Thread Vincent Legendre
Title: CARTE DE VISITE I have the same problem with BRL editor under eclipse. Also the action part dialog box does not show DSL phrases ... The plugin is incomplete/buggy and shows errors but rules are correct (you can compile and run them). This problem is the same sinc

Re: [rules-users] Drools verifier

2011-03-16 Thread Wolfgang Laun
You may have to use newFileResource( path ) or change the path. Sorry -W On 16 March 2011 12:06, Wolfgang Laun wrote: > String path = "C:..."; > Resource resource = ResourceFactory.newClassPathResource( path, getClass() > ); > if( resource != null ){ > verifier.addResourcesToVerify( reso

Re: [rules-users] Drools verifier

2011-03-16 Thread Wolfgang Laun
String path = "C:..."; Resource resource = ResourceFactory.newClassPathResource( path, getClass() ); if( resource != null ){ verifier.addResourcesToVerify( resource, ResourceType.DRL ); } else { //... } On 16 March 2011 12:03, Wolfgang Laun wrote: > You are feeding it the pathname, no

Re: [rules-users] Drools verifier

2011-03-16 Thread Wolfgang Laun
You are feeding it the pathname, not the text from the file. -W On 16 March 2011 11:52, FrankVhh wrote: > Hi Wolfgang, > > I was about to report the fact that using drools-verifier 5.2.0 M1 didn't > help, when I saw your comment about checking the error. > > Apparently there is something wrong:

Re: [rules-users] Impement My own login page

2011-03-16 Thread Satyendra Sharma
Custom login page will be normal HTML form and will be place it in drools's war file So Need the action name and login fields name that will be used to populate the login detail. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Impement-My-own-login-page-tp2686

Re: [rules-users] Drools verifier

2011-03-16 Thread FrankVhh
Hi Wolfgang, I was about to report the fact that using drools-verifier 5.2.0 M1 didn't help, when I saw your comment about checking the error. Apparently there is something wrong: ### Verifier errors ### [ERR 101] Line 1:1 no viable alternative at input ':' Verifier could not form a PackageDescr

[rules-users] InvocationTargetException in KnowledgeStoreServiceImpl - full code

2011-03-16 Thread Odelya Holiday
Hi! I posted my previous message from the web client and it was corrupted. So here is the full one: get InvocationTargetException after the following: return constructor.newInstance( kbase, conf, env ); in KnowledgeStoreServiceImpl. I see that in return (T) constructorAccessor.newInstan

Re: [rules-users] Drools verifier

2011-03-16 Thread Wolfgang Laun
I've just realized that the code you posted does not include checking for errors during the verifier builds. List errors = verifier.getErrors(); if( errors.size() > 0 ){ printStream.println( "### Verifier errors ###" ); for( VerifierError error: errors ){ printStream.pr

Re: [rules-users] Impement My own login page

2011-03-16 Thread Michael Anstis
We don't use Struts (if that's what your Action URL relates to?) IIRC we use Seam to authenticate. Not sure of the class names though :( On 16 March 2011 10:12, Satyendra Sharma wrote: > I want to use my own login page in BRMS and for the same don't know the > Action url and login fields name t

[rules-users] InvocationTargetException in KnowledgeStoreServiceImpl

2011-03-16 Thread odelyaholiday
Hi! I get InvocationTargetException after the following: return constructor.newInstance( kbase, conf, env ); in KnowledgeStoreServiceImpl. I see that in return (T) constructorAccessor.newInstance(initargs) of Constructor class it throws the InvocationTargetException. The exception is null s

[rules-users] Impement My own login page

2011-03-16 Thread Satyendra Sharma
I want to use my own login page in BRMS and for the same don't know the Action url and login fields name that I have to use in my custome login page. Please let me know the url and all the fileds name used in login page. -- View this message in context: http://drools-java-rules-engine.46999.n3

[rules-users] Impement My own login page

2011-03-16 Thread Satyendra Sharma
I want to use my own login page in BRMS and for the same don't know the Action url and login fields name that I have to use in my custome login page. Please let me know the url and all the fileds name used in login page. -- View this message in context: http://drools-java-rules-engine.46999.n3

Re: [rules-users] .drl(rule)file creation

2011-03-16 Thread Michael Anstis
You could look into using org.drools.ide.common.client.modeldriven.brl.RuleModel (in droolsjbpm-ide-common). This is the basic model used by all of the guided editors before translating it into DRL with org.drools.ide.common.server.util.BRDRLPersistence (in droolsjbpm-ide-common too). There are a

Re: [rules-users] Drools verifier

2011-03-16 Thread Wolfgang Laun
It's really worthwhile to add a DRL compile run before you let the verifier do its work. -W On 16 March 2011 10:02, FrankVhh wrote: > Hi Toni and Wolfgang, > > Thanks for your replies. > > First, to clarify my self, with "duplicate rules", I actually meant "rules > that are exactlly the same, b

Re: [rules-users] .drl(rule)file creation

2011-03-16 Thread FrankVhh
Hi kedar, Of course, I do not know what you are trying to achieve in the end, but from the limited information that I have, I think I can agree with manstis that there are 2 options. 1) Download and install Guvnor, which is a UI to edit rules and may be exaclty what you want. 2) Write an applicat

Re: [rules-users] Drools verifier

2011-03-16 Thread FrankVhh
Hi Toni and Wolfgang, Thanks for your replies. First, to clarify my self, with "duplicate rules", I actually meant "rules that are exactlly the same, but with other names". Moreover, I inserted the verification just before rule execution, and execution runs fine. So, there shouldn't be a compile

Re: [rules-users] .drl(rule)file creation

2011-03-16 Thread kedar vyawahare
Thanks for reply. yaa i want exactly the same my U.I should generate the DRL file .But I dont know how to generate a DRL file through U.I. Please help me to generate the DRL through U.I. Thanks in Advance. Kedar ___ rules-users mailing list rules-users@li