Re: [rules-users] Drools and JBoss 6.0 Support

2010-10-07 Thread Jervis Liu
There is still problem running Guvnor 5.1(not 5.0.x. Some improvements 
have been made in Guvnor 5.1 to make it working with AS 5.x) on JBOSS AS 
6. The main blocker is running Seam 2.1 with JBOSS AS 6, you may search 
in Seam forum for possible workaround. To be honest, I would suggest you 
using JBOSS AS 5.X instead. Running Guvnor with As 6 is not on a 
priority list.

Cheers,
Jervis

On 2010/10/7 8:50, Robert Morse wrote:
> Hello,
> Is there any update to this?   I'm trying to get Drools-Guvnor 5.0.1 to run 
> under JBoss AS 6.   In addition to removing the jars mentioned for an AS 5 
> installation, I also needed to remove the jta jar.
> The deployment fails with the following under the M5 version of AS 6.   Any 
> suggestions would be greatly appreciated.   I tried replacing the 2.1 Seam 
> jars with the 2.2.1.CR2 versions, but that didn't help.
>
> 18:32:59,024 ERROR [StandardContext] Context [/drools-guvnor] startup failed 
> due to previous errors: java.lang.RuntimeException: mapped-name is required 
> for org.jboss.seam.async.TimerServiceDispatcher/timerService of deployment 
> drools-guvnor.war
>   at 
> org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHandler.java:288)
>  [:6.0.0.20100911-M5]
>   at 
> org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:326)
>  [:6.0.0.20100911-M5]
>   at 
> org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:599)
>  [:6.0.0.20100911-M5]
>   at 
> org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:157) 
> [:6.0.0.20100911-M5]
>   at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3737) 
> [:6.0.0.20100911-M5]
>
>
>
>
> On May 17, 2010, at 1:19 AM, Jervisliu wrote:
>
>> ramram wrote:
>>> Hi All,
>>>
>>>   I have a question about the Drools support for the JBOSS 6.0 because I
>>> have problems deploying the Guvnor on the JBOSS 6.0 where it was functioning
>>> perfectly under JBOSS 4.2.3. Any suggestions or documents that I can refer
>>> to.
>>>
>>>
>>> Regards,
>>> Ram
>>>
>> Hi Ram, what problems did you see on JBOSS AS 6.0? I tried JBOSS AS 6.0
>> recently with Guvnor 5.1, looks like this is a SEAM problem. Seam 2.1
>> may not work with JBOSS AS 6. I need a further look into this.
>>
>> Exception received:
>>
>> 15:07:55,305 ERROR [StandardContext] Context [/jboss-brms] startup
>> failed due to
>> previous errors: java.lang.RuntimeException: mapped-name is required
>> for org.jb
>> oss.seam.async.TimerServiceDispatcher/timerService of deployment
>> jboss-brms.war
>> at
>> org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlReso
>> urceEnvRefs(WebResourceHandler.java:287)
>> at
>> org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(Web
>> ResourceHandler.java:325)
>> at
>> org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata
>> (TomcatInjectionContainer.java:574)
>> at
>> org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158
>> )
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4
>> 342)
>> at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy
>> Internal(TomcatDeployment.java:315)
>>
>> At the same time, you can try JBOASS AS 5.0. Here is the instruction on
>> how to deploy Guvnor in JBOSS 5.0:
>>
>> http://community.jboss.org/docs/DOC-14395?uniqueTitle=false
>>
>> Cheers,
>> Jervis
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>
> The human mind is an iterative processor, it never does anything right the 
> first time.  What it does well is to make improvements on every iteration 
> (deMarco)
>
>
>
>
> ___
> 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 LHS and RHS questions

2010-10-07 Thread Dean Whisnant
Hello,

I've only been working with Drools for a little over a month or so now and I've 
begun integrating it into my application via Eclipse and creating DRL files.  
The nature of this application is to take a data record from one file and 
create a new data record in another file.  This is done in a batch of any 
number of records, depending on the number of records sent to us in the first 
file. To accomplish this I have two classes, one representing each file, and I 
create and object for each of them, inserting them into the knowledge session 
and then fire the rule.

