Re: [rules-users] JTA question

2009-10-28 Thread Mark Proctor
Kris Verlaenen wrote: Allen, We selected JPA and JTA because they appear to be the standards for persistence and transaction currently. When you say incompatible, do you mean that the WebSphere transaction manager isn't JTA compliant, that we are using JTA features that WebSphere does not suppo

[rules-users] Decision tables

2009-10-28 Thread Chris Richmond
Hello, What is the most straightforward example of using a decision table for rules(CSV or Excel) within the sample code? Essentially I want to check if it would work for the usage case where I want the end user to be able to set all sorts of parameter limit values for rules on objects bein

Re: [rules-users] Drools fusion and absence of events

2009-10-28 Thread Edson Tirelli
There is a different treatment for infinity: if the wait time is finite, the engine will delay the rule execution for that amount of time (in STREAM mode). If there is no temporal constraint or the temporal offset evaluates to infinity, the engine understand that the event would already have arri

Re: [rules-users] [droolsflow] JPAVariablePersister - Multiple Entries for Variables passed into ForEach

2009-10-28 Thread Kris Verlaenen
Bill, Is it possible that your ForEach is starting a subprocess where there also is a process variable role? Looking at the screenshot, it appear you are indeed persisting the same Role twice (leading to two JPAPersistedVariables), both referring to the same entity (id=1). But the processId see

Re: [rules-users] JTA question

2009-10-28 Thread Kris Verlaenen
Allen, We selected JPA and JTA because they appear to be the standards for persistence and transaction currently. When you say incompatible, do you mean that the WebSphere transaction manager isn't JTA compliant, that we are using JTA features that WebSphere does not support, or that it is a cust

Re: [rules-users] Drools fusion and absence of events

2009-10-28 Thread richarda
Thanks, it turns out my email post was correct and my code i was testing with with different.. If I do, $a : MyBean(name=="one"); not( MyBean(name=="two", this after [0s,10s] $a)) which means, item not received between 0 and 10 seconds then it works as expected.. If I do

Re: [rules-users] Specific Agenda strategy to control which rules to fire

2009-10-28 Thread Costigliola Joel (EXT)
I forgot to give the priority of the booking rules in my example, here it is : - BR1 : low priority (1 - BR2 : higher priority (2) - BR3 : same as BR2 Sorry Joel De : rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] De la part de C

[rules-users] Specific Agenda strategy to control which rules to fire

2009-10-28 Thread Costigliola Joel (EXT)
Hello all, I need some help to to set a specific Agenda strategy in order to control finely which activated rules will be fired. Problem context : - My company is a bank where traders are making deals on markets, these deals must be classified in book, this is what we call "book

Re: [rules-users] Drools fusion and absence of events

2009-10-28 Thread Edson Tirelli
Richard, It depends on which mode you are running the engine (STREAM or CLOUD) and in case you are using STREAM, which clock are you using. If you are using CLOUD, Drools assumes all facts/events are available, and does not wait to fire the activation. If you are using STREAM mod

[rules-users] Serialization of packages: NotSerializableException (KnowledgePackageImp) and InvalidClassException (serialVersionUID)

2009-10-28 Thread Bernd Rücker
Has anybody an idea what’s these problems? I didn’t find any test cases, are there any test cases for serializing the PKG files? What am I doing wrong? Von: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Bernd Rücker Gesendet: Dienstag, 1. Sep

Re: [rules-users] Droolsflow web console 5.1.M1 - Non human task

2009-10-28 Thread Mauricio Salatino
Kris, I see that behavior in his machine and it seems that for some reason, the page that contains the start button, don't get the ID from the selected process in the process definition page. Because a window appear and the error message is that the gwt-console was not able to get the process with

Re: [rules-users] question about Process Instances

2009-10-28 Thread Kris Verlaenen
Daniel, Yes there is. We did not expose it in the drools-api because it should probably not be used as a preferred solution, because it could lead to you changing process instance data in the middle of the process execution, create confusion if you have nested variable scopes, etc. In general, wo

[rules-users] Drools fusion and absence of events

2009-10-28 Thread Richard Ambridge
Hi, Trying to get to grips with Fusion and absence of events... If I have a Bean that has just a simple variable, e.g. class MyBean { private String name; getter+setter } I want to use events to determine when an object with name=="one" is available, and no object with name=="tw

Re: [rules-users] [droolsflow] Code-based constraints for EventWait nodes - is this possible?

2009-10-28 Thread Kris Verlaenen
Alan, Could you send me the entire output / stack trace (as the rollback of the transaction is usually caused by another exception)? Or a simple test case that shows the error, so I can take a look? Thx, Kris Quoting alan.gai...@tessella.com: > Kris, > > After posting my last question, I quic

Re: [rules-users] Question about signalEvent method

2009-10-28 Thread Kris Verlaenen
Daniel, Yes, the event parameter is the data associated with the event. If you want to access this data in the process instance, you should set the "VariableName" property of the event node that is responsible for catching the event, that will then make sure that the data is copied to that proces

Re: [rules-users] Droolsflow web console 5.1.M1 - Non human task

2009-10-28 Thread Kris Verlaenen
Satjo, What do you mean by "could not be started"? Note that, if you have no form associated with the process, it should simply start the process. Also note that, if your process does not contain any wait states at all (like human tasks), it will be started but will already be completed when the

Re: [rules-users] cannot retrieve timerId from timerInstance - Bug?

2009-10-28 Thread Tom
Hi Kris! Thanks for your reply! Ok, I can retrieve the correct timer Ids now using getID(). But now I'm running into an exception when I try to cancel the timer nodes. I cannot use "drools.getWorkingMemory().getTimerManager().getTimerService().shutdown();", because The shutdown method closes the kn

Re: [rules-users] couuld not load fact to rule engine

2009-10-28 Thread Hemanth kumar
hi isterin, I have less knowledge of what you are saying. would you please send an working example thanx hemanth isterin wrote: > > You have to inject the same class loader which loaded your dynamic > class into the drools. Here is the blog post outlining how to do it > as well as some ca