Re: [rules-users] Persistence in Drools 6

2014-05-28 Thread Steinmetz, Jean-Philippe
Hi Charles, Yes I am using a KieScanner to look for updates. Since I am using Spring I had to wrap it so that it could be properly initialized and started as a bean. I didn't include that bit in my original post as it didn't seem relevant to the problem at hand. The other reason why I decided to

[rules-users] Workbench: Error after cloning repository

2014-05-28 Thread Steinmetz, Jean-Philippe
Hello, I have successfully cloned an existing repository containing a maven kmodule project. Unfortunately when I attempt to open any of the DRL files in the workbench (6.0.1.Final) I get the following error: Unable to complete your request. The following exception occurred: java.lang.ClassNotFou

Re: [rules-users] Syntax Question on an or condition

2014-05-28 Thread Wolfgang Laun
On 28/05/2014, Chidambaran Subramanian wrote: > rule "Test" > dialect "mvel" > when > ( Customer( age == 50 ) or Deal( amount == 30 ) ) > then > Customer.setAge( "40" ); > update( Customer ); > Customer.setPlace( "Test" ); > update( Customer ); > > end The rule uses inva

Re: [rules-users] How do I access objects in a top level or condition?

2014-05-28 Thread Mauricio Salatino
Hi, you can't because you don't know which is true. You can create two rules one for each condition and then you can access by binding the Conditaional Element to a variable: Like for example: when $c: Customer( age == 50 ) then $c.setAge( "40" ); On Wed, May 28, 2014 at 3:39 PM, Chida

[rules-users] How do I access objects in a top level or condition?

2014-05-28 Thread Chidambaran Subramanian
rule "Test" dialect "mvel" when ( Customer( age == 50 ) or Deal( amount == 30 ) ) then Customer.setAge( "40" ); update( Customer ); Customer.setPlace( "Test" ); update( Customer ); end Appreciate any help in this regard. Regards Chiddu _

[rules-users] Syntax Question on an or condition

2014-05-28 Thread Chidambaran Subramanian
rule "Test" dialect "mvel" when ( Customer( age == 50 ) or Deal( amount == 30 ) ) then Customer.setAge( "40" ); update( Customer ); Customer.setPlace( "Test" ); update( Customer ); end How to do I tag both Customer and Deal on the 1st condition , to enable me to ___

Re: [rules-users] Cannot issue fireUntilHalt when using persisted session

2014-05-28 Thread rogerL
Open ticket https://issues.jboss.org/browse/DROOLS-507. I didn't provide any persist and reload code as the system hasn't ever reached the point of saving a session. I tried working around the issue by using fireAllRules and an interval rule. I was able to persist; however, the reload is failed wit

[rules-users] mvn deploy to workbench fails: Return code is: 405, ReasonPhrase:Method Not Allowed.

2014-05-28 Thread jmterrettaz
Hi I have installed the Drools Workbench kie-drools-wb-distribution-wars-6.0.1.Final-jboss-as7.0.war on JBoss EAP 6.2. When I try to do a mvn deploy to the workbench it fails with "Return code is: 405, ReasonPhrase:Method Not Allowed." Here the distributionManagement section of the POM:

Re: [rules-users] Excel Syntax in Decision Tables

2014-05-28 Thread crosbis2
Thanks Wolfgang!! -- View this message in context: http://drools.46999.n3.nabble.com/Excel-Syntax-in-Decision-Tables-tp4029520p4029735.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@l

Re: [rules-users] how to create kbases with useful names for JMX

2014-05-28 Thread Edson Tirelli
Christopher, Thanks for reporting this. The public API does not currently allows users to set the ID of the KieBase unfortunately. I will fix this for 6.1. With 6.0, it is only possible to do it using the internal APIs. Edson On Tue, May 27, 2014 at 4:37 PM, cjohns13 wrote: > How can

Re: [rules-users] Abstraction between rules and data model?

2014-05-28 Thread Péter Gergely , Horváth
Thanks for the explanation, I was a bit confused because of the terminology; "virtual" is not mentioned in the docs. ;) Is there any plan for the public release of Trait property binding to a nested path? We would definitely need something like that in our environment. Or do you see any way we cou