ksession.insert(myObjectIn);
ksession.insert(myObjectOut);
ksession.fireAllRules();

The first object has around 1,000 fields and the second has 250, so my class 
structure is quite broad.

In a DRL file I have created the following rule:

rule "Primary Diagnosis Code"
 when
   $ccl : anObjectIn(IncomingDiag1 != null)
   $cdl  : anObjectOut()
 then
   $cdl.PrimaryDiag = $ccl.IncomingDiag1;
end

This rule fires great and the PrimaryDiag field in myObjectOut is updated with 
what iss in myObjectIn.IncomingDiag.  I can then write the object back out the 
the database fine.

A requirement of my project is that I allow users (analysts) to create their 
own rules that are above and beyond those I might create in a .drl file. To do 
so we are looking to deploy Guvnor and let them use the Guided editor to create 
rules.  I've already loaded my fact models into Guvnor and have them available 
in the drop down conditions.

The questions that are hitting me now are:


1)  On the LHS when I've chosen the fiels IncomingDiag the only options I 
have for conditions are "equal to", "not equal to", "matches", and "sounds 
like". I don't see an option for null or notnull. If I were to choose "not 
equal to" I then have the options for Literal Values, New Formulas, or 
Expression Editor (which has none by default).  I haven't seen any examples 
where someone is evaluating a field in Guvnor for being either "" or null.  How 
would one accomplish this?  The literal value does not allow you to leave it 
blank as in "" and if you type "" in it, the source shows .

2)  On the LHS, if I were to want to evaluate IncomingDiag1 == 
IncomingDiag2 I don't see a method except if I were to choose New Formula and 
type in the field name Incoming Diag2.  Is there another way that they could be 
prompted for the field choises again?

3)  On the RHS, when I go to add a new then, I'm prompted to choose only to 
either "insert fact anObjectIn" or to "logically insert fact anObjectIn" or to 
manually enter DRL logic.  Both of the inserts appear to create logic that 
would create a new object with the data in it:

anObjectIn fact0 = new anObjectIn ();
fact0. IncomingDiag1 ( 11 );
insertLogical(fact0 );

But what I really want is something similar to my DRL from above.  Am I 
missing something?  Or would this have to be a case where they would manually 
enter the DRL statement?

Thank you!

Dean Whisnant
Senior Software Developer
basys, inc.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule id / Rule name

2010-10-07 Thread Michael Anstis
If you really need the rule name in the consequence you can also access the
implicit KnowledgeHelper instance "drools":-

rule "test"
when
eval(true)
then
System.out.println("Rule name = " + drools.getRule().getName());
end

2010/10/7 esteban.alive...@gmail.com 

> That's right Leandro, using an AgendaEventListener is much more elegant!
>
> Best Regards,
>
> 
>
> Esteban Aliverti
> - Developer @ http://www.plugtree.com
> - Blog @ http://ilesteban.wordpress.com
>
>
> 2010/10/7 Leandro Romero 
>
>> I am not 100% sure, but in my opinion an elegant way to do it would be to
>> create a class that extends from DefaultAgendaEventListener and then
>> override the "afterActivationFired" method.
>>
>> If you are using that fact in another rule and you want it to be updated,
>> you have to call "update($d)" or you can modify $d inside a modify block.
>>
>>
>>
>> ___
>> 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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule id / Rule name

2010-10-07 Thread esteban.alive...@gmail.com
That's right Leandro, using an AgendaEventListener is much more elegant!

Best Regards,



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2010/10/7 Leandro Romero 

> I am not 100% sure, but in my opinion an elegant way to do it would be to
> create a class that extends from DefaultAgendaEventListener and then
> override the "afterActivationFired" method.
>
> If you are using that fact in another rule and you want it to be updated,
> you have to call "update($d)" or you can modify $d inside a modify block.
>
>
>
> ___
> 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] Loading packages from KnowledgeAgent and Guvnor 5.1

2010-10-07 Thread esteban.alive...@gmail.com
Make sure that the drools' version you are using matches with Guvnor's
version.



Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2010/10/7 Pierre de Leusse 

