Re: [rules-users] Updating to 5.1 - what jars do I need to replace?

2010-08-02 Thread Jervis Liu
Stephen Mcgruer wrote: Just to note, I no longer need help with this. After discovering that the Guvnor 5.1 interface did not work fully (when trying to create a bean in a *when* clause, the pencil icon did not do anything - known bug?) in our environment - Firefox 3.6.8 and IE 6 in

Re: [rules-users] Help : Enabling Role Base Authorization in Guvnor

2010-08-02 Thread Jervis Liu
Hi, the rolesProperties file (eg, guvnor-roles.properties) configured in JBoss AS is not used by Guvnor authorization. Before you enable enable-role-based-authorization, you need to login and configure user permissions in Guvnor Administration. For example, you need to give your admin user a

Re: [rules-users] How to use Drools Flow?

2010-08-02 Thread XiaoMiTang
I have taken a look at the Human Task ,but i can not understand it. The ruleflow.rf file should be split into two ? = ruleflow.rf = Start---Action1(need user A to do it)Action2(need user B to do it)--Email--End == sub1.rf: Start---Action1(need user A to do it)End

[rules-users] Activation attempts of rules

2010-08-02 Thread Georg Maier
Hi, is there a way to observe (during runtime) when Drools evaluates the condition of which rule, meaning when it tries to activate a rule? I'm having a bug in my program and I can't determine whether objects are out of sync, there is a mistake in my rule or (and I started believing in that)

[rules-users] Drools + EMF + CDO

2010-08-02 Thread Georg Maier
Hi, I'm trying to figure out an issue for three days now and I'm getting kind of desperate, so I hope someone can help. I'm using Drools in combination with an EMF model which is modeling a computer network. On init, I read the whole structure of the model and insert all elements into the

Re: [rules-users] Drools + EMF + CDO

2010-08-02 Thread Wolfgang Laun
Several remarks: (1) Make sure that a parent is asserted after all of its children. Otherwise initial evaluation will not comprise the entire children's list. (2) After changing a child's state, update the parent. (3) The rule as you have it now is somewhat circumstantial. A simpler approach would

Re: [rules-users] How to use Drools Flow?

