[rules-users] How to do continuous planning in Optaplanner

2013-12-04 Thread ns
Hi, I am working on a employee roster planning problem in Optaplanner. I am wondering how to do continuous planning. Do I load in historical data, before I start the planning? How do I make sure that already planned shifts in the near future do not get changed if it is not necessary? Kind regards

[rules-users] Stateless session commands and ExecutionResults (5.5.0.Final)

2013-12-04 Thread Stephen Masters
Hi folks, Can anyone explain how stateless session execution results should work? Working through the docs and tracing the code, it’s getting a bit confusing. Firstly, according to the user manual, one should be able to insert a list of facts as a Command, and get an instance of ExecutionResult

Re: [rules-users] Stateless session commands and ExecutionResults (5.5.0.Final)

2013-12-04 Thread Wolfgang Laun
I think you have to put your insert command into a list List> cmds = new ArrayList(); and pass this via batch execution CommandFactory.newBatchExecution( cmds ) -W On 04/12/2013, Stephen Masters wrote: > Hi folks, > > Can anyone explain how stateless session execution results should work? >

Re: [rules-users] CEP accumulate unclear behavior

2013-12-04 Thread ters
laune, thanks for fast reply! So from point to point: *-- "Are you using 5.4.0?"* Yes, I'm using 5.4.0.Final. *-- "But you can easily achieve what you want by adding the pattern ServicePerformanceEvent() in front of the accumulate CE."* I've tested this, LHS is: /ServicePerformanceEvent()

Re: [rules-users] CEP accumulate unclear behavior

2013-12-04 Thread Wolfgang Laun
Hi ters, I've run a few tests and I think that you'll have to use an entirely different approach to achieve what you want. accumulate creates a "virtual object" maintaining the accumulated value(s). This is updated with every change to its domain, i.e., the set of matching facts. Thus, for every

Re: [rules-users] CEP accumulate unclear behavior

2013-12-04 Thread ters
laune, thanks for explanations. Could you please provide me with links/examples of how to /write your own accumulate function (using the init/action/result paradigm) /, and how to use this custom function instead of standard one? Regards! -- View this message in context: http://drools.46999.n

[rules-users] Need Help with Enumerations and Classpath

2013-12-04 Thread SrjTx
I am trying to create a enumeration that uses a class to populate it, per *16.10. Data enumerations (drop down list configurations)*. I have added the jar that contains my class to the drools repository and added it as a dependency to the project. When building a guided rule, that object can be se

Re: [rules-users] Need Help with Enumerations and Classpath

2013-12-04 Thread Michael Anstis
I assume this is guvnor 5.5 (or lower)? You need to add the JAR with your helper class to your container's (AS7, Tomcat) /lib folder. On 4 December 2013 17:39, SrjTx wrote: > I am trying to create a enumeration that uses a class to populate it, per > *16.10. Data enumerations (drop down list c

Re: [rules-users] CEP accumulate unclear behavior

2013-12-04 Thread Wolfgang Laun
On 04/12/2013, ters wrote: > laune, thanks for explanations. > > Could you please provide me with links/examples of how to /write your own > accumulate function (using the > init/action/result paradigm) /, and how to use this custom function instead > of standard one? rule manacc when Numbe

Re: [rules-users] Need Help with Enumerations and Classpath

2013-12-04 Thread SrjTx
6.0.0 I guess I should have said drools workbench. -- View this message in context: http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091p4027094.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

Re: [rules-users] Need Help with Enumerations and Classpath

2013-12-04 Thread Michael Anstis
OK, where is the error reported? In the "Problems Panel" or when you click "Validate" in the enum editor - or both! On 4 December 2013 19:12, SrjTx wrote: > 6.0.0 I guess I should have said drools workbench. > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Need-H

[rules-users] Guided Rule Template globals

2013-12-04 Thread marjan.sterjev
Hi, I’m trying to implement Guided Rule Template in KIE WB (Guvnor). The logic is simple: The Condition shall check range of ages and for action call a method on a global. The global is defined in Global Variables artifact. I can see two problems with the editor: 1. I can choose the global

Re: [rules-users] Guided Rule Template globals

2013-12-04 Thread Michael Anstis
Do you set the global to an object in *your* runtime? The global definition will exist in your project but will need initialising to an object by your code. If the editor lacks a feature you require why not roll your sleeves up and provide a pull request? We don't normally have the time to respond

[rules-users] Group-by rule without using a fact for grouping purposes

2013-12-04 Thread IK81
Hi, I am trying to figure out a rule for matching an incoming sequence of events, but so far I was not really successful. Basically, I want to process events from devices. Every event has a timestamp (long), an id (a UUID string), a deviceId and an error code (both are strings). What I want to

[rules-users] Limited Entry Guided Decision in Drools 6.0 (Full Screen 720HD)

2013-12-04 Thread Mark Proctor
Following on from the workbench videos (http://tinyurl.com/pnq6497), here is a rule based limited entry decision table http://tinyurl.com/o6umx2x Mark ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rul

Re: [rules-users] Group-by rule without using a fact for grouping purposes

2013-12-04 Thread Wolfgang Laun
Why is it "not practical" to add a fact for a device? You don't have to do this up front; they may come and go, dynamically. -W On 05/12/2013, IK81 wrote: > Hi, > > I am trying to figure out a rule for matching an incoming sequence of > events, but so far I was not really successful. Basically,

[rules-users] Any easy way to avoid inserting same id object into memory?

2013-12-04 Thread Sonata
Hi, I have a rule that on its RHS, it creates new objects with random content and inserts them. How do you check if the object already exists in drools memory? I am thinking to use kcontext.getKnowledgeRuntime().getObjects() in the RHS to loop for all the objects and stop inserting if an object wi

Re: [rules-users] Any easy way to avoid inserting same id object into memory?

2013-12-04 Thread Wolfgang Laun
Quote from the Expert manual: "A Working Memory may operate in two assertion modes, i.e., equality or identity, with identity being the default." Search for the keyword to see all references; you'll need "equality". -W On 05/12/2013, Sonata wrote: > Hi, I have a rule that on its RHS, it crea

Re: [rules-users] Group-by rule without using a fact for grouping purposes

2013-12-04 Thread IK81
The devices may come and go and there may be several hundreds of them. They are stored in a database. Currently, I feed the events into the knowledge session and trigger an EJB call (instead of the simple System.out.println I used in the example below) and pass the device id. The EJB does the r