[rules-users] Load rules on start up

2010-03-22 Thread Gaurav

Hi All,

I want to load all the rules on jvm start up and use them in my application
instead of creating knowledgebase object on each click.

Could you please provide me any sample code for the same.

Thanks,
Gaurav
-- 
View this message in context: 
http://n3.nabble.com/Load-rules-on-start-up-tp467840p467840.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools stateless session question

2010-03-22 Thread Shah, Malay
It will be 1 trillion activations unless there is an index on the "id" property 
of the classes. If the right index is used, it should scan all objects of one 
class, and through indexes figure out the corresponding related objects of 
other classes. I am not sure if we can somehow tell rete to create indexes on 
certain attributes. I read a nice article on indexing in drools, which 
mentioned about Rete Beta node indexing. I am not sure if this is what drools 
is doing internally. Any suggestions/ideas?

http://blog.decaresystems.ie/index.php/2008/02/24/rete-nodes-indexing-in-drools/

Thanks,
Malay


From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Monday, March 22, 2010 3:17 PM
To: Rules Users List
Subject: Re: [rules-users] Drools stateless session question

You have calculated it correctly: 1 A's * 1 B's * 1 C's results in 
1,000.000,000.000 activations, which is (almost) a mind-boggling figure. I 
can't imagine what benefit this trillion of activations is going to have for 
your application. Even if you have the memory for all that, assuming that 
firing of one of these activations and processing of the RHS statements can be 
done in one microsecond, this is going to take days to complete, and it'll 
create a huge data set of A/B/C combinations for just this one rule.

Are you sure that you are on the right track?!

-W


On Mon, Mar 22, 2010 at 7:46 PM, Shah, Malay 
mailto:malay.s...@morganstanley.com>> wrote:
Thanks W. Let me give you a rule that is causing us issues. Lets say we have 
classes:

class A
{
   int a;
   String id;
}
Class B
{
   int  b;
   String id;
}
Class C
{
   int c;
   String id;
}

and we have 12000 objects each. These objects are connected using "id" property.
If the rule is something like:

Rule "ABC"
When
   Obj_A: A(a!=1)  //1 object "A" instances have a!=1
   Obj_B: B(b!=2,Obj_A.id = id)//1 object "B" instances 
have b!=2
   Obj_C: C(c!=3,Obj_B.id = id)//1 object "C" instances 
have c!=3
Then
   System.out.println("Rule fired");
End

This means there would be a join between A, B and C objects (1 A's * 1 
B's * 1 C's) to evaluate the rule. In such cases, we see very high 
org.drools.reteoo.LeftTuple object count while profiling the app. Is there a 
way to make the rete algo perform this evaluation serially, or in batches, or 
use some object swapping mechanism to limit creation of intermediate LeftTuple 
objects? Would the rete algo use indexes in this case? That would potentially 
decrease these intermediate objects. Currently, we use 5G heap and that is not 
enough for evaluating this rule.

Regards,
Malay

-Original Message-
From: 
rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Wolfgang Laun
Sent: Monday, March 22, 2010 12:39 PM
To: Rules Users List
Subject: Re: [rules-users] Drools stateless session question

You have misunderstood the documentation. All eight items in the enumeration 
you cite from are steps performed internally by the Drools engine. The only 
thing you have to do is request sequential mode.

Without an idea about the rule set you are using it's difficult to advise how 
to reduce memory consumption.

-W


2010/3/22 Shah, Malay 
mailto:malay.s...@morganstanley.com>>:
> Hi All,
>
> We have an application that uses drools stateless session over a set
> of 35000 objects (taking about 40 MB heap) of different types. During
> profiling, I saw that for rules that perform joins between two huge
> object types data sets, lots of org.drools.reteoo.LeftTuple objects
> causing out of memory errors. We are using 5G heap, and have set
> property drools.sequential=true too. Is there any way we can decrease
> the memory usage while applying these rules? Drools documentation
> mentions  for sequential mode, we should do the following, some of
> them I am not sure how to set:
>
>
> Turn off all node memories, except the right-input Object memory.
>
> Disconnect the LeftInputAdapterNode propagation, and have the Object
> plus the Node referenced in a Command object, which is added to a list
> on the WorkingMemory for later execution.
>
> Assert all objects, when all assertions are finished and thus
> right-input node memories are populated check the Command list and execute 
> each in turn.
>
> http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/inde
> x.html#d0e1295
>
> Do we need to set some properties in RuleBaseConfiguration to make
> sure node memories are switched off? It would be great if we can
> somehow decrease the memory usage for stateless sessions? Has anybody
> come across such memory issues before? Correct me if I am wrong, but I
> think 35000 objects is not a lot of data for causing s

Re: [rules-users] marshal ActionNodeInstance

2010-03-22 Thread heldeen

I forgot to note that I am using 5.1.M1.

-Heath
-- 
View this message in context: 
http://n3.nabble.com/marshal-ActionNodeInstance-tp467573p467576.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] marshal ActionNodeInstance

2010-03-22 Thread heldeen

Hello List,

I am marshalling using the DefaultMarshaller in drools and get the following
error:

java.lang.IllegalArgumentException: Unknown node instance type:
org.drools.workflow.instance.node.actionnodeinsta...@d20c43
at
org.drools.marshalling.impl.AbstractProcessInstanceMarshaller.writeNodeInstanceContent(AbstractProcessInstanceMarshaller.java:243)
at
org.drools.marshalling.impl.AbstractProcessInstanceMarshaller.writeNodeInstance(AbstractProcessInstanceMarshaller.java:117)
at
org.drools.marshalling.impl.AbstractProcessInstanceMarshaller.writeProcessInstance(AbstractProcessInstanceMarshaller.java:106)
at
org.drools.marshalling.impl.AbstractProcessInstanceMarshaller.writeProcessInstance(AbstractProcessInstanceMarshaller.java:52)
at
org.drools.marshalling.impl.OutputMarshaller.writeProcessInstances(OutputMarshaller.java:750)
at
org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:97)
at
org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:117)