2010-08-02 Thread Diego López León
On Mon, Aug 2, 2010 at 6:45 AM, XiaoMiTang dingyongch...@hotmail.com wrote: I have taken a look at the Human Task ,but i can not understand it. The ruleflow.rf  file should be split into two ? =  ruleflow.rf  = Start---Action1(need user A to do it)Action2(need user B to do

Re: [rules-users] Drools + EMF + CDO

2010-08-02 Thread Georg Maier
Wolfgang, thank you so much for your remarks! It's really interesting: - I tried the approach to update the parent whenever a child is modified before - without any success - Now I changed my rule to your (definitely much better) suggestion - and it works! So despite

Re: [rules-users] Drools + EMF + CDO

2010-08-02 Thread Wolfgang Laun
I can only say that I tested your (original) rule, and here I need the modify( $parent ){} in the rule where I change the children's states. However, not selecting the DOWN state in the first forall pattern does *not* require this additional modify: rule allChidrenDown when $parent : Device

Re: [rules-users] Drools IDE Update site link for 5.1 CR1

2010-08-02 Thread Kris Verlaenen
We don't really expose an update site, but you can simply download the eclipse artefact and unzip in your eclipse folder. Since Drools is also part of JBoss Tools, you can use the nightly builds to get the latest snapshot release as well. http://www.jboss.org/tools/download/ Kris -

Re: [rules-users] are for loops possible in drools

2010-08-02 Thread Dinesh kumar
Hi, I faced a similar problem. This thread helped me to solve the issue. this keyword is working fine for me. U can check whether it is supported in your version. I am using 5.0.1 But even this keyword works for me, I am facing another problem. The then block executed for every success in the

[rules-users] .drl Rules without Java

2010-08-02 Thread Baig, Kaleem
- There is a list of objects. Each object has a property score. We need to select three objects with the highest scores. How to create this rule in Guvnor (This would be easy in Java, but we want no code in the rules)? Thank you!!! ___

[rules-users] getFactHandle() returns null

2010-08-02 Thread retoy
Has anybody ever had the problem that getFactHandle(object) returned null, although the FactHandle is there when you iterate over the handles returned by getFactHandles()? Can anybody explain to me what the problem might be? By the way: The object reference (getObject()) in the FactHandle I

Re: [rules-users] .drl Rules without Java

2010-08-02 Thread Esteban Aliverti
Did you try using a custom accumulate function? You must code it in java and use it in your rules easily. Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/8/2 Baig, Kaleem

Re: [rules-users] Drools-Spring Schema location changed ????

2010-08-02 Thread drooRam
Alright, the xsd error still remains though but I could able to successfully integrate drools 5.1 CR1 with spring 3.0.3. I got the spring namespace handler exception when i tried to use drools-spring.5.1.jar with DRE 5.0, which is not appropriate. So, i completely checked out DRE 5.1. CR1, used

Re: [rules-users] Accessing spring beans

2010-08-02 Thread drooRam
Alright, the xsd error still remains though but I could able to successfully integrate drools 5.1 CR1 with spring 3.0.3. I got the spring name space handler exception when i tried to use drools-spring.5.1.jar with DRE 5.0, which is not appropriate. So, i completely checked out DRE 5.1. CR1, its

[rules-users] How to write a simple DSL which can be used in setting / comparing the value prsent in hashmap

2010-08-02 Thread bbarani
Hi, I have created a very simple DSL file as below. It just reads the data from hashmap and sets the decision based on the key value present in the hashmap passed to Guvnor. [consequence][]Decision for DynamicValue is set as Denied=dec.setDecision(Denied); [condition][]Decision

Re: [rules-users] Drool Guvnor-Accessing Rules which are expired to do back dated calculations

2010-08-02 Thread Pavel Tavoda
Hello, forget date-expires. Just make your WHEN condition to match date you specify somewhere in your object as date for which to calculate. Then you will have two rules and each will match different date. Pavel 2010/8/2 Minal Sarmokadam minal.sarmoka...@lntinfotech.com: Hi, I am

Re: [rules-users] How to use Drools Flow?

2010-08-02 Thread XiaoMiTang
hi diego,thank u for your reply. As far as I understand, we start the work flow using the code: session.startProcess(……); Once it starts,it runs from Start node to End node~ User A runs the code session.startProcess(……),the work flow starts,runs step by step: (1)Human Task assigned to user A

[rules-users] Need help to call method with input parameter and return type

2010-08-02 Thread Sanjib Karmakar
Hi I am new in drools. In my project I have to call the method define in xml rule file using java ## Following is my rule xml ?xml version=1.0 encoding=UTF-8? package name=com.sample xmlns=http://drools.org/drools-5.0; xmlns:xs=http://www.w3.org/2001/XMLSchema-instance;

Re: [rules-users] Failed to read schema document when trying to transform from XML to DRL

2010-08-02 Thread Sanjib Karmakar
Hi Friends I got the same problem and the solution is replace the following line qualified-identifier-restriction evaluator===Message.HELLO /qualified-identifier-restriction with this qualified-identifier-restriction evaluator===Message.HELLO/qualified-identifier-restriction Note an extra

Re: [rules-users] Failed to read schema document when trying to transform from XML to DRL

2010-08-02 Thread Sanjib Karmakar
Hi Friends I got the same problem and the solution is replace the following line qualified-identifier-restriction evaluator===Message.HELLO /qualified-identifier-restriction with this qualified-identifier-restriction evaluator===Message.HELLO/qualified-identifier-restriction Note an extra

Re: [rules-users] Guvnor BRL format

2010-08-02 Thread Sreenath
Mark, Can you answer for this post? Thanks, Sreenath -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-BRL-format-tp983339p1018133.html Sent from the Drools - User mailing list archive at Nabble.com. ___

Re: [rules-users] Need help to call method with input parameter and return type

2010-08-02 Thread Wolfgang Laun
ksession hasn't been assigned an object when you call ksession.insert in RuleHandler.java:61. -W On 3 August 2010 06:31, Sanjib Karmakar sanj...@skytechsolutions.co.in wrote: Hi I am new in drools. In my project I have to call the method define in xml rule file using java ## Following is