[rules-users] Optaplan6.0.0Beta1:chaining-simpleScore OK, DRL Score corruption

2013-04-17 Thread Paul T
Requirement:Equip to tasks scheduling.Earlier tasks may not exceed a waittime to latest endtime for each job. 2 JOBs to plan each with 2 identical TASKs with only 1 EQUIPMENT anchor: J1 comprises T1,T2 and J2 comprises T1,T2. problemFact:EQUIPMENT E1 planning

Re: [rules-users] Optaplan6.0.0Beta1:chaining-simpleScore OK, DRL Score corruption

2013-04-17 Thread Geoffrey De Smet
Hi Paul, Can you copy paste your rule? On 17-04-13 12:15, Paul T wrote: Requirement:Equip to tasks scheduling.Earlier tasks may not exceed a waittime to latest endtime for each job. 2 JOBs to plan each with 2 identical TASKs with only 1 EQUIPMENT anchor: J1 comprises T1,T2and

[rules-users] facing problem in KnowledgeAgent

2013-04-17 Thread himansh
Hi, I am new in guvnor, please help me my code are bellow package com.sample; import org.drools.KnowledgeBase; import org.drools.RuleBase; import org.drools.WorkingMemory; import org.drools.agent.KnowledgeAgent; import org.drools.agent.KnowledgeAgentFactory; import org.drools.agent.RuleAgent;

Re: [rules-users] facing problem in KnowledgeAgent

2013-04-17 Thread Michael Anstis
What is line 34? On 17 April 2013 14:04, himansh himanshsrivast...@yahoo.com wrote: Hi, I am new in guvnor, please help me my code are bellow package com.sample; import org.drools.KnowledgeBase; import org.drools.RuleBase; import org.drools.WorkingMemory; import

[rules-users] Rule triggering problem with Drools

2013-04-17 Thread JuaneGaragorri
Hi everyone, I'm relatively new at rule development and I'm having a problem tryin' to implement one in particular. I need to capture some events that they've got the same AttributeA and got more than 9 AttributeB Objects (excluding one type in particular) in one or more events. *Model:* Class

[rules-users] Does KnowledgeRuntimeLogger work with persistence?

2013-04-17 Thread dunnlow
I am using Drools 5.5 with persistence. If I create a session like: ksession = kbase.newStatefulKnowledgeSession(null,env); My logger works as expected: KnowledgeRuntimeLogger klogger = KnowledgeRuntimeLogger.newFileLogger(ksession,run) HOWEVER, if I create the ksession like:

Re: [rules-users] Does KnowledgeRuntimeLogger work with persistence?

2013-04-17 Thread dunnlow
It turns out if a use a threaded file logger, it works (no idea why): KnowledgeRuntimeLoggerFactory.newThreadedFileLogger(ksession,krun,500) -- View this message in context: http://drools.46999.n3.nabble.com/Does-KnowledgeRuntimeLogger-work-with-persistence-tp4023372p4023374.html Sent

[rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Charles Moulliard
Hi, When I try to instantiate an Excel Decision Table using Drools + Spring (kresource), I get this error : REMARK: the file is the same as we have in Drools Unit Test (decision-table) Error : Caused by: java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
It could be related with the location of the file: classpath:data/ IntegrationExampleTest.xls Are you sure that the file is being picked up? On Wed, Apr 17, 2013 at 6:05 PM, Charles Moulliard ch0...@gmail.com wrote: Hi, When I try to instantiate an Excel Decision Table using Drools +

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Charles Moulliard
As the file exists under target/classes directory, that should be the case /target/classes/data/IntegrationExampleTest.xls On Wed, Apr 17, 2013 at 11:11 PM, Mauricio Salatino sala...@gmail.comwrote: It could be related with the location of the file: classpath:data/

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
Can you try pointing to a non existing location? to see if you get the same error? On Wed, Apr 17, 2013 at 6:30 PM, Charles Moulliard ch0...@gmail.com wrote: As the file exists under target/classes directory, that should be the case /target/classes/data/IntegrationExampleTest.xls On

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Charles Moulliard
if i change the name (file tobe loaded) then it fails Caused by: java.io.FileNotFoundException: 'data/IntegrationExampleTesti.xls' cannot be opened because it does not exist at org.drools.core.io.impl.ClassPathResource.getURL(ClassPathResource.java:168) at

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Charles Moulliard
Know the reason. Maven when it copy it to the target directory modifies it. Will investigate why. On Wed, Apr 17, 2013 at 11:46 PM, Charles Moulliard ch0...@gmail.comwrote: if i change the name (file tobe loaded) then it fails Caused by: java.io.FileNotFoundException:

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
Great! Good luck! On Wed, Apr 17, 2013 at 6:53 PM, Charles Moulliard ch0...@gmail.com wrote: Know the reason. Maven when it copy it to the target directory modifies it. Will investigate why. On Wed, Apr 17, 2013 at 11:46 PM, Charles Moulliard ch0...@gmail.comwrote: if i change the name

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
If you place the xls file inside src/main/resources it should be picked up for both, the test and the spring configuration On Wed, Apr 17, 2013 at 7:13 PM, Mauricio Salatino sala...@gmail.comwrote: Great! Good luck! On Wed, Apr 17, 2013 at 6:53 PM, Charles Moulliard ch0...@gmail.comwrote:

Re: [rules-users] drools queries: strange dependency

2013-04-17 Thread Davide Sottara
Hi Upal, I've been trying to model your use case in what seems the best currently supported mode. (Un)fortunately this uncovered a little bug in the engine, I'll get it fixed and then I'll get back to you. As for the fuzzy logic extension, I have a partially working PoC

Re: [rules-users] facing problem in KnowledgeAgent

2013-04-17 Thread himansh
Hi, System.out.println(ruleBase.getFactType(org.sample,NumberTest)); In above line org.sample is package and NumberTest is fact type name -- View this message in context: http://drools.46999.n3.nabble.com/facing-problem-in-KnowledgeAgent-tp4023368p4023384.html Sent from the Drools: User