The action node has some very basic java code that I have verified works
outside of the node. Is there a trick to get around this error or do I need
to report a bug?

-Heath
-- 
View this message in context: 
http://n3.nabble.com/marshal-ActionNodeInstance-tp467573p467573.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools stateless session question

2010-03-22 Thread Wolfgang Laun
You have calculated it correctly: 1 A's * 1 B's * 1 C's results
in 1,000.000,000.000 activations, which is (almost) a mind-boggling figure.
I can't imagine what benefit this trillion of activations is going to have
for your application. Even if you have the memory for all that, assuming
that firing of one of these activations and processing of the RHS statements
can be done in one microsecond, this is going to take days to complete, and
it'll create a huge data set of A/B/C combinations for just this one rule.

Are you sure that you are on the right track?!

-W


On Mon, Mar 22, 2010 at 7:46 PM, Shah, Malay
wrote:

> Thanks W. Let me give you a rule that is causing us issues. Lets say we
> have classes:
>
> class A
> {
>int a;
>String id;
> }
> Class B
> {
>int  b;
>String id;
> }
> Class C
> {
>int c;
>String id;
> }
>
> and we have 12000 objects each. These objects are connected using "id"
> property.
> If the rule is something like:
>
> Rule "ABC"
> When
>Obj_A: A(a!=1)  //1 object "A" instances have
> a!=1
>Obj_B: B(b!=2,Obj_A.id = id)//1 object "B" instances
> have b!=2
>Obj_C: C(c!=3,Obj_B.id = id)//1 object "C" instances
> have c!=3
> Then
>System.out.println("Rule fired");
> End
>
> This means there would be a join between A, B and C objects (1 A's *
> 1 B's * 1 C's) to evaluate the rule. In such cases, we see very high
> org.drools.reteoo.LeftTuple object count while profiling the app. Is there a
> way to make the rete algo perform this evaluation serially, or in batches,
> or use some object swapping mechanism to limit creation of intermediate
> LeftTuple objects? Would the rete algo use indexes in this case? That would
> potentially decrease these intermediate objects. Currently, we use 5G heap
> and that is not enough for evaluating this rule.
>
> Regards,
> Malay
>
> -Original Message-
> From: rules-users-boun...@lists.jboss.org [mailto:
> rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
> Sent: Monday, March 22, 2010 12:39 PM
> To: Rules Users List
> Subject: Re: [rules-users] Drools stateless session question
>
> You have misunderstood the documentation. All eight items in the
> enumeration you cite from are steps performed internally by the Drools
> engine. The only thing you have to do is request sequential mode.
>
> Without an idea about the rule set you are using it's difficult to advise
> how to reduce memory consumption.
>
> -W
>
>
> 2010/3/22 Shah, Malay :
> > Hi All,
> >
> > We have an application that uses drools stateless session over a set
> > of 35000 objects (taking about 40 MB heap) of different types. During
> > profiling, I saw that for rules that perform joins between two huge
> > object types data sets, lots of org.drools.reteoo.LeftTuple objects
> > causing out of memory errors. We are using 5G heap, and have set
> > property drools.sequential=true too. Is there any way we can decrease
> > the memory usage while applying these rules? Drools documentation
> > mentions  for sequential mode, we should do the following, some of
> > them I am not sure how to set:
> >
> >
> > Turn off all node memories, except the right-input Object memory.
> >
> > Disconnect the LeftInputAdapterNode propagation, and have the Object
> > plus the Node referenced in a Command object, which is added to a list
> > on the WorkingMemory for later execution.
> >
> > Assert all objects, when all assertions are finished and thus
> > right-input node memories are populated check the Command list and
> execute each in turn.
> >
> > http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/inde
> > x.html#d0e1295
> >
> > Do we need to set some properties in RuleBaseConfiguration to make
> > sure node memories are switched off? It would be great if we can
> > somehow decrease the memory usage for stateless sessions? Has anybody
> > come across such memory issues before? Correct me if I am wrong, but I
> > think 35000 objects is not a lot of data for causing such issues.
> >
> > Thanks
> > Malay
> > 
> >
> > NOTICE: If received in error, please destroy, and notify sender.
> > Sender does not intend to waive confidentiality or privilege. Use of
> > this email is prohibited when received in error. We may monitor and
> > store emails to the extent permitted by applicable law.
> >
> > 
> >
> > NOTICE: If received in error, please destroy, and notify sender.
> > Sender does not intend to waive confidentiality or privilege. Use of
> > this email is prohibited when received in error. We may monitor and
> > store emails to the extent permitted by applicable law.
> >
> > ___
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
>
> __

[rules-users] Guvnor "Newbie" Question

2010-03-22 Thread John Peterson
I've imported a model from Eclipse and created a bunch of rules in
Guvnor, but I have not found a way to see all the Facts, Attributes, and
Methods that are available in my Model.  Is there some place I can go
see everything from within Guvnor? 
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Flow Spring Integration

2010-03-22 Thread zx spectrum
Is there a working example on integrating Drools Flow with Spring?

I can see an attempt in the trunk:
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-container/drools-spring/src/test/resources/org/drools/container/spring/beans/persistence/beans.xml

but it is rather a sketch...

I am looking to create a stateful JPA KnowledgeService, DB Logger and
register Variable Persisters via Spring.

Thank you,
/Anatoly
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools stateless session question

2010-03-22 Thread Shah, Malay
Thanks W. Let me give you a rule that is causing us issues. Lets say we have 
classes:

class A
{
int a;
String id;
}
Class B
{
int  b;
String id;
}
Class C
{
int c;
String id;
}

and we have 12000 objects each. These objects are connected using "id" property.
If the rule is something like:

Rule "ABC"
When
Obj_A: A(a!=1)  //1 object "A" instances have a!=1
Obj_B: B(b!=2,Obj_A.id = id)//1 object "B" instances 
have b!=2
Obj_C: C(c!=3,Obj_B.id = id)//1 object "C" instances 
have c!=3
Then
System.out.println("Rule fired");
End

This means there would be a join between A, B and C objects (1 A's * 1 
B's * 1 C's) to evaluate the rule. In such cases, we see very high 
org.drools.reteoo.LeftTuple object count while profiling the app. Is there a 
way to make the rete algo perform this evaluation serially, or in batches, or 
use some object swapping mechanism to limit creation of intermediate LeftTuple 
objects? Would the rete algo use indexes in this case? That would potentially 
decrease these intermediate objects. Currently, we use 5G heap and that is not 
enough for evaluating this rule. 

Regards,
Malay

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Monday, March 22, 2010 12:39 PM
To: Rules Users List
Subject: Re: [rules-users] Drools stateless session question

You have misunderstood the documentation. All eight items in the enumeration 
you cite from are steps performed internally by the Drools engine. The only 
thing you have to do is request sequential mode.

Without an idea about the rule set you are using it's difficult to advise how 
to reduce memory consumption.

-W


2010/3/22 Shah, Malay :
> Hi All,
>
> We have an application that uses drools stateless session over a set 
> of 35000 objects (taking about 40 MB heap) of different types. During 
> profiling, I saw that for rules that perform joins between two huge 
> object types data sets, lots of org.drools.reteoo.LeftTuple objects 
> causing out of memory errors. We are using 5G heap, and have set 
> property drools.sequential=true too. Is there any way we can decrease 
> the memory usage while applying these rules? Drools documentation 
> mentions  for sequential mode, we should do the following, some of 
> them I am not sure how to set:
>
>
> Turn off all node memories, except the right-input Object memory.
>
> Disconnect the LeftInputAdapterNode propagation, and have the Object 
> plus the Node referenced in a Command object, which is added to a list 
> on the WorkingMemory for later execution.
>
> Assert all objects, when all assertions are finished and thus 
> right-input node memories are populated check the Command list and execute 
> each in turn.
>
> http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/inde
> x.html#d0e1295
>
> Do we need to set some properties in RuleBaseConfiguration to make 
> sure node memories are switched off? It would be great if we can 
> somehow decrease the memory usage for stateless sessions? Has anybody 
> come across such memory issues before? Correct me if I am wrong, but I 
> think 35000 objects is not a lot of data for causing such issues.
>
> Thanks
> Malay
> 
>
> NOTICE: If received in error, please destroy, and notify sender. 
> Sender does not intend to waive confidentiality or privilege. Use of 
> this email is prohibited when received in error. We may monitor and 
> store emails to the extent permitted by applicable law.
>
> 
>
> NOTICE: If received in error, please destroy, and notify sender. 
> Sender does not intend to waive confidentiality or privilege. Use of 
> this email is prohibited when received in error. We may monitor and 
> store emails to the extent permitted by applicable law.
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

--
NOTICE: If received in error, please destroy, and notify sender. Sender does 
not intend to waive confidentiality or privilege. Use of this email is 
prohibited when received in error. We may monitor and store emails to the 
extent permitted by applicable law.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] ClassCastExeception on some objects

