Re: [rules-users] facing problem in KnowledgeAgent

2013-04-17 Thread himansh
Sorry for wrong reply Line 34 is Object obj = factType.newInstance(); -- View this message in context: http://drools.46999.n3.nabble.com/facing-problem-in-KnowledgeAgent-tp4023368p4023386.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] facing problem in KnowledgeAgent

2013-04-17 Thread himansh
Hi, If you know the reason and solution, please help me. From: himansh [via Drools] To: himansh Sent: Thursday, 18 April 2013 10:30 AM Subject: Re: [rules-users] facing problem in KnowledgeAgent Hi, System.out.println(ruleBase.getFactType("org.sample"

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: Us

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 https://github.com/droolsj

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 wrote: > Great! Good luck! > > > On Wed, Apr 17, 2013 at 6:53 PM, Charles Moulliard wrote: > >> Know the reason. Maven whe

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 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 wrote: > >> if i change the name (file tobe loaded) then it

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 wrote: > if i change the name (file tobe loaded) then it fails > > Caused by: java.io.FileNotFoundException: > 'data/IntegrationExampleTesti.xls'

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 org.drools.core.io.impl.ClassPathResource

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 wrote: > As the file exists under target/classes directory, that should be the case > > /target/classes/data/IntegrationExampleTest.xls > > > On Wed, Apr 17

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 wrote: > It could be related with the location of the file: classpath:data/ > IntegrationExampleTest.xls > > Are you

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 wrote: > Hi, > > When I try to instantiate an Excel Decision Table using Drools + Spring > (kresource

[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 OOX

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 f

[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:

[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 Ev

Re: [rules-users] facing problem in KnowledgeAgent

2013-04-17 Thread Michael Anstis
What is line 34? On 17 April 2013 14:04, himansh 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 org.drools.agent.KnowledgeAgent; > i

[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; i

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,T2an

[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 Ent