[rules-users] Guvnor 6.0.0.Final: How to assign package and category permissions?

2013-11-28 Thread nelson.wan
In guvnor 5.5.0.Final, there is User Permission feature to create user mapping, assign package / category permissions to user. However, we cannot see such feature. For user mapping, we found that it can be achived by editing user.properties in guvnor WAR file. However, we are unable to identify

[rules-users] Binding mysteries

2013-11-28 Thread Sonata
Hi, got a few questions about binding variables, hope someone can help out, thanks. 1. Does binding actually cache the result for the RHS? example: rule "no binding" when c : MyClass(member1 != member2) then c.somemethod(imp.getMember1()); end rule "with binding" when c : MyClass(m : member1, mem

[rules-users] [Optaplanner] Help on drl

2013-11-28 Thread Tales Costa
Hi, I am new to Drools and Optaplanner and have built a first model and succeeded running with java score calculation. Now am struggling trying to use rules for score. Have read "Drools Expert User Guide" and looked through Optaplanner examples but am still confused. Main difficult is discovering

Re: [rules-users] Drools 6 and dynamic update

2013-11-28 Thread Nicolas Héron
"if your rules change, then your version changes, and a new jar needs to be published" Before you could rebuild a knowledgeBase, loading a binary package from Guvnor (by building a snapshot in guvnor ) and this at run time. So now you publish. How does the Kie-ci grap that jar ? How do you in a we

[rules-users] [Announce] EulerGUI 2.0

2013-11-28 Thread Jean-Marc Vanel
Hi I am pleased to announce the release 2.0 of EulerGUI, a development tool and a framework for rules and the Semantic Web, under LGPL license, in Java and Scala. As was already told on this list, EulerGUI has Drools under the hood, plus 4 other rules engines, and integration with controled (for

Re: [rules-users] Drools 6 and dynamic update

2013-11-28 Thread Mark Proctor
If your rules change, then your version changes, and a new jar needs to be published. Separate your rules, from your application and allow them to be dynamically updated. Mark On 28 Nov 2013, at 14:52, Nicolas Héron wrote: > Hi Mark, > thanks for you answer. > When you say deploy, I guess i

Re: [rules-users] Drools 5.5.0 - Execution Performance

2013-11-28 Thread ch3xy
I used same session for insertion and retracted facts after each cycle. But nothing changes in execution time when creating a new session each cycle. I made a last test with 300 totally different facts and it showed that the rule engine somehow "learns" and asserts faster if a similar object is in

Re: [rules-users] Drools 6 and dynamic update

2013-11-28 Thread Nicolas Héron
Hi Mark, thanks for you answer. When you say deploy, I guess it is in the worbench's repository ? Now I do not want to compile or whatever. My application is running and while running, we want it to load new set of rules. How is the KieContainer aware of the workbench address or stuff like that ? I

Re: [rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread Wolfgang Laun
Well, I don't know what your fact classes contain nor what they mean, and I haven't the foggiest what you're trying to do - so how can I help you? The previous answer was just for a technical issue, but now your're asking for more... -W On 28/11/2013, braveheart85 wrote: > I tried what you said

Re: [rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread braveheart85
I tried what you said: $o: FamilyData( identifierCode == "PCFNDR85E15H501S" ) $y: org.titan.family.filter.YearData( ) from $o.data.get(0) $e: FamilyEntity( ) from $y.familyEntity.get(0) $result : Number( ) from accumulate ($r: Relative( ) from $e.re

Re: [rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread braveheart85
I don't understand your hint... If i pick only first element then how can i have count of relatives in all years? thank you very much Andrea -- View this message in context: http://drools.46999.n3.nabble.com/BUG-Can-t-build-a-rete-network-with-an-inner-OR-group-element-tp4026974p4026984.html S

Re: [rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread braveheart85
Investigating more thoroughly I discover a strange behaviour of accumulate function. I have 5 instances of Relative Object distributed in 3 instances of Family (2 relatives in first Family, 2 relatives in second Family and finally 1 relative in last Family). When i perform this rule: $o: F

Re: [rules-users] Drools 6 and dynamic update

2013-11-28 Thread Mark Proctor
As per previous email: 1) Create your original project with rules, build and deploy the jar. 2) Load the JAR to create a KieContainer. 3) add or change rules. Change the maven version, build and deploy the jar. 4) Ensure the JAR is in the KieRepository, or available to maven if using kie-ci, and

Re: [rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread Wolfgang Laun
If possible, pick the first element of FamilyData.data only, like so: y: YearData( ) from $o.data.get(0) -W On 28/11/2013, braveheart85 wrote: > unfortunately there is a problem in previous solution. > I wrote: > > $o: FamilyData( identifierCode == "PCFNDR85E15H501S" ) > $y: YearD

Re: [rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread braveheart85
unfortunately there is a problem in previous solution. I wrote: $o: FamilyData( identifierCode == "PCFNDR85E15H501S" ) $y: YearData( ) from $o.data $result : Number( ) from accumulate (FamilyEntity( $relatives : relative ) from $y.familyEntity,

Re: [rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread braveheart85
Thank you laune. You're right, I didn't believe it would work. -- View this message in context: http://drools.46999.n3.nabble.com/BUG-Can-t-build-a-rete-network-with-an-inner-OR-group-element-tp4026974p4026978.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] BEST_FIT Null Pointer Exception

2013-11-28 Thread newbie
Exception in thread "main" java.lang.NullPointerException at com.example.domain.solver.MyVariableStrengthComparator.compare(MyVariableStrengthComparator.java:30) at com.example.domain.solver.MyVariableStrengthComparator.compare(MyVariableStrengthComparator.java:1) at java.ut

Re: [rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread Wolfgang Laun
Why don't you move $y: Year( ) from $o.data up in front of the accumulate? -W On 28/11/2013, braveheart85 wrote: > Hello guys, > > I have just obtained this DroolsRuntimeException when i perform this rule: > > $result : Number( ) from accumulate > ( > ($y: Y

[rules-users] BUG: Can't build a rete network with an inner OR group element

2013-11-28 Thread braveheart85
Hello guys, I have just obtained this DroolsRuntimeException when i perform this rule: $result : Number( ) from accumulate ( ($y: Year( ) from $o.data) && (Family( $relatives : relative ) from $y.familyEntity),

[rules-users] Drools 6 and dynamic update

2013-11-28 Thread Nicolas Héron
Hi All, In previous Drools version (5.3, 5.4, 55 and 5.6RC1), it was possible to dynamically update the package content from Guvnor. The use case was : 1) Some rules are created/updated/deleted on Guvnor 2) A new snapshot is built 3) The drools runtime is notified and reload a new knowledgeBase f