2010-03-22 Thread Edson Tirelli
   Sounds like a bug. Can you provide an isolated test case for us to
reproduce the problem?

   Thanks
 Edson

2010/3/19 Martin Seebach 

> Hi,
>
> When executing my rules for an object, on some objects I get a
> ClassCastException:
>
> java.lang.ClassCastException: org.drools.reteoo.CollectNode$CollectMemory
> cannot be cast to org.drools.core.util.ObjectHashMap
> at
> org.drools.reteoo.RightInputAdapterNode.assertLeftTuple(RightInputAdapterNode.java:128)
> (full stack-trace: http://pastie.org/877237)
>
> I've looked around in the source around where this happens, and can't
> figure out how it relates to my rules-file. (http://pastie.org/877238)
>
> Any pointers on how to approach this problem?
>
> Thanks!
>
> Regards,
> Martin Seebach
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Junit, PseudoClock and NPE

2010-03-22 Thread Edson Tirelli
 Hmmm, strange... would you be able to share your junit test? If so,
could you please open a JIRA and attach the test?

 Thanks,
Edson

2010/3/22 Makewise - Vitor Rui Mendonça 

>  Hi folks!
>
>
>
> First time in this mailing-list, with very little experience in Drools
> (Fusion, regarding CEP).
>
> I hope that someone could help me out J
>
>
>
> I’ve being investigating about this issue and I’m not getting any answer.
>
>
>
> Here’s the problem:
>
> I’ve got a DRL file with a simple rule:
>
> *rule* “”
>
>*when*
>
>  $offline : Event( code == "101", $offlineLane : lane ) 
> *from*entry-point
> "incoming"
>
>  *not* ( $online : Event(code == "102", lane == $offlineLane,
> *this* after [0s,3m] $offline ) *from* entry-point "incoming" )
>
>*then*
>
>  // some code here
>
> *end*
>
>
>
> What I want is: when there’s an offline for more than 3 minutes **without**
> any online event (meanwhile), that execute the rule.
>
>
>
> I’ve got JUnits, with Drools configured with STREAM mode and PSEUDO clock.
>
>
>
> All is good in JUnit world except in this testcase:
>
> · Insert an offline event (workingMemoryEntryPoint.insert(
> offlineEvent );)
>
> · Clock advances 2m50s (clock.advanceTime(2,TimeUnit.*MINUTES* );
> clock.advanceTime(50, TimeUnit.*SECONDS* );)
>
> · Insert an online event (workingMemoryEntryPoint.insert(
> onlineEvent );)
>
> · Clock advances 0m15s (clock.advanceTime(15,TimeUnit.*SECONDS* );
> )
>
> · Assertion error: the rule runs when it shouldn’t (online event
> cancels offline event).
>
>
>
> I’ve got no clue about this but I have some more interesting info:
>
> · When clock advances 0m15s, there’s an NPE on a LinkedList:
> *java.lang.NullPointerException*
>
>at org.drools.util.LinkedList.remove(*LinkedList.java:113*)
>
>at org.drools.common.Scheduler$DuractionJob.execute(*
> Scheduler.java:71*)
>
>at org.drools.time.impl.PseudoClockScheduler$ScheduledJob.call(*
> PseudoClockScheduler.java:219*)
>
>at org.drools.time.impl.PseudoClockScheduler.runCallBacks(*
> PseudoClockScheduler.java:168*)
>
>at org.drools.time.impl.PseudoClockScheduler.advanceTime(*
> PseudoClockScheduler.java:130*)
>
> · I haven’t any code/rule that retracts events (I shouldn’t have
> it for this case, right?)
>
> · I’ve tried Drools 5.0.1 and 5.1.0.M1, with the same results
>
> · The issue causing NPE, I’ve found an old issue regarding Drools
> 3.0.4 and the bug was corrected in 3.0.5 (
> https://jira.jboss.org/jira/browse/JBRULES-455)
>
> · I think that someone wrote about this error (in Drools 5) but I
> don’t have the link to it.
>
>
>
> Thanks In Advance!
>
>
>
> Best regards,
>
>
>
>   Vítor Mendonça Moreira
> *Analista / Programador
> Direcção de Investigação e Desenvolvimento*
>
> Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq.
> 2500 - 206 - Caldas da Rainha
> Tel: (+351) 262 832 196
> Fax: (+351) 262 186 455
> Web: www.makewise.pt
> Uma empresa: Grupo Sousa Pedro 
>
>
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
<><>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Junit, PseudoClock and NPE

2010-03-22 Thread Makewise - Vitor Rui Mendonça
Hi folks!

 

First time in this mailing-list, with very little experience in Drools (Fusion, 
regarding CEP).

I hope that someone could help me out J

 

I've being investigating about this issue and I'm not getting any answer.

 

Here's the problem:

I've got a DRL file with a simple rule:

rule ""

   when

 $offline : Event( code == "101", $offlineLane : lane ) from 
entry-point "incoming"

 not ( $online : Event(code == "102", lane == $offlineLane, this 
after [0s,3m] $offline ) from entry-point "incoming" )

   then

 // some code here  

end

 

What I want is: when there's an offline for more than 3 minutes *without* any 
online event (meanwhile), that execute the rule.

 

I've got JUnits, with Drools configured with STREAM mode and PSEUDO clock.

 

All is good in JUnit world except in this testcase:

· Insert an offline event (workingMemoryEntryPoint.insert( offlineEvent 
);)

· Clock advances 2m50s (clock.advanceTime(2,TimeUnit.MINUTES 
);clock.advanceTime(50, TimeUnit.SECONDS );)

· Insert an online event (workingMemoryEntryPoint.insert( onlineEvent 
);)

· Clock advances 0m15s (clock.advanceTime(15,TimeUnit.SECONDS );)

· Assertion error: the rule runs when it shouldn't (online event 
cancels offline event).

 

I've got no clue about this but I have some more interesting info:

· When clock advances 0m15s, there's an NPE on a LinkedList:
java.lang.NullPointerException

   at org.drools.util.LinkedList.remove(LinkedList.java:113)

   at org.drools.common.Scheduler$DuractionJob.execute(Scheduler.java:71)

   at 
org.drools.time.impl.PseudoClockScheduler$ScheduledJob.call(PseudoClockScheduler.java:219)

   at 
org.drools.time.impl.PseudoClockScheduler.runCallBacks(PseudoClockScheduler.java:168)

   at 
org.drools.time.impl.PseudoClockScheduler.advanceTime(PseudoClockScheduler.java:130)

· I haven't any code/rule that retracts events (I shouldn't have it for 
this case, right?)

· I've tried Drools 5.0.1 and 5.1.0.M1, with the same results

· The issue causing NPE, I've found an old issue regarding Drools 3.0.4 
and the bug was corrected in 3.0.5 
(https://jira.jboss.org/jira/browse/JBRULES-455)

· I think that someone wrote about this error (in Drools 5) but I don't 
have the link to it.

 

Thanks In Advance!

 

Best regards,

 

 

Vítor Mendonça Moreira
Analista / Programador
Direcção de Investigação e Desenvolvimento

Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq.
2500 - 206 - Caldas da Rainha
Tel: (+351) 262 832 196
Fax: (+351) 262 186 455
Web: www.makewise.pt  
Uma empresa: Grupo Sousa Pedro   

 



 

 

<><>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools stateless session question

2010-03-22 Thread Wolfgang Laun
You have misunderstood the documentation. All eight items in the
enumeration you cite from are steps performed internally by the
Drools engine. The only thing you have to do is request sequential mode.

Without an idea about the rule set you are using it's difficult to
advise how to reduce memory consumption.

-W


2010/3/22 Shah, Malay :
> Hi All,
>
> We have an application that uses drools stateless session over a set of
> 35000 objects (taking about 40 MB heap) of different types. During
> profiling, I saw that for rules that perform joins between two huge object
> types data sets, lots of org.drools.reteoo.LeftTuple objects causing out of
> memory errors. We are using 5G heap, and have set property
> drools.sequential=true too. Is there any way we can decrease the memory
> usage while applying these rules? Drools documentation
> mentions  for sequential mode, we should do the following, some of them I am
> not sure how to set:
>
>
> Turn off all node memories, except the right-input Object memory.
>
> Disconnect the LeftInputAdapterNode propagation, and have the Object plus
> the Node referenced in a Command object, which is added to a list on the
> WorkingMemory for later execution.
>
> Assert all objects, when all assertions are finished and thus right-input
> node memories are populated check the Command list and execute each in turn.
>
> http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html#d0e1295
>
> Do we need to set some properties in RuleBaseConfiguration to make sure node
> memories are switched off? It would be great if we can somehow decrease the
> memory usage for stateless sessions? Has anybody come across such memory
> issues before? Correct me if I am wrong, but I think 35000 objects is not a
> lot of data for causing such issues.
>
> Thanks
> Malay
> 
>
> NOTICE: If received in error, please destroy, and notify sender. Sender does
> not intend to waive confidentiality or privilege. Use of this email is
> prohibited when received in error. We may monitor and store emails to the
> extent permitted by applicable law.
>
> 
>
> NOTICE: If received in error, please destroy, and notify sender. Sender does
> not intend to waive confidentiality or privilege. Use of this email is
> prohibited when received in error. We may monitor and store emails to the
> extent permitted by applicable law.
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Guvnor users and case sensitivity

2010-03-22 Thread Régis Ramillien
Hello all,

I wonder if I can easily disable the case sensitivity for the user login in
guvnor.

My users credentials are stored in an LDAP and the server does not ask for
case sensitivity.
Therefore, for each application, if a user is named "fr001", he can also log
as "FR001".

But in guvnor, if the administrator create the user "fr001", then, this user
will not be able to log as "FR001" even if he is successfully authenticated.
Guvnor returns the error "This user has no permissions setup.".

Can we easily disble this, please ?

Regards,

Régis Ramillien
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools stateless session question

2010-03-22 Thread Shah, Malay
Hi All,

We have an application that uses drools stateless session over a set of 35000 
objects (taking about 40 MB heap) of different types. During profiling, I saw 
that for rules that perform joins between two huge object types data sets, lots 
of org.drools.reteoo.LeftTuple objects causing out of memory errors. We are 
using 5G heap, and have set property drools.sequential=true too. Is there any 
way we can decrease the memory usage while applying these rules? Drools 
documentation mentions  for sequential mode, we should do the following, some 
of them I am not sure how to set:

 *   Turn off all node memories, except the right-input Object memory.

 *   Disconnect the LeftInputAdapterNode propagation, and have the Object plus 
the Node referenced in a Command object, which is added to a list on the 
WorkingMemory for later execution.

 *   Assert all objects, when all assertions are finished and thus right-input 
node memories are populated check the Command list and execute each in turn.

http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html#d0e1295

Do we need to set some properties in RuleBaseConfiguration to make sure node 
memories are switched off? It would be great if we can somehow decrease the 
memory usage for stateless sessions? Has anybody come across such memory issues 
before? Correct me if I am wrong, but I think 35000 objects is not a lot of 
data for causing such issues.

Thanks
Malay

--
NOTICE: If received in error, please destroy, and notify sender. Sender does 
not intend to waive confidentiality or privilege. Use of this email is 
prohibited when received in error. We may monitor and store emails to the 
extent permitted by applicable law.

--
NOTICE: If received in error, please destroy, and notify sender. Sender does 
not intend to waive confidentiality or privilege. Use of this email is 
prohibited when received in error. We may monitor and store emails to the 
extent permitted by applicable law.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Language and Engine Enhancement Ideas and Request for Help

2010-03-22 Thread Mark Proctor
We really need people's help on developing the expert language and 
engine, and there are still some seriously cool ideas to be done. I've 
started to put some wiki pages together that collates all our ideas.

So take a look, see what interests you, or come and chat with us for 
help on a direction. Then beg and scream to your managers for 6 months 
to work on these ideas :) Tell them it's their civic duty to support the 
open source project that has saved them so much time and money, and that 
it'll make them and you more appealing to the opposite sex too - 
guaranteed, just ask Edson and Kris ;)

