Re: [rules-users] [Planner] Train routing problem

2012-08-07 Thread ge0ffrey
Take a look at the VRP example too: it's basically the TSP example, but with multiple vehicles. 1) It depends, but I would add a hard constraint for this. Once 5.5.0.Final is out, you might use move Filtering instead, so it doesn't even evaluate those solutions (but that also blocks it from

Re: [rules-users] [Planner] Train routing problem

2012-08-07 Thread Lukáš Petrovický
ge0ffrey píše v Po 06. 08. 2012 v 23:47 -0700: 2) The bigger problem is that in this design you'll be assigning an order of StopTimes, but your goal is not to assign the StopTimes, but to assign a trainride (from start A to destination B) to a route (through StopTimes). The number of StopTimes

Re: [rules-users] Apply role to whole class hierarchy

2012-08-07 Thread Jörg Henne
Vincent, this issue seems to be fixed as per https://issues.jboss.org/browse/JBRULES-3587 Thanks Joerg Henne 2012/8/6 Vincent LEGENDRE vincent.legen...@eurodecision.com I had the same strange problem some time ago (last winter), but I never managed to reproduce a small sample I checked,

Re: [rules-users] Matching consecutive events

2012-08-07 Thread jpullmann
Wolfgang, Vincent, Edson, many thanks for your support! A numeric comparison of the the event timestamps did the trick. Now I am wondering, whether using simple arithmetic operators instead of explicit (built-in) temporal operators might impact the automatic life-cycle management and

[rules-users] Error in Drools when clicking Generate Task Form Template

2012-08-07 Thread Sadiroveski
Dear helpers, I designed process in drools with human tasks included, add the variables, inputsets and bindings. When I clicked on the Generate Task Form Templates, to add forms I got the following: type

Re: [rules-users] Error in Drools when clicking Generate Task Form Template

2012-08-07 Thread Tihomir Surdilovic
Task Form generation parses your process BPMN2 and it looks as you have some issues with it - click on the BPMN2 button in the Designer footer and then either provide the BPMN2 shown, or the server log error(s) it generates. If you get errors, provide those, and also click on the JSON button

[rules-users] guvnor 5.4 final turning off authentication

2012-08-07 Thread mpgong
Hello, I'm trying to upgrade from 5.3 to 5.4 and i guess i must have configured 5.3 to not authenticate when accessing the resources in guvnor like the binaries, etc using the REST api because when i try to access them under 5.4 i'm getting the 401 response. I read that security is configured in

Re: [rules-users] Error in Drools when clicking Generate Task Form Template

2012-08-07 Thread Tihomir Surdilovic
The issue seems to be your assignment mapping of the task data outputs. Please note the To and From columns in the data assignments editor: ** When you are mapping DATA INPUTS: From columns should have the object you are mapping from, so like process variables, globals, etc To columns should

Re: [rules-users] Error in Drools when clicking Generate Task Form Template

2012-08-07 Thread Sadiroveski
Waww, Thanks, Actually I followed the pattern of assigning variables -- input and variables -- output. But, it is clear i.e. variables -- input and output -- variables. Last question, when I build the package in drools, everything is Ok. But it is not appearing in JBPM console. I can only

[rules-users] ResourceChangeScanner and ResourceChangeNotifierImpl - hundereds of threads

2012-08-07 Thread paulB
Hi all, I've run into a memory issue when using Drools, and I was hoping someone could help out. I have a project that uses StatefulKnowledgeSession's, and every couple of weeks I get OutOfMemory from the JVM. I've done heap dumps and analyzed the dominator_tree, etc. No luck yet in

[rules-users] Getting java.lang.NoSuchMethodError: org.drools.util.CompositeClassLoader.clone()Lorg/drools/util/CompositeClassLoader in drools webservice

2012-08-07 Thread pratibhapandey
Hello Team, I am creating a web service in java using eclipse and axis2 which has some drools functionality in it. This is my drools class: public class LeverageDrools { public LeverageDrools(){ } public ListListlt;String

Re: [rules-users] Error in Drools when clicking Generate Task Form Template

2012-08-07 Thread Tihomir Surdilovic
Look at your server logs when you first click on the Processes tab in console after a server start...this should give you some indication of what could have went wrong. If you have any fact models uploaded into Guvnor (like .jar files), console is not able to look them up, so you need to also

Re: [rules-users] Matching consecutive events

2012-08-07 Thread Wolfgang Laun
To paraphrase Robert Z., Time is just another four letter word ;-) Clocks are just integers, incremented by Chronos, or some other god. If the god is lazy, it'll run slowly; if the god is eager, it'll be fast. You can be your own god (and use a pseudo-clock). You can start with the Big Bang, your

[rules-users] Bug in enabled rule attribute???

2012-08-07 Thread bdolbeare
The following DRL produces a Null Pointer Exception when the enabled attribute is set to false on test rule 2. Any ideas why? Changing this value to true or commenting out the rule causes things to succeed. Environment: Java 7 and Drools 5.4 package tests import org.apache.log4j.Logger;

[rules-users] Can somebody help me with this rule engine execution

2012-08-07 Thread Venkat
I want to do this. rule when condition (when condition is successful then go to next rule, but when it fails it should just log it) then end I have done for successful scenario using activation-group, but don't know what to specify in the consequence for that to tell to go to next

Re: [rules-users] Error in Drools when clicking Generate Task Form Template

2012-08-07 Thread Sadiroveski
Dear Tihomir, Your reply is always helpful. Actually, I didn't add any fact model or Jar files to Drools. I didn't reach to this level yet :P What I did on Guvnor is simply design the process with variables and forms and build it. But suddenly I found the processes in JBPM console and I started

Re: [rules-users] Error in Drools when clicking Generate Task Form Template

2012-08-07 Thread Tihomir Surdilovic
This may not necessarily apply to you but it's worth mentioning - both Designer, jBPM Console, and Guvnor assume by default they run on localhost:8080. If you have configured one or all to run on a different host/port you will have to make configuration changes. You can find how to do that for

[rules-users] Logging Rules Fired on a Fact -- Best Practices

2012-08-07 Thread BenjaminWolfe
Is there a way to log what rules have interacted with a fact -- and keep the logging with the fact? What are the best practices for that? For example, facts are unmarshalled from an XML stream: important_fact foobar/foo /important_fact Then my rules interact with it: rule my rule

Re: [rules-users] Guvnor/Designer: How to assign a global variable to a dataInput?

2012-08-07 Thread Tihomir Surdilovic
Thanks! Issues with jBPM Designer should be reported in the jBPM project and not Guvnor - I have created https://issues.jboss.org/browse/JBPM-3749 and resolved GUVNOR-1925, so please follow JBPM-3749 to receive update emails. Thanks. Tihomir On 8/7/12 6:22 PM, xmithj wrote: Thanks a lot. I

Re: [rules-users] Logging Rules Fired on a Fact -- Best Practices

2012-08-07 Thread Wolfgang Laun
Create an AgendaEventListener and let it listen to BeforeActivationFiredEvent. The passed ActivationEvent contains a reference to an Activation object, from which you getObjects all participating fact objects. Now it depends whether your important facts all implement the interface RuleHistory or