>   Hello everyone,
>
>
>
> I’ve deployed Guvnor as a war in Tomcat and I’m trying to load a drools
> example
> (drools-5.1.1-src/drools-examples/drools-examples-brms/mortgage-example/mortgage-sample-repository.xml)
> as a package into a KnowledgeAgent using the code shown there (
> http://pastebin.com/TvJn9PeQ).
>
>
>
> I get a few exceptions including: java.io.InvalidClassException: org.
> drools.rule.Package; local class incompatible: stream classdesc
> serialVersionUID = 400, local class serialVersionUID = 510 (full trace
> available at http://pastebin.com/fRvRMtfR).
>
>
>
> I’ve tried several things, including checking the serialVersionUID of
> org.drools.rule.DialectRuntimeRegistry and org.drools.rule.Package as the
> jiira (
> https://jira.jboss.org/browse/BRMS-320?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs)
> suggests, but no luck.
>
>
>
> My code may be buggy and I would welcome corrections/suggestions.
>
>
>
> All the best,
>
> Pierre
>
> ___
> 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] Memory usage tied to rule report?

2010-10-07 Thread Edson Tirelli
   Hi Jared,

   This was really a first attempt at getting something useful to look
inside the chest of a session and extract useful info. Feel free to
look at the classes and propose changes/provide patches. Once it
reaches a state we consider good enough, we can publish it in Drools
API.

   Regarding use of "instanceof", I always prefer to use polymorphism
instead. So, define a method to do what you need in a super
class/interface and we implement it in all subclasses. Besides making
the code cleaner, this also makes sure that new nodes/classes created
in the future will not break or be absent in the report.

   Edson

2010/10/7 Jared Davis :
>
> Edson,
>
> I'm using yEd for the graph viewer and tgf as the format for the graph. Here
> is the mvel template to produce the tgf file. I left the topten name the
> same for now. Did I miss any nodes or edges?
>
> @declare{"topten"}
> @code{
>  buffer = new StringBuilder();
>  for (ni : session.nodeInfos) {
>    buffer.append( ni.id);
>    buffer.append( " ");
>    buffer.append( ni.node);
>    buffer.append( "\r\n");
>  }
>  buffer.append( "#\r\n");
>  for (node : session.nodeInfos) {
>    for (child : node.sinkList) {
>     buffer.append( node.id);
>     buffer.append( " ");
>     buffer.append( child.id);
>     buffer.append( "\r\n");
>    }
>  }
> }
> @{buffer.toString()}
> @end{}
>
>
> I would like to change the toString representations for all of the classes
> used in the graph.
>
> I there a better structure than a bunch of instanceof tests? (Would they
> even work?)
>
> if (ni.node instanceof AlphaNode) {
>  buffer.append("A: ");
>  if (ni.node.constraint instanceof  ...) {
>
> Thanks again for your help.
>
>
> --
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Memory-usage-tied-to-rule-report-tp1434387p1649379.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
>



-- 
  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] Memory usage tied to rule report?

2010-10-07 Thread Jared Davis

Edson,

I'm using yEd for the graph viewer and tgf as the format for the graph. Here
is the mvel template to produce the tgf file. I left the topten name the
same for now. Did I miss any nodes or edges?

@declare{"topten"}
@code{
  buffer = new StringBuilder();
  for (ni : session.nodeInfos) {
buffer.append( ni.id);
buffer.append( " ");
buffer.append( ni.node);
buffer.append( "\r\n");
  }
  buffer.append( "#\r\n");
  for (node : session.nodeInfos) {
for (child : node.sinkList) {
 buffer.append( node.id);
 buffer.append( " ");
 buffer.append( child.id);
 buffer.append( "\r\n");
}
  }
}
@{buffer.toString()}
@end{} 


I would like to change the toString representations for all of the classes
used in the graph.

I there a better structure than a bunch of instanceof tests? (Would they
even work?)

if (ni.node instanceof AlphaNode) {
  buffer.append("A: ");
  if (ni.node.constraint instanceof  ...) {

Thanks again for your help.


-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Memory-usage-tied-to-rule-report-tp1434387p1649379.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] Rule id / Rule name

2010-10-07 Thread Leandro Romero
I am not 100% sure, but in my opinion an elegant way to do it would be to
create a class that extends from DefaultAgendaEventListener and then
override the "afterActivationFired" method.

If you are using that fact in another rule and you want it to be updated,
you have to call "update($d)" or you can modify $d inside a modify block.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Could not initialize class org.drools.rule.builder.dialect.java.JavaDialect

2010-10-07 Thread Donald Leuschner
Ok, I have been struggling with this error for days now.  I am getting a
NoClassDefFoundError: Could not initialize class
org.drools.rule.builder.dialect.java.JavaDialect error.

I understand that this is most likely a classpath problem but have done
almost everything to try and resolve it.  I have the
drools-compiler-5.1.0.jar  in my lib folder where all my other jars are
(which successfully work btw) and adding this jar there resolves a
packagebuilder error also.

Does anyone have any idea?  The JavaDialect.class files are in the jar if I
open it with 7zip...so it's not like they are not there.  I'm really at a
loss with this one now.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule id / Rule name

2010-10-07 Thread Nadav Hashimshony
Btw, is there a more elegant way to get from Drools the rule he caught?
my way foeces the user to set the ruleId for each rule he writes.

Nadav.

On Thu, Oct 7, 2010 at 4:14 PM, Nadav Hashimshony  wrote:

> Hi,
>
> I would like to return to the Fact object the rule id that was caught
>
> my facts class has a memeber
>
> String caughtRule;
>
> and set and get
>
> setCaughtRuleId (String s) { caughtRule= s;}
> String getCaughtRuleId () {return caughtRule;}
>
>
> my rule looks like:
>
> rule "01"
> salience 100
> activation-group "mygrp"
> no-loop true
> when
> d : CFactClass(   someMember matches "some-string");
>
> then
> System.out.println("01 caught");
> d.setCaughtRuleId("01");
> d.setCaught();
> end
>
>
> when the rule is fired i see the the setCaught() worked (its a boolean
> variable) but the setCaughtRuleId methids return empty string...
>
> any ides?
>
> Thanks
> Nadav,.
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Rule id / Rule name

2010-10-07 Thread Nadav Hashimshony
Hi,

I would like to return to the Fact object the rule id that was caught

my facts class has a memeber

String caughtRule;

and set and get

setCaughtRuleId (String s) { caughtRule= s;}
String getCaughtRuleId () {return caughtRule;}


my rule looks like:

rule "01"
salience 100
activation-group "mygrp"
no-loop true
when
d : CFactClass(   someMember matches "some-string");

then
System.out.println("01 caught");
d.setCaughtRuleId("01");
d.setCaught();
end


when the rule is fired i see the the setCaught() worked (its a boolean
variable) but the setCaughtRuleId methids return empty string...

any ides?

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


Re: [rules-users] OOME on JPA persistence of stateful session

2010-10-07 Thread dan.danciu

As promised the Jira issue:  https://jira.jboss.org/browse/JBRULES-2724
https://jira.jboss.org/browse/JBRULES-2724 

Have fun!
Dan


-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/OOME-on-JPA-persistence-of-stateful-session-tp1647064p1648202.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] Matching strings in two arrays

2010-10-07 Thread Wolfgang Laun
You cannot construct a Collection "on the fly" - neither in Java, nor in DRL.
-W


On 7 October 2010 14:55, kpandey  wrote:
>
>
> Wolfgang Laun-2 wrote:
>>
>> You could define a new operator (similar to "contains" or "memberOf") that
>> tests whether a field - a set of values - is a subset of a another set of
>> values.
>>
>> See my home page for a full recipe:  http://members.inode.at/w.laun/
>>
>> The code given there is for both sides being java.util.Collection.
>> Handling
>> of
>> arrays could be added. But you should also consider providing the sets for
>> the rules as static auxiliary facts.
>>
>> -W
>>
> Thanks for the sample code. I also explored other operators in the jboss
> code base and now have a fairly good understanding of it.
>
> In my use case I have a fixed set of values in the right side of of the
> operator. Only the left side changes as input fact --
>
> when
>   MyContext(inputSetOfStings subsetOf  ("StringVal1", "StringVal2",
> "StringVal3", "StringVal4"))
>
>
> How do I construct this rhs of the operator such that it is taken as a
> collection when the rule is compiled?
>
> Thanks
> Kumar
> --
> View this message in context: 
> http://drools-java-rules-engine.46999.n3.nabble.com/Matching-strings-in-two-arrays-tp1602511p1648169.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] Matching strings in two arrays

2010-10-07 Thread kpandey


Wolfgang Laun-2 wrote:
> 
> You could define a new operator (similar to "contains" or "memberOf") that
> tests whether a field - a set of values - is a subset of a another set of
> values.
> 
> See my home page for a full recipe:  http://members.inode.at/w.laun/
> 
> The code given there is for both sides being java.util.Collection.
> Handling
> of
> arrays could be added. But you should also consider providing the sets for
> the rules as static auxiliary facts.
> 
> -W
> 
Thanks for the sample code. I also explored other operators in the jboss
code base and now have a fairly good understanding of it.

In my use case I have a fixed set of values in the right side of of the
operator. Only the left side changes as input fact --

when
   MyContext(inputSetOfStings subsetOf  ("StringVal1", "StringVal2",
"StringVal3", "StringVal4"))


How do I construct this rhs of the operator such that it is taken as a
collection when the rule is compiled?

Thanks
Kumar
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Matching-strings-in-two-arrays-tp1602511p1648169.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] Connect to Guvnor from other machines.

2010-10-07 Thread Nadav Hashimshony
Thanks!

2010/10/7 Nicolas Héron 

> Hello,
> if you are using jboss, by default the server listens to localhost.
> if your ip adress is "10.2.162.60"
> in the jboss directory
> bin/run.sh -b 10.2.162.60
> Regards
> Nicolas Héron
>
>
> 2010/10/7 Nadav Hashimshony 
>
>> Hi
>>
>> i have drools guvnor installed on my machine, i can access it with
>> localhost or with my ip.
>> when i want to access the guvnor from other machines i cant.
>> is there some settings i need to do?
>>
>> thanks.
>> Nadav.
>>
>> ___
>> 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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Loading packages from KnowledgeAgent and Guvnor 5.1

2010-10-07 Thread Pierre de Leusse
Hello everyone,

 

I've deployed Guvnor as a war in Tomcat and I'm trying to load a drools
example
(drools-5.1.1-src/drools-examples/drools-examples-brms/mortgage-example/mort
gage-sample-repository.xml) as a package into a KnowledgeAgent using the
code shown there (http://pastebin.com/TvJn9PeQ).

 

I get a few exceptions including: java.io.InvalidClassException:
org.drools.rule.Package; local class incompatible: stream classdesc
serialVersionUID = 400, local class serialVersionUID = 510 (full trace
available at http://pastebin.com/fRvRMtfR).

 

I've tried several things, including checking the serialVersionUID of
org.drools.rule.DialectRuntimeRegistry and org.drools.rule.Package as the
jiira
(https://jira.jboss.org/browse/BRMS-320?page=com.atlassian.jira.plugin.syste
m.issuetabpanels%3Acomment-tabpanel#issue-tabs) suggests, but no luck.

 

My code may be buggy and I would welcome corrections/suggestions.

 

All the best,

Pierre

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


Re: [rules-users] Connect to Guvnor from other machines.

2010-10-07 Thread Nicolas Héron
Hello,
if you are using jboss, by default the server listens to localhost.
if your ip adress is "10.2.162.60"
in the jboss directory
bin/run.sh -b 10.2.162.60
Regards
Nicolas Héron


2010/10/7 Nadav Hashimshony 

> Hi
>
> i have drools guvnor installed on my machine, i can access it with
> localhost or with my ip.
> when i want to access the guvnor from other machines i cant.
> is there some settings i need to do?
>
> thanks.
> Nadav.
>
> ___
> 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] Connect to Guvnor from other machines.

2010-10-07 Thread Nadav Hashimshony
Hi

i have drools guvnor installed on my machine, i can access it with localhost
or with my ip.
when i want to access the guvnor from other machines i cant.
is there some settings i need to do?

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


[rules-users] Spring , Ruleflow and KnowledgeBuilderConfiguration

2010-10-07 Thread Swindells, Thomas
I'm using drools flow in my spring application and am currently using the 
following to configure the kbase I use:
  

  
  



  

  

When I run I'm getting a big error:
Process Compilation error : org.drools.lang.descr.processde...@7a40fc
  vcm/ingest/Process_vcm_ingest_0.java (7:281) : Syntax error on tokens, ( 
expected instead
  vcm/ingest/Process_vcm_ingest_0.java (7:281) : The left-hand side of an 
assignment must be a variable ...

Firstly it looks like ProcessDescr needs a sensible toString method implemented 
- preferably actually saying which resource it is attempting to compile.

I'm guessing that I've got some syntax errors in my ruleflow file (even though 
the eclipse plugin claims it validates fine).
I've seen that the knowledge builder configuration has the option 
drools.dump.dir, but how can I set this within Spring?

Thanks,

Thomas




**
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
**
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] OOME on JPA persistence of stateful session

2010-10-07 Thread dan.danciu

If you take a look at other iterations from the same method, the fault is
obvious, the code should be childLeftTuple = (LeftTuple)
childLeftTuple.getLeftParentNext().

Will make an issue.

Cheers,
Dan

case NodeTypeEnums.EvalConditionNode : {
//context.out.println( " EvalConditionNode" );
for ( LeftTuple childLeftTuple = leftTuple.firstChild;
childLeftTuple != null; childLeftTuple = (LeftTuple)
childLeftTuple.getLeftParentNext() ) {
stream.writeShort( PersisterEnums.LEFT_TUPLE );
stream.writeInt(
childLeftTuple.getLeftTupleSink().getId() );
writeLeftTuple( childLeftTuple,
context,
recurse );
}
stream.writeShort( PersisterEnums.END );
//context.out.println( " EvalConditionNode   ---   END"
);
break;
}
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/OOME-on-JPA-persistence-of-stateful-session-tp1647064p1647186.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] Can Drools Flow Persistence Work without JTA

2010-10-07 Thread Rui Tang
Hi list,

According to the documents and some test cases, I found that Drools Flow
persistence examples have to work with JTA to enable transaction management.

Is there some way to not use JTA as my transaction manager?

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


[rules-users] OOME on JPA persistence of stateful session

2010-10-07 Thread dan.danciu

Hi,

I'm trying to use JPA persistence for a stateful session (version 5.1.1),
the configuration is made using spring integration support.

During the integration tests almost always I get an OutOfMemoryException. I
chased the problem to the piece of code bellow (from
org.drools.marshalling.impl.OutputMarshaller).

The "for" statement marked "HERE" will cycle for ever (until no more memory
is left).

I also found the
http://www.mail-archive.com/rules-users@lists.jboss.org/msg12427.html
thread, I took out my split, but problem did not go away.

Cheers,
Dan


case NodeTypeEnums.ForallNotNode : {
if ( leftTuple.getBlocker() == null ) {
// is not blocked so has children
stream.writeShort( PersisterEnums.LEFT_TUPLE_NOT_BLOCKED
);
/ HERE
for ( LeftTuple childLeftTuple = leftTuple.firstChild;
childLeftTuple != null; childLeftTuple = (LeftTuple)
leftTuple.getLeftParentNext() ) {
stream.writeShort( PersisterEnums.LEFT_TUPLE );
stream.writeInt(
childLeftTuple.getLeftTupleSink().getId() );
writeLeftTuple( childLeftTuple,
context,
recurse );
}
stream.writeShort( PersisterEnums.END );

} else {
stream.writeShort( PersisterEnums.LEFT_TUPLE_BLOCKED );
stream.writeInt(
leftTuple.getBlocker().getFactHandle().getId() );
}
break;
}
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/OOME-on-JPA-persistence-of-stateful-session-tp1647064p1647064.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