http://blog.athico.com/2010/03/drools-language-and-engine-enhancement.html

Mark
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Oryx exported BPMN not properly opened in Eclipse Drools.

2010-03-22 Thread Robert
Hi Mauricio,

that would be great.

Here is the definition (only a small test definition), exported using  
"Download BPMN 2.0 DI XML" :



http://www.w3.org/2001/XMLSchema";  
expressionLanguage="http://www.w3.org/1999/XPath";  
targetNamespace="http://www.omg.org/bpmn20";  
xmlns="http://schema.omg.org/spec/BPMN/2.0";  
xmlns:bpmndi="http://bpmndi.org";>
 
 
 
 
oryx_3F4C72AA-F186-4555-999A-C9AC6955BB1D
 
oryx_F17912E1-B44A-481C-83AB-79B3419DF496
 
oryx_76708B75-B83A-40F4-95E1-82BA9D40A895
 
oryx_F8929AA3-E575-45B6-9949-2BA1A06C6229
 
oryx_F96C89FB-AB28-4A39-89EE-82A426815CA3
 
oryx_C10F8B29-3C8D-404D-A066-5E5C923A003B
 
oryx_6836E914-0EC4-4A5C-B149-02153F9F58B6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 



Thanks, cheers, Rob.


Am 22.03.2010, 14:34 Uhr, schrieb Mauricio Salatino :

