[rules-users] Problem with gateway(diverge) executing first

2010-01-19 Thread Jian Feng Ng
I am having a problem with XOR node. This node has a ruleflow-group that linked TO it. It seems that the conditions are being checked first even before the rules in a ruleflow-group that linked to it. Hence I am having undesirable results because I am setting a variable of a model in with those rul

[rules-users] Human Task Example

2010-01-19 Thread Chuck Irvine
Hello. Is there a complete Human Task example that someone could point me to? I'm looking for an example that uses the Eclipse task plugin to allow users to complete tasks. Thanks! -Chuck ___ rules-users mailing list rules-users@lists.jboss.org https://li

Re: [rules-users] drools flow persistence

2010-01-19 Thread Maxi
Hi Kris It worked using drools version 5.1.0.M1 Thanks! Maxi Kris Verlaenen escribió: Maxi, Which version of Drools are you using? I believe this was an issue with transaction managers that do not support nested transactions and that has already been fixed on trunk. Could you try out

[rules-users] how to stop executing current agenda group and all rules without a KnowledgeHelper class

2010-01-19 Thread Pritam
I was following a http://javabeans.asia/2008/06/09/drools_stop_executing_current_agenda_group_and_all_rules.html blog post on how to stop executing a current agenda group and all rules, but it looks like Drools 5 doesn't have KnowledgeHelper as it's a part of an spi. Not sure why it was done tha

Re: [rules-users] rules-users Digest, Vol 38, Issue 58

2010-01-19 Thread Edson Tirelli
Yes, the good news is that it is clearly a parsing error, what makes it easy to fix. Do you mind opening a JIRA and attaching a test case or the info from your e-mails? Thanks, Edson 2010/1/19 Axelrod, Nelson > Hi Edson, > > Yes, you guessed right. We are using drools 5.0.1. > > Ex

Re: [rules-users] rules-users Digest, Vol 38, Issue 58

2010-01-19 Thread Axelrod, Nelson
Hi Edson, Yes, you guessed right. We are using drools 5.0.1. Exception in thread "main" org.jcvi.annotation.rulesengine.RulesResourceException: Could not parse resource in [FileResource file='C:\development\workspace\RulesBasedAnnotation\tests\org\jcvi\annot ation\rules\testNestedOr.drl'] with

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

2010-01-19 Thread Geoffrey De Smet
Hi Samuel, None of my implementations have a null instance asserted into the working memory. Which code is doing insertLogical(null)? IMHO, It shouldn't do that. In your code I noticed last time that you used smart functions. The problem is, those smart functions don't use DRL, so don't do forwa

Re: [rules-users] How to call a method from a cell in Drools 5 decision table?

2010-01-19 Thread Jospfh
Thanks for your suggestion, but in my case I do have technical user who are allowed to use more than just one method. They are also allow to use any standard java methods of the Srting class for example. -- View this message in context: http://n3.nabble.com/How-to-call-a-method-from-a-cell-in-Dr

Re: [rules-users] nested boolean expressions using prefixOr

2010-01-19 Thread Edson Tirelli
Nelson, Can you provide details on which exact version of drools (5.0.1?) you are using and what is the error/stack trace you are receiving? Thanks, Edson 2010/1/19 Axelrod, Nelson > Hi, > > > > I’ve encountered problems constructing nested Boolean expressions in Drools > 5.0 u

[rules-users] Stateless Vs Stateful Sessions in Webtier

2010-01-19 Thread Pritam
It isn't clear from the documentation and examples on the recommended usage of knowledge sessions. From Michael Bali's book, it is highly recommended to use StatelessKnowledgeSession, since it's threadsafe, but a quick look at the API shows that it doesn't support many of the features of stateful

[rules-users] nested boolean expressions using prefixOr

2010-01-19 Thread Axelrod, Nelson
Hi, I've encountered problems constructing nested Boolean expressions in Drools 5.0 using the prefixOr syntax. We're using Drools to build a genome annotation system at the Venter Institute. The following example rule assigns an annotation if there is a blast hit to a gene GB|AAQ16631.1, o

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

2010-01-19 Thread HonorGod
>> David Sinclair-2 Can you please help with my thread? -- View this message in context: http://n3.nabble.com/Is-this-possible-in-Guvnor-tp122132p130242.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list

Re: [rules-users] How to call a method from a cell in Drools 5 decision table?

2010-01-19 Thread Tihomir Surdilovic
Can't you as a workaround change your ACTION from m.setMessage($param);update(m); to m.setMessage(m.getMessage("$param"));update(m); and in your data column that gets interpolated replace m.getMessage("msg") with msg IMO this makes more sense where you have non-technical users modify the interp

Re: [rules-users] infinite loop in decision table

2010-01-19 Thread djb
My goal is to get some information out of this thing. I'm not updating the working memory anymore, and trying to use a global instead. and this is really not working at all. It goes through the code, says it is updating it, then the changes are lost. It doesn't instantiate any new versions of t

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

2010-01-19 Thread Samuel Deballon
Hi all, Hi Geoffrey, I have implemented a first version of the solution with two types of move : status move and another tour move. When i try to retrieved the scoreDetailList, the iterateObject is not clean. It contains many null values. I don't know if it's normal but it has for consequence t

[rules-users] Rule task problem

2010-01-19 Thread Kevin Alonso
Hello all, I´m working with drools 5.1M flow and when I run the flow, before the start, I get this message: (null: 42, 168): cvc-complex-type.3.2.2: Attribute 'implementation' is not allowed to appear in element 'businessRuleTask'. Then the flow executes until rule task node and finally it exi

Re: [rules-users] How to call a method from a cell in Drools 5 decision table?

2010-01-19 Thread Jospfh
I creates a ticket for this issue: https://jira.jboss.org/jira/browse/JBRULES-2409 https://jira.jboss.org/jira/browse/JBRULES-2409 -- View this message in context: http://n3.nabble.com/How-to-call-a-method-from-a-cell-in-Drools-5-decision-table-tp129780p130150.html Sent from the Drools - User

[rules-users] Checking boolean conditions without eval()

2010-01-19 Thread f.cima
Hi everyone I'm working with drools 5 and decision tables. I want to test some boolean condition. I manage to do so using eval, for example: CONDITION Message eval(message.equals("Hello") == $param) and param could be true, false or empty. I would like to do the same thing without using eval, b

[rules-users] NullPointerException with Parameter Mapping in HumanTask or custom tasks

2010-01-19 Thread Dirk
Hi Drools-User, I have a big problem with custom human task and custom workItems. I have a simple testprocess with just one variable called SessionId (type = Integer) and one Human Task with a custom WorkItemHandler which just print the parameter "workitem" to the stdout. For the persistence asp

[rules-users] infinite loop in decision table

2010-01-19 Thread djb
Hi, I have successfully used UNLOOP to stop repitition of rules in my decision table when one rule fires when all rules are mutually exclusive... but I've got two rows/rules matching a condition for a given input, and it is back to an infinite loop. Is there something like lock-on-active for a

[rules-users] How to compare dates from a rule

2010-01-19 Thread orchid
Hi, I have a class Doc which contains a field date of type java.util.Date. I would like in my rule to compare dates, something like: $d: Doc(date > "10/10/2009" && date < "19/01/2010"). How can I do that? Thanks !!! -- View this message in context: http://n3.nabble.com/How-to-compare-dates