Re: [rules-users] Logging and BIRT

2010-04-12 Thread Amit Kumar
Thanks Kris. We were able to log events and now its in BIRT arena to generate some reports. Thanks for your help. -Amit 2010/4/12 Kris Verlaenen > There is a little bit of documentation about how to create a history log: > > https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifa

Re: [rules-users] Double Handling

2010-04-12 Thread Ansgar Konermann
Ade Timi wrote: > > Thanks guys for your responses. This should be as simple as it gets, > which adds to my frustration. See the following code below: > > *Java classes:* > > *Individual* – > > *public* *class* Individual { > > *private double assetCost;* > > * * > > *public* *void* set

Re: [rules-users] Exceptions on Human Task creation

2010-04-12 Thread tolitius
@Robert, See if this helps: TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener()); MockUserInfo userInfo = new MockUserInfo(); // this of course is a mock only if it is a TEST :) taskService.setUserinfo(userInfo); T

Re: [rules-users] How to do Exception Handling???

2010-04-12 Thread tolitius
@Thomas, That is exactly what I mean. Have a default "language" exception handling mechanism, by which all unmapped exceptions would be converted to "ProcessRuntimeException" and will go to the "Fault" with type, let's say, UnknownProcessExceptionFault. And have an option to turn this behavio

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-12 Thread HMandic
OK, thanks for quick response, I'll try that tomorrow morning. -- View this message in context: http://n3.nabble.com/Drools-Flow-Problem-with-Human-Task-tp713533p714004.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-use

Re: [rules-users] Drools Planner: Exception on createSolver method