> I can review your problem, can you share your process definition?
>
> On Mon, Mar 22, 2010 at 8:57 AM, Mark Proctor   
> wrote:
>
>> kris is at eclipsecon at the moment, it might take a while for him to
>> catch up with the mailing list.
>>
>> Mark
>> 78On 22/03/2010 08:36, Robert wrote:
>> > Hi,
>> >
>> > my exported BPMN-File from the Oryx-Editor does not open properly in  
>> the
>> > Eclipse-Drools IDE.
>> >
>> > I set the BPMN-Skin and the Editor is actually open up, but the only
>> > symbol displayed is the start-node (but there are  actually many more)
>> >
>> > What did I do ?
>> >
>> > I followed the demo at
>> >
>> > http://people.redhat.com/kverlaen/BPMN2-OryxEditor.swf
>> >
>> > for creating a BPMN 2.0 model.
>> >
>> > But somehow the recent version of Oryx seems different.
>> >
>> > First there are some more options of creating a new modell:
>> >
>> > - BPMN 2.0 Process
>> > - BPMN 2.0 Conversations
>> > - BPMN 2.0 Choreographies
>> > - ...
>> >
>> > I choose the first (BPMN 2.0 Process).
>> >
>> > At exporting it, it looks also somehow different:
>> >
>> > - ...
>> > - Show BPMN 2.0 DI XML
>> > - Download BPMN 2.0 DI XML
>> > - ...
>> >
>> > There are others, but nothing looking close to the one used in the  
>> demo
>> > (there you used "Show BPMN 2.0 XML", so the "DI" is different).
>> >
>> > I guees the format changed somehow.
>> >
>> > Can you give me some feedback on this, if you also encountered  
>> problems
>> or
>> > give me a hint what I did wrong ?
>> >
>> > Thanks.
>> >
>> > Cheers, Rob.
>> >
>> >
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
>


