[rules-users] how can i integration with guvnor from my eclipse java application

2012-10-17 Thread sainadh
good morning everyone, i want to know the process of integration between the eclipse java application and drools guvnor please let me know the process of this integration... i have tried, which drools documentation provided in the 9th chapter but it is not working please give me some suggesti

Re: [rules-users] Rete Tree node colors

2012-10-17 Thread raffi
Hi. Sorry, I didn't take notice of this feature. So thank you for giving me this advise. But in general I was right as you mentioned. Some colors differ from the ones in documentation. greetings -- View this message in context: http://drools.46999.n3.nabble.com/Rete-Tree-node-colors-tp4020322p

Re: [rules-users] Rule not working with Change_set.xml

2012-10-17 Thread anniejoseph
Hi, Thanks for your replay. I tried the way you said and my rule got executed.But there is some problems. 1) My rule worked only one time with ' insert(); ' .My rule is import java.util.List; import java.util.ArrayList; rule "Set Art" no-loop true when $object

Re: [rules-users] Rule not working with Change_set.xml

2012-10-17 Thread anniejoseph
Hi, Thanks for your replay. I tried the way you said and my rule got executed.But there is some problems. 1) My rule worked only one time with ' insert(); ' .My rule is import java.util.List; import java.util.ArrayList; rule "Set Art" no-loop true when $object

Re: [rules-users] Rule not working with Change_set.xml

2012-10-17 Thread anniejoseph
Hi, Thanks for your replay. I tried the way you said and my rule got executed.But there is some problems. 1) My rule worked only one time with ' insert(); ' .My rule is import java.util.List; import java.util.ArrayList; rule "Set Art" no-loop true when $object

Re: [rules-users] fun projects :)

2012-10-17 Thread Mark Proctor
Oh and have a new entry. While we have nice Drag and Drop with docked layouts, we need a grid/tile layout too. The grid/tile layout manager would probably be the easiest for someone to get into, as it's a pure UF task, no rules experience needed. Audit Viewer Also migrate to support ErraiJSon,

Re: [rules-users] fun projects :)

2012-10-17 Thread Mark Proctor
[17:52:39] hi, i saw a mail regd some fun project for audit viewer and rete viewer, let me know if I can help Sorry ann Sorry anujg we missed you. Best to use someone's nick in the text, otherwise they don't get a notification. Add "conan, porcelli and manstis" as nicks to mention. You can als

Re: [rules-users] Listening to changes on facts

2012-10-17 Thread Davide Sottara
Ok, - For the first scenario a global or a helper class should do the job - The second scenario would require some rules to match your intended patterns.. as for the cache integration, that would be something very interesting. If your investigation is successful, and if you want, the community w

Re: [rules-users] How to execute a rule only when a fact is retracted