2010-04-12 Thread Geoffrey De Smet
The environmentMode property is new on trunk. It is not part of drools-planner (drools-solver at the time) 5.0.1 or 5.1.0.M1. It will be part of 5.2.0.M2. Note that a drools-core/compiler M2 snapshot is unstable at the moment (that's why they call it trunk :). What you can do - in theory - is co

Re: [rules-users] DROOLS FLOW: Accessing the Map parameter object in a Java constraint evaluation function

2010-04-12 Thread Kris Verlaenen
If you add a map when starting a process, those values will be set as process variables. For example: [ a : "SomeString"; b : 3 ]. Simplest way to access these variables in a constraint is using a code constraint, something like: return "SomeOtherString".equals(a); or return b > 2; So you can

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-12 Thread Kris Verlaenen
This seems to indicate that the version of the drools-api (containing ChainedProperties) that he task service is using is not the one it was compiled with. Make sure you are using matching drools-api and drools-process-task jars. Kris - Original Message - From: "HMandic" To: Sent:

Re: [rules-users] How to do Exception Handling???

2010-04-12 Thread Swindells, Thomas
I'm not convinced that converting a java exception to a process fault with the same name is a solid behaviour. In java it is perfectly permissible and valid for a piece of code to change the exception it throws to a subclass of that exception (eg throw a FileNotFoundException instead of a generi

Re: [rules-users] How to do Exception Handling???

2010-04-12 Thread tolitius
Kris Verlaenen wrote: > > It is trivial to simply create an AbstractWorkItemHandler that would > transform a Java exception to a process fault with the same name > > ...But if we build this into the framework, it will be more difficult to > change it if you don't > want this behaviour (and we

Re: [rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

2010-04-12 Thread tolitius
"Manual DAO call vs. Variable Persistence": point taken. Thank you Kris. -- View this message in context: http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-tp607507p713662.html Sent from the Drools - User mailing list archive at Nabble.com. ___

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-12 Thread Mauricio Salatino
Are you working with the trunk? or with which Drools Version? On Mon, Apr 12, 2010 at 10:56 AM, HMandic wrote: > > Java version is 1.6.0_18 > > > -- > View this message in context: > http://n3.nabble.com/Drools-Flow-Problem-with-Human-Task-tp713533p713625.html > Sent from the Drools - User maili

Re: [rules-users] errors with GWT-console

2010-04-12 Thread Kris Verlaenen
Guvnor was changed recently to add authentication when downloading packages. The console was not yet updated for this in 5.1.0.M1, so you'll need to update to the latest trunk. Luckily, there's now also an installation script that should simplify things as well. Take a look at http://anonsvn

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-12 Thread HMandic
Java version is 1.6.0_18 -- View this message in context: http://n3.nabble.com/Drools-Flow-Problem-with-Human-Task-tp713533p713625.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jbo

[rules-users] Performance comparasion of D3.0 and D5.0

2010-04-12 Thread Agrawal, Swapnil
Hi Do we have a performance comparison chart between Drools 3.0 and Drools 5.0? I see we have one between 4.0 amd 5.0 and one between 2.5 and 3.0. But missing the 3.0 and 5.0 comparison. We recently moved to 5.0 from 3.0 and see significant drop in performance. Need to check if the drop is relate

Re: [rules-users] Double Handling

2010-04-12 Thread Edson Tirelli
Ade, All these errors you are seeing are totally strange, as this is one of the simplest things the rules engine does. Are you able to isolate that into a test case that I can run myself to take a look? Edson 2010/4/12 Ade Timi > This is precisely how I expect it to be expressed.

Re: [rules-users] Double Handling

2010-04-12 Thread Wolfgang Laun
I guess we'll have to see class IndividualDecision, at least everything in connection with that loanToValue: field declaration and getter and setter. -W 2010/4/12 Ade Timi > This is precisely how I expect it to be expressed. When I express in this > way I get this error message: > > > > Build

Re: [rules-users] Drools Flow: Problem with Human Task

2010-04-12 Thread Mauricio Salatino
hmm that's weird.. Which version of the JVM are you using? On Mon, Apr 12, 2010 at 10:15 AM, HMandic wrote: > > Hi, > > I'm stuck on this "simple" problem for two days now and I couldn't find the > answer anywhere. I have a simple ruleflow (Start -> Human Task -> End) and > when I start the proc

Re: [rules-users] How to do Exception Handling???

2010-04-12 Thread Kris Verlaenen
The main problems I see when translating a java exception to a process exception automatically: - the exceptions are too low level, no business user understands NumberFormatException or ClassCastException, and the error could come from deep inside the invoked service - by making it automatic,

[rules-users] Drools Flow: Problem with Human Task

2010-04-12 Thread HMandic
Hi, I'm stuck on this "simple" problem for two days now and I couldn't find the answer anywhere. I have a simple ruleflow (Start -> Human Task -> End) and when I start the process it breaks like this: [2010:04:102 15:04

Re: [rules-users] Double Handling

2010-04-12 Thread Ade Timi
This is precisely how I expect it to be expressed. When I express in this way I get this error message: BuildError: Unable to create Field Extractor for 'loanToValue' of '[ClassObjectType class=com.nathean.rules.IndividualDecision]' in rule 'G2 Equity in Asset' even though it is a variable

Re: [rules-users] Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID

2010-04-12 Thread Kris Verlaenen
4>2. Very interesting point about a "shared" session. I somehow > automatically assumed that a "StateFull" session should probably not share > it's state with multiple processes. So, I take it, we can have a > single(ton?) stateful session to execute multiple processes without any > issues? [I

Re: [rules-users] Logging and BIRT

2010-04-12 Thread Kris Verlaenen
There is a little bit of documentation about how to create a history log: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch05.html#d0e1593 ... and how to do reporting: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifac

Re: [rules-users] Drools Flow: Skipping some LHS evaluations attime of insert

2010-04-12 Thread Kris Verlaenen
Another alternative would be to use an activation group, that way only one rule of that group will be able to fire. Kris - Original Message - From: Mauricio Salatino To: Rules Users List Sent: Wednesday, April 07, 2010 11:18 PM Subject: Re: [rules-users] Drools Flow: Skippin

Re: [rules-users] Flow with Rules (RuleFlowGroup): how to shareparameters/facts

2010-04-12 Thread Kris Verlaenen
Nol, Process variables are local to your process instance. Rules work based on data inserted in the session. So you should probably make sure your process inserts the data in the session at the appropriate time (e.g. using an action that does kcontext.getKnowledgeRuntime().insert(..). Kris

Re: [rules-users] Double Handling

2010-04-12 Thread Wolfgang Laun
Well, then drop the dialect "mvel" and write the pattern as $d : IndividualDecision( loanToVal < 85.0 ) There's no visible need to use mvel. Or eval: the simplest form for constraints is always best. -W 2010/4/12 Ade Timi > Many thanks for the response! > > Yes it fires when I use 85.

[rules-users] DROOLS FLOW: Accessing the Map parameter object in a Java constraint evaluation function

2010-04-12 Thread jeanjvr
I cannot find an example of this in the documentation and a search on the mailing list was fruitless. Right now my test process works fine - the constraints in Split Nodes are set "always true" with different priorities. I need to access the variables inside the Map parameter sent into the proc

Re: [rules-users] Double Handling

2010-04-12 Thread Ade Timi
Many thanks for the response! Yes it fires when I use 85.0 instead, but it obviously shouldn't as the condition is false. My code now looks like this: rule "G2 Equity in Asset" ruleflow-group "goods" dialect "mvel" when $d : IndividualDecision(eval($d.getLoanT

[rules-users] Drools Planner: Exception on createSolver method

2010-04-12 Thread dweppenaar
Hi, I am new to Drools in general so please excuse my noobness with some of the concepts. I am in the process of creating a maintenance scheduling system. As Geoffrey suggested, I have based my application heavily on the curriculum course example included in the solver (planner) examples. I have