-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Oryx exported BPMN not properly opened in Eclipse Drools.

2010-03-22 Thread Mauricio Salatino
I can review your problem, can you share your process definition?

On Mon, Mar 22, 2010 at 8:57 AM, Mark Proctor  wrote:

> kris is at eclipsecon at the moment, it might take a while for him to
> catch up with the mailing list.
>
> Mark
> 78On 22/03/2010 08:36, Robert wrote:
> > Hi,
> >
> > my exported BPMN-File from the Oryx-Editor does not open properly in the
> > Eclipse-Drools IDE.
> >
> > I set the BPMN-Skin and the Editor is actually open up, but the only
> > symbol displayed is the start-node (but there are  actually many more)
> >
> > What did I do ?
> >
> > I followed the demo at
> >
> > http://people.redhat.com/kverlaen/BPMN2-OryxEditor.swf
> >
> > for creating a BPMN 2.0 model.
> >
> > But somehow the recent version of Oryx seems different.
> >
> > First there are some more options of creating a new modell:
> >
> > - BPMN 2.0 Process
> > - BPMN 2.0 Conversations
> > - BPMN 2.0 Choreographies
> > - ...
> >
> > I choose the first (BPMN 2.0 Process).
> >
> > At exporting it, it looks also somehow different:
> >
> > - ...
> > - Show BPMN 2.0 DI XML
> > - Download BPMN 2.0 DI XML
> > - ...
> >
> > There are others, but nothing looking close to the one used in the demo
> > (there you used "Show BPMN 2.0 XML", so the "DI" is different).
> >
> > I guees the format changed somehow.
> >
> > Can you give me some feedback on this, if you also encountered problems
> or
> > give me a hint what I did wrong ?
> >
> > Thanks.
> >
> > Cheers, Rob.
> >
> >
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Oryx exported BPMN not properly opened in Eclipse Drools.

2010-03-22 Thread Mark Proctor
kris is at eclipsecon at the moment, it might take a while for him to 
catch up with the mailing list.

Mark
78On 22/03/2010 08:36, Robert wrote:
> Hi,
>
> my exported BPMN-File from the Oryx-Editor does not open properly in the
> Eclipse-Drools IDE.
>
> I set the BPMN-Skin and the Editor is actually open up, but the only
> symbol displayed is the start-node (but there are  actually many more)
>
> What did I do ?
>
> I followed the demo at
>
> http://people.redhat.com/kverlaen/BPMN2-OryxEditor.swf
>
> for creating a BPMN 2.0 model.
>
> But somehow the recent version of Oryx seems different.
>
> First there are some more options of creating a new modell:
>
> - BPMN 2.0 Process
> - BPMN 2.0 Conversations
> - BPMN 2.0 Choreographies
> - ...
>
> I choose the first (BPMN 2.0 Process).
>
> At exporting it, it looks also somehow different:
>
> - ...
> - Show BPMN 2.0 DI XML
> - Download BPMN 2.0 DI XML
> - ...
>
> There are others, but nothing looking close to the one used in the demo
> (there you used "Show BPMN 2.0 XML", so the "DI" is different).
>
> I guees the format changed somehow.
>
> Can you give me some feedback on this, if you also encountered problems or
> give me a hint what I did wrong ?
>
> Thanks.
>
> Cheers, Rob.
>
>

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Eclipse + drools = The Eclipse JDT Core jar is not in the classpath ??

2010-03-22 Thread Dale Wyttenbach
These are the dependencies I added to my pom for jdt.  It's been a while,
but I'm pretty sure the antlr and mvel dependencies were required once I
added eclipse jdt.


org.eclipse.jdt
core
3.4.2.v_883_R34x
test


org.antlr
antlr-runtime
3.1.3
test


org.mvel
mvel2
2.0.16
test



