Re: [rules-users] rule with array

2012-02-15 Thread Wolfgang Laun
On 15/02/2012, shawn wrote: > I found someone idea. It's kind of like split array. > when > Request( $sPath : getSubjectPath() ) // get two dimensional array > then > for( int i = 0; i < $sPath.length; i++ ) { > > insert( $sPath[i]); > > } > But I don't know

Re: [rules-users] drools template - drt

2012-02-15 Thread Michael Anstis
Have you read the Drools Expert documentation? sent on the move On 16 Feb 2012 03:19, "domingo" wrote: > In many ways, I find using drools template(drt) is more convenient than > using > Dtable. But I could not find much info about the templates(drt) user forum > or drools web site . any commen

Re: [rules-users] Failed to get rules from Guvor after apply Security using Tomcat and JAAS

2012-02-15 Thread mujoko mujoko
Thank you Esteban, I'll try to find it 2012/2/16 Esteban Aliverti > Please search in this list about this problem. Your question has been > answered before. I think the documentation also has a section about how to > add security elements to the change-set. > > Best Regards, > >

[rules-users] drools template - drt

2012-02-15 Thread domingo
In many ways, I find using drools template(drt) is more convenient than using Dtable. But I could not find much info about the templates(drt) user forum or drools web site . any comments or am i missing something. thanks, - with kind regards, -- View this message in context: http://drools.4

Re: [rules-users] rule with array

2012-02-15 Thread shawn
I found someone idea. It's kind of like split array. when Request( $sPath : getSubjectPath() ) // get two dimensional array then for( int i = 0; i < $sPath.length; i++ ) { insert( $sPath[i]); } But I don't know how to find the facts

Re: [rules-users] rule with array

2012-02-15 Thread shawn
yeah, I have thought about it. But if I use function, I have to write three for loops. like: /*function Boolean findSubject(Request request) { Pointer sPointer = request.getSubjectPath(); Pointer aPointer = request.getAuthorTable(); for( int i = 0; i < p.length; i++ ) {

Re: [rules-users] rule with array

2012-02-15 Thread Wolfgang Laun
Consider writing a DRL function that does the test and call it in an inline eval(). -W On 15 February 2012 18:26, shawn wrote: > Hi, > I meet a problem to find an element in an array. > First, I have a 2 dimensional array and a 1 dimensional array. > I need to compare whether the element in 2 di

[rules-users] rule with array

2012-02-15 Thread shawn
Hi, I meet a problem to find an element in an array. First, I have a 2 dimensional array and a 1 dimensional array. I need to compare whether the element in 2 dimensional array is as same as 1 dimensional array. How to solve it? Like: In Java - int [][] A; int [] B; how to iterate array A and array

Re: [rules-users] Failed to get rules from Guvor after apply Security using Tomcat and JAAS

2012-02-15 Thread Esteban Aliverti
Please search in this list about this problem. Your question has been answered before. I think the documentation also has a section about how to add security elements to the change-set. Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com

Re: [rules-users] Can we edit "view source " option in Drools Guvnor

2012-02-15 Thread Michael Anstis
You could copy the DRL from source view (edit, remove line numbers) and import as a new package... however this is a bit of a cludge. There is a bulk importer but I don't know if it will help (Rikkola may know). Otherwise using the REST API to connect to one instance (of Guvnor) and write to anot

Re: [rules-users] Fwd: Re: Guvnor - expected value of a list

2012-02-15 Thread Toni Rikkola
Looks like a bug. I made a Jira for it. https://issues.jboss.org/browse/GUVNOR-1830 Toni On Feb 15, 2012, at 10:45 AM, Péter Gombás wrote: > Hello, > > its a simple pojo: > > package com.gp; > > > import java.util.ArrayList; > import java.util.List; > > public class ClassB > { >List i

Re: [rules-users] Opening Package in Designer editor through UUID

2012-02-15 Thread Tihomir Surdilovic
Your question answered in the jBPM forum (https://community.jboss.org/message/716783#716783). Thanks. On 2/15/12 6:24 AM, srinivasasanda wrote: > I have a one doubt in this designer editor of DROOLS-guvnor war file.When I > open the designer editor through > http://localhost:8080/designer/editor?p

[rules-users] Can we edit "view source " option in Drools Guvnor

2012-02-15 Thread Veera
Hi All, I dont know wheter it is possible or not. i was create a one Decison Table with 100 rules( 100 rows) , So i want to copy this decision table into another new Guvnor (if i export the repository i am loosing the data which is there already in new Guvnor ) So my requirement is to copy th

[rules-users] Opening Package in Designer editor through UUID

2012-02-15 Thread srinivasasanda
I have a one doubt in this designer editor of DROOLS-guvnor war file.When I open the designer editor through http://localhost:8080/designer/editor?profile=jbpm&uuid=123456..It is succesfully opening the designer editor.But,there is no option to save it.So,I tried with URL http://localhost:8080/droo

Re: [rules-users] [planner] uninitialized planning value [error]

2012-02-15 Thread Geoffrey De Smet
Looks like in WomanChangeMove you do workingMemory(null, entity) or (handle, null) Op 15-02-12 10:56, Nurlan schreef: > after this I get another NPE: > > I tried find my mistake :( > > > Exception in thread "main" java.lang.NullPointerException > at org.drools.common.NamedEntryPoint.update(

[rules-users] KnowledgeAgent custom class loader not working for PKG resources

2012-02-15 Thread Hrumph
I believe there may be a bug when trying to use a custom class loader with the KnowledgeAgent and the KnowledgeBuilderConfiguration, and when the ChangeSet is a PKG resource. I have been trying to get the knowledge-agent-classloader sample from the new Drools Cookbook to work with a PKG resource.

Re: [rules-users] [planner] uninitialized planning value [error]

2012-02-15 Thread Nurlan
after this I get another NPE: I tried find my mistake :( Exception in thread "main" java.lang.NullPointerException at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:380) at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:958) at or

Re: [rules-users] Fwd: Re: Guvnor - expected value of a list

2012-02-15 Thread Péter Gombás
Hello, its a simple pojo: package com.gp; import java.util.ArrayList; import java.util.List; public class ClassB { List items = new ArrayList(); public void add(String s, int faktor) { for (int i = 0; i < faktor; i++) { items.add(s); } }

Re: [rules-users] [planner] uninitialized planning value [error]

2012-02-15 Thread Geoffrey De Smet
For the record: In your solverConfig, you're missing a || section (use FIRST_FIT) before the || section, see manual for more information or most of the examples. I 'll file a JIRA to get a better exception message when this occurs. Op 14-02-12 15:39, Nurlan schreef: Is it possible setting

Re: [rules-users] Fwd: Re: Guvnor - expected value of a list

2012-02-15 Thread Toni Rikkola
In the summary: "...was [[test1,test1]] expected [[test1,test1]]" Looks like it should work. Can you tell me more about ClassB. Is it a pojo or declared model and is the field "items" a collection and what kind of? Thanks Toni On Feb 15, 2012, at 10:07 AM, Péter Gombás wrote: > Hi, > > still n