[rules-users] Setting a Flow Variable from a Rule

2010-01-15 Thread Todd Pagni
How do you set a flow variable (not global) from inside a rule so it is available for nodes that follow the rule execution? I cannot seem to find this in the doc. Previously I had a Person() fact that was also passed into the flow as a variable, when I modified the fact Person() object it was r

Re: [rules-users] Drools 5.0 concat string in matches of regular expression

2010-01-15 Thread Edson Tirelli
Mike fixed the problem. You can either take an MVEL snapshot or wait for the release of 2.0.16, update the jar and your should be fine. Edson 2010/1/15 Edson Tirelli > >Ok, thanks for checking. I just opened a ticket: > > http://jira.codehaus.org/browse/MVEL-200 > >Meanwhile, what

Re: [rules-users] Is this possible in Guvnor?

2010-01-15 Thread HonorGod
yes. Sumant Kumar-2 wrote: > > Instead of creating 3 Knowledge bases you can have one KnowledgeBase with > all three decision tables and then each decision table will have a > "Salience" to control the priority of execution. DT1 has highest Salience > and DT3 has lowest value. > > When you uplo

Re: [rules-users] Is this possible in Guvnor?

2010-01-15 Thread HonorGod
If I were to use salience and XOR-Groups in decision tables and a rule is fired that has highest salience from a particular agenda group, does drool hold the updated values from the rule that is fired previously and go the next group ? [i hope this is possible with stateful session ?] -- View thi

[rules-users] guvnor - role based auth enabled - cannot use backup URL anymore

2010-01-15 Thread John Walker
All, I am using drools5 guvnor, and I have enabled the role based permissions. I have been using wget and this URL to get repository backups - http://localhost:4980/guvnor/org.drools.guvnor.Guvnor/backup Once I enabled role bas

Re: [rules-users] Is this possible in Guvnor?

2010-01-15 Thread Sumant Kumar
Instead of creating 3 Knowledge bases you can have one KnowledgeBase with all three decision tables and then each decision table will have a "Salience" to control the priority of execution. DT1 has highest Salience and DT3 has lowest value. When you upload these DT into Drools BRMS you will hav

Re: [rules-users] Is this possible in Guvnor?

2010-01-15 Thread HonorGod
In my case the outcome of firing one rule from decision table 1 is updating a4 [even if a4 is initially having some other value] then the second rule that should be fired should only consider a1, a2, a3, a4 and produce an outcome a5 [even though a5 has some other va. how i can manage them in singl

Re: [rules-users] Is this possible in Guvnor?

2010-01-15 Thread David Sinclair
Why are you constructing multiple KBs and sessions? I mean those decision tables can be written in a way where you would only need a single KB and session if a4 and a5 in your examples can be set to some "starting" known state. If a4 and a5 where initially set to null, or false, or -1 or NOT_SET y

Re: [rules-users] how to provide a relative path using file: in change-set and FileResource

2010-01-15 Thread Steve Ronderos
Pritam, Try using "classpath:" instead of "file:". I've only used this when specifying the entire relative path to the file, I'm not sure about referencing a directory. Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 01/15/2010 09:27:05 AM: > [image removed] > >

Re: [rules-users] Writing decision tables without eclipse errors

2010-01-15 Thread HonorGod
What error messages are you seeing in Eclipse? -- View this message in context: http://n3.nabble.com/Writing-decision-tables-without-eclipse-errors-tp120961p122159.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users m

Re: [rules-users] Checking multiple null values

2010-01-15 Thread HonorGod
Did you find anything yet ? -- View this message in context: http://n3.nabble.com/Checking-multiple-null-values-tp120674p122161.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.or

[rules-users] Is this possible in Guvnor?

2010-01-15 Thread HonorGod
Hi, I have a single fact model with 5 [a1, a2,a3, a4, and a5] different attributes. I have 3 decision tables in the following fashion Decision Table 1 - condition | condition | condition | Action| -

[rules-users] how to provide a relative path using file: in change-set and FileResource

2010-01-15 Thread Pritam
Consider a change-set.xml, I have a rules folder under WebRoot in my web application but the above source url doesn't work as I get a java.net.UnknownHostException: rules The same is true while providing a file path resource using ResourceFactory.newFileResource("path"); In

Re: [rules-users] KnowledgeAgent not reloading KnowledgeBase

2010-01-15 Thread Pritam
It's working now. The key was to provide a change-set location to KnowledgeAgent and make the agent itself singleton in the app. public static KnowledgeBase getKnowledgeBase() throws DroolsParserException, IOException { // hold a static reference in class if(agent != null) {

Re: [rules-users] Drools 5.0 concat string in matches of regular expression

2010-01-15 Thread Edson Tirelli
Ok, thanks for checking. I just opened a ticket: http://jira.codehaus.org/browse/MVEL-200 Meanwhile, what I can suggest is a workaround, adding a helper method to the BlacklistItemDRL that returns the pattern ready for use: onBlackList : ArrayList( size > 0 ) from collect( Blacklist

Re: [rules-users] Drools 5.0 concat string in matches of regular expression

2010-01-15 Thread Lukas Svoboda
I tried the latest MVELs 2.0.15 and 2.0.16 and no luck. The error message says now: [java] Unable to determine the used declarations. [java] [Error: unexpected symbol ' '] [java] [Near : {... s.email ~= ( ".*@" + blacklist }] [java] ^ [java] [Lin

Re: [rules-users] KnowledgeAgent not reloading KnowledgeBase

2010-01-15 Thread Esteban Aliverti
Hi Pritam, As you mentioned, KA loads, caches and reload kbases. When the KA process a change-set, adds a Listener to every resource so it can detect when they are modified. In order to detect these modifications, two services should be running: *ResourceChangeScannerService* and *ResourceChangeNot

Re: [rules-users] [planner] Questions about employee shift rostering example

2010-01-15 Thread Geoffrey De Smet
[CC'd to the user list] Hi Samuel, > Happy new year and all the best for you and your family. Happy new year too :) > As you can see below, I tried posting a message on the mailing list but > unfortunately I am not authorized. If that doesn't work out (it should!), try the nabble.com forum or the