On Sat, Mar 20, 2010 at 8:26 AM, Patrick Sannes  wrote:

> Hi Lucas,
>
> When I add the org.eclipse.jdt.core_version as external reference to the
> project it works. Thanks for helping me out. Now off to the manual ;)
>
> Regards,
> Patrick
>
> > -Original Message-
> > From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
> > boun...@lists.jboss.org] On Behalf Of Lucas Amador
> > Sent: Saturday, March 20, 2010 1:17 PM
> > To: Rules Users List
> > Subject: Re: [rules-users] Eclipse + drools = The Eclipse JDT Core jar is
> not in
> > the classpath ??
> >
> > Patrick,
> > you need to add the lib org.eclipse.core.jdt-version that is on your
> eclipse
> > plugins folder to your drools runtime or classpath
> >
> > Or you can use Janino, as salaboy said
> >
> > Sent from my phone
> >
> > On 20/03/2010, at 10:44, "Patrick Sannes"  wrote:
> >
> > > Im a real beginner with Drools, can you point me out to a document
> > > that tells me how to do that?
> > >
> > >> -Original Message-
> > >> From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
> > >> boun...@lists.jboss.org] On Behalf Of Salaboy
> > >> Sent: Saturday, March 20, 2010 1:22 PM
> > >> To: Rules Users List
> > >> Subject: Re: [rules-users] Eclipse + drools = The Eclipse JDT Core
> > >> jar is
> > > not in
> > >> the classpath ??
> > >>
> > >> That's a common eclipse error, if you cannot fix it you can always
> > >> include
> > > the
> > >> janino dependency.
> > >>
> > >> - Ing. Mauricio Salatino -
> > >>
> > >> On Mar 20, 2010, at 6:12, "Patrick Sannes"  wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> I tried to search a lot, but couldn't find a real solution to my
> > >>> problem. I have the latest version of Eclipse installed and
> > >>> installed the drools plugin
> > >>> 5.0.1 . I configured runtime (dropped it in c:\Users\Patrick
> > >>> \Droolsruntime\)
> > >>> After starting a new drools project It created a Hello World example
> > >>> (im new, so a nice start ;)) When I tried to run the DroolsTest.Java
> > >>> I get the error at the end of the email.
> > >>> Hope someone can help me out.
> > >>>
> > >>> Regards
> > >>> Patrick
> > >>>
> > >>> org.drools.RuntimeDroolsException: Unable to load dialect
> > >>> 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:
> > >>> or
> >
> >
> >
> > >>> g.droo
> > >>
> > >>
> > >>> ls.rule.builder.dialect.java.JavaDialectConfiguration'
> > >>>  at
> > >>> org.drools.compiler.PackageBuilderConfiguration.addDialect
> > >>> (PackageBuilderCon
> > >>> figuration.java:274)
> > >>>  at
> > >>> org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigur
> > >>> at
> >
> >
> >
> > >>> ionMap
> > >>
> > >>
> > >>> (PackageBuilderConfiguration.java:259)
> > >>>  at
> > >>> org.drools.compiler.PackageBuilderConfiguration.init
> > >>> (PackageBuilderConfigura
> > >>> tion.java:176)
> > >>>  at
> > >>> org.drools.compiler.PackageBuilderConfiguration.
> > >>> (PackageBuilderConfigu
> > >>> ration.java:153)
> > >>>  at
> > >>> org.drools.compiler.PackageBuilder.(PackageBuilder.java:242)
> > >>>  at
> > >>> org.drools.compiler.PackageBuilder.(PackageBuilder.java:142)
> > >>>  at
> > >>>
> > >>
> > org.drools.builder.impl.KnowledgeBuilderProviderImpl.newKnowledgeBuil
> > >> d
> >
> >
> >
> > >>> er(
> > >>> Kno
> > >>> wledgeBuilderProviderImpl.java:29)
> > >>>  at
> > >>> org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder
> > >>> (KnowledgeBuil
> > >>> derFactory.java:29)
> > >>>  at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:39)
> > >>>  at com.sample.DroolsTest.main(DroolsTest.java:23)
> > >>> Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is
> > >>> not in the classpath  at
> > >>> org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCom
> > >>> pi
> >
> >
> >
> > >>> ler(
> > >>> Ja
> > >>> vaDialectConfiguration.java:94)
> > >>>  at
> > >>> org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init
> > >>> (JavaDiale
> > >>> ctConfiguration.java:55)
> > >>>  at
> > >>> org.drools.compiler.PackageBuilderConfiguration.addDialect
> > >>> (PackageBuilderCon
> > >>> figuration.java:270)
> > >>>  ... 9 more
> > >>>
> > >>> ___
> > >>> rules-users mailing list
> > >>> rules-users@lists.jboss.org
> > >>> https://lists.jboss.org/mailman/listinfo/rules-users
> > >> ___
> > >> rules-users mailing list
> > >> rules-users@lists.jboss.org
> > >> https://lists.jboss.org/mail

Re: [rules-users] Regarding changing the existing rules

2010-03-22 Thread Mauricio Salatino
Sorry, I don't understand the problem, you should just change the rules
definition. Or you have runtime restrictions for that?

2010/3/22 Deepak Jambhekar 

> Hi All,
>
> I am having a situation where in my existing rule needs to be modified.
>
> at present i have rule defined for the a table XYZ. This rule check for the
> 5 columns of the table XYZ.
> Now I want to add one more column to the table XYZ and one more condition
> in the rule.
>
> How can I do this?
> Please help...
> Thank you.
>
>
>
>
>
> Deepak Prabhakar Jambhekar
>
> 
> Experience certainty. IT Services
> Business Solutions
> Outsourcing
> 
>
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Configuring Persistance