2012-10-17 Thread Davide Sottara
Yet another option to experiment with: use a listener to feed back trigger facts in the WM ksession.addEventListener( new WorkingMemoryEventListener() { public void objectInserted(ObjectInsertedEvent event) {} public void objectUpdated(ObjectUpdatedEvent event) {}

Re: [rules-users] How to execute a rule only when a fact is retracted

2012-10-17 Thread dme1
Thanks for all the suggestions, this really helps. -- View this message in context: http://drools.46999.n3.nabble.com/How-to-execute-a-rule-only-when-a-fact-is-retracted-tp4020338p4020343.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

Re: [rules-users] How to execute a rule only when a fact is retracted

2012-10-17 Thread Wolfgang Laun
On 17/10/2012, Greg Barton wrote: > And if you can't modify the original fact class, like Wolfie says below, > insert a control fact that points back to the original, and have rules match > off of that: > > class RetractionHandler { > public OriginalFactClass theDoomedFact; > } > It's probably

Re: [rules-users] How to execute a rule only when a fact is retracted

2012-10-17 Thread Greg Barton
Along the same lines, have a boolean attribute called "markedForDeletion" on the fact.  Set it to true and match rules off of that, with a low priority rule that retracts it when all others are done. And if you can't modify the original fact class, like Wolfie says below, insert a control fact

Re: [rules-users] How to execute a rule only when a fact is retracted

2012-10-17 Thread Wolfgang Laun
Insert a fact that says "retracted" and write a rule matching that. Or, even simpler, execute whatever is required together with the retraction of that fact. -W On 17/10/2012, dme1 wrote: > Hi, > > How can I ensure that a rule is executed only when a fact is retracted. If > I > implement the ru

[rules-users] How to execute a rule only when a fact is retracted

2012-10-17 Thread dme1
Hi, How can I ensure that a rule is executed only when a fact is retracted. If I implement the rule using a "not" condition it will execute even when the object was never inserted into the working memory. Is there a way to implement the rule such that it will not execute when a fact is never inser

Re: [rules-users] Task Handler blocking

2012-10-17 Thread Mauricio Salatino
Hi Alberto, yes you can, the only thing that you need to do is deal with those I/O blocking operations as external and Async Tasks. Instead of making your Task sync (which will block by definition until your operations are done) just make them async by removing the completeWorkItem() method call fr

[rules-users] Task Handler blocking

2012-10-17 Thread Alberto R. Galdo
Hi All, We have an application where we are using JBPM for our processes. In our application there's a strong requirement to maintain the same KnowledgeSession between restarts even though that we are not using rules at all, just BPMN 2.0 processes ( we are aware that JBPM needs it to maintain

Re: [rules-users] How to install de Guided Rule Plugion in Eclipse

2012-10-17 Thread Michael Anstis
Hi, Unfortunately the editor to which you refer was removed from the Eclipse plugin in 5.2.0. 4.4.6. Eclipse 4.4.6.1. Removal of BRL Guided Editor The BRL Guided Editor has been removed due to lack of interest and it falling behind. Its removal allows more focus on the GWT based Guided Editor in

[rules-users] How to install de Guided Rule Plugion in Eclipse

2012-10-17 Thread leonardo_josue
Hi everybody. I'm just starting to use Drools with Eclipse, but I have a little problem. After installing the plugin for Eclipse, when open the menu New -> Drools, I only can see this options: Decision Table Domain Specific Language You Drools Project Flow File Rule Resource I do not see the op

Re: [rules-users] Rete Tree node colors

2012-10-17 Thread Mark Proctor
Click the Node and look at the Property viewer. Looking at this: -Green is the entry point -Red is the ObjectTypeNode -Blue is the AlphaNode -Yellow is the LeftInputAdapter -Green is the BetaNode -Black the TerminalNode http://3.bp.blogspot.com/_Jrhwx8X9P7g/SwUYLnwFNuI/AY0/VbFvO1DChec/s160

[rules-users] fun projects :)

2012-10-17 Thread Mark Proctor
If anyone wants to get involved in a fun task, we would like to get two existing components ported from SWT to SVG/GWT. So that those components can be used in the UberFire project - our new web based workbench. Audit Viewer Also migrate to support ErraiJSon, instead of our XStream dump, for sea

Re: [rules-users] firing rules twice in single session on single object

2012-10-17 Thread LStampf
I think what you need is the modify() statement as defined here: http://docs.jboss.org/drools/release/5.5.0.Beta1/drools-expert-docs/html/ch04.html When changing a fact within a modify() you trigger a reevaluation of the fact ,which can lead to rules firing again if they fit the modified object. B

Re: [rules-users] How to Use functions in Web-Guided Editor

2012-10-17 Thread Michael Anstis
It was added in 5.4.0. Nothing equivalent exists in 5.3. http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-introduction-docs/html/releaseNotes.html#releaseNotes_5.4.0_Guvnor On 17 October 2012 13:24, ayonchak wrote: > Hi Mike, > > Thanks for your reply. > > I am using Drools 5.3 ..Is

Re: [rules-users] How to Use functions in Web-Guided Editor

2012-10-17 Thread ayonchak
Hi Mike, Thanks for your reply. I am using Drools 5.3 ..Is there anything like that in this version? Or I need to upgrade to 5.4 version? Ayon -- View this message in context: http://drools.46999.n3.nabble.com/How-to-Use-functions-in-Web-Guided-Editor-tp4020324p4020326.html Sent from the Dro

Re: [rules-users] How to Use functions in Web-Guided Editor

2012-10-17 Thread Michael Anstis
What version of Guvnor are you using? It sounds very old. In Guvnor 5.4.0 you can add a "BRL Fragment" column to the web-guided decision table. Using this column type you can define an Action that can be free-format DRL and contain template keys (e.g. $1, $2, $3). Your code block could then be u

[rules-users] How to Use functions in Web-Guided Editor

2012-10-17 Thread ayonchak
Hi All, I am facing some problem when migrating from excel-based drools to Drools Guvnor. Suppose we are using some function in the Conditions and Actions of excel. But how to write them in Guvnor as in Guvnor I can only get the value of the condition and set the value of the variable in action. T

Re: [rules-users] mismatched input '==' in rule Employee1_11"

2012-10-17 Thread qwertyqwerty
Hi I am getting the same error with my spreadsheet Errors when compiling rules [8,36]: [ERR 102] Line 8:36 mismatched input '==' in rule "Validation Rules_12" I have attached my spreadsheet. What i am trying to do is iterate over an arraylist of objects(object contains name, value). Then compar

[rules-users] Rete Tree node colors

2012-10-17 Thread raffi
Hello, after reading the documantation of the RETE algorithm here I have an understanding problem. I think the first step (after ReteNode) are the ObjectTypeNodes, colored in blue in documentation. The view in eclipse shows me the red colored AlphaNodes as first childs after the ReteNode. Afterwar

Re: [rules-users] Rule not working with Change_set.xml

2012-10-17 Thread LStampf
And try removing the authentication from the changeset, its just file access. -- View this message in context: http://drools.46999.n3.nabble.com/Rule-not-working-with-Change-set-xml-tp4020313p4020321.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Rule not working with Change_set.xml

2012-10-17 Thread LStampf
Could you please attach an DebugKnowledgeAgentEventListener to your agent: kagent.addEventListener(new DebugKnowledgeAgentEventListener()); and post the output? I guess you run into the following problem. kagent has a default to always create a new KnowledgeBase if something changes. This does NOT

Re: [rules-users] mismatched input '==' in rule Employee1_11"

2012-10-17 Thread shaffimca39
Thanks for your solution.It worked -- View this message in context: http://drools.46999.n3.nabble.com/mismatched-input-in-rule-Employee1-11-tp4020308p4020318.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mai