2010-03-22 Thread Michal Bali
one option is to use Bitronix transaction manager:
http://docs.codehaus.org/display/BTM/Tomcat13

On Mon, Mar 22, 2010 at 9:47 AM, ramram  wrote:

>
> Hi All,
>
>   Please can anyone help in the configuration of
> "java:comp/UserTransaction" on the Tomcat server.
>
> Regards,
> Ram
> --
> View this message in context:
> http://n3.nabble.com/Configuring-Persistance-tp466475p466475.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Configuring Persistance

2010-03-22 Thread KiranP

use this link :
http://docs.codehaus.org/display/BTM/Tomcat13
if u r using BitronixtransactionManager

else let me know what u r using

if problems occur use the following post
this r problems i faced and the results i got

http://old.nabble.com/Data-Source-is-not-found-in-web-project-while-using-spring-ts27653447.html#a27653447



-
Keep Working >>:working:
KiranP
-- 
View this message in context: 
http://n3.nabble.com/Configuring-Persistance-tp466475p466506.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Configuring Persistance

2010-03-22 Thread ramram

Hi All,

   Please can anyone help in the configuration of
"java:comp/UserTransaction" on the Tomcat server.

Regards,
Ram
-- 
View this message in context: 
http://n3.nabble.com/Configuring-Persistance-tp466475p466475.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Mechanism to prevent redundant inferences

2010-03-22 Thread Swindells, Thomas
Presumably all your RHS do is insert your Proven objects.  If this is the case 
then my first question is do you actually need to put in an optimisation here?  
How much is the work of evaluating a few extra rule nodes compared to the work 
and memory that will be required to evaluate the shadow facts and prevent the 
rules from firing.

If you do want to try suppress rules firing couldn't you have the following LHS?
Piton(predicate == $sentence, rule="uniquerulename") or not Proven(predicate == 
$sentence)

What I would recommend is lots of reading up about performance, testing, trying 
different combinations and generating the rete graph that drools produces to 
see whether you have added more or less complexity to the graph.  Also make 
sure you order your conditions so that the ones which are most likely to stop 
processing are placed first.

Thomas


From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Tracey Lall
Sent: 20 March 2010 20:55
To: rules-users@lists.jboss.org
Subject: [rules-users] Mechanism to prevent redundant inferences


Hi folks

  I am writing a logical inference engine in drools. Logical sentences (class 
Sentence) which are proven are indicated by the fact Proven( sentence = 
$sentence )

All Proven(sentence) facts are asserted using the drools logical mechanism 
(since logical backtracking is required).

For efficiency purposes I want to be able to suppress firing any rules which 
assert proof of a logical sentence which has already been proven (there may be 
multiple inferences which prove the same sentence).

If the non existence of a proof of a sentence (not exists 
Proven(sentence=$sentence) is included in the lhs conditions then that causes 
problems when the rule logically asserts Proven(sentence) since the insertion 
invalidates the lhs conditions and hence the rule causes its own retraction 
(the inserted fact handle return is null).

As a way around this I created a class Piton() to record whether a particular 
rule has fired. The lhs conditions then become:

(Proven( predicate == $sentence ) or Piton( fireName == $descriptor ) )
And then in the body of the rule the first thing it asserts is the fact:

Piton( fireName == $descriptor )

Where $descriptor is a string built from the rulename  + the set of facts which 
matched the lhs (ie a descriptor which is unique to the rule fire)

With this approach when a rule asserts Proven(sentence) because it has also 
asserted  Piton( fireName == descriptor ) ) the lhs of the rule still matches 
the the rule fire is not retracted.

This approach works, but it is rather tedious to implement since the descriptor 
must be defined in such as way to make it unique (or as far as possible unique) 
to the particular rule activation. Since the drools variable is not accessible 
in the lhs of a rule (and hence the activation details are not accessible in 
the lhs), this means that the descriptor must be handcoded to consist of all 
matching facts for that lhs.

Is this approach the only way to prevent multiple rule firings for the same 
proof, or is there a simpler way to achieve this?

Any advice greatly appreciated!

thanks

Tracey






**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**


This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.

An NDS Group Limited company. www.nds.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Oryx exported BPMN not properly opened in Eclipse Drools.

2010-03-22 Thread Robert
Hi,

my exported BPMN-File from the Oryx-Editor does not open properly in the  
Eclipse-Drools IDE.

I set the BPMN-Skin and the Editor is actually open up, but the only  
symbol displayed is the start-node (but there are  actually many more)

What did I do ?

I followed the demo at

http://people.redhat.com/kverlaen/BPMN2-OryxEditor.swf

for creating a BPMN 2.0 model.

But somehow the recent version of Oryx seems different.

First there are some more options of creating a new modell:

- BPMN 2.0 Process
- BPMN 2.0 Conversations
- BPMN 2.0 Choreographies
- ...

I choose the first (BPMN 2.0 Process).

At exporting it, it looks also somehow different:

- ...
- Show BPMN 2.0 DI XML
- Download BPMN 2.0 DI XML
- ...

There are others, but nothing looking close to the one used in the demo  
(there you used "Show BPMN 2.0 XML", so the "DI" is different).

I guees the format changed somehow.

Can you give me some feedback on this, if you also encountered problems or  
give me a hint what I did wrong ?

Thanks.

Cheers, Rob.

-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Regarding changing the existing rules

2010-03-22 Thread Deepak Jambhekar
Hi All,I am having a situation where in my existing rule needs to be modified.at present i have rule defined for the a table XYZ. This rule check for the 5 columns of the table XYZ.Now I want to add one more column to the table XYZ and one more condition in the rule.How can I do this?Please help...Thank you.Deepak Prabhakar JambhekarExperience certainty.	IT Services			Business Solutions			Outsourcing=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users