[rules-users] Re: a technical error occurred. Please contact a system administrator.

2009-07-02 Thread VÅM§Ï ®
*Hi Jaroslaw Kijanowski *, Thanks for your reply.here is some my jar content. com/aklero/db/entity/InstClient.class com/aklero/db/entity/RiderType.class com/aklero/db/entity/AbstractDmsDocumentDataMapping.class com/aklero/dms/DMSIntegrator.class com/aklero/dms/DmsXmlParser.class com/aklero/dms/DM

[rules-users] Formula value assginment in LHS

2009-07-02 Thread Shabbir Dhari
Dear all We are developing a financial business application that contains hundreds of business rules for validations and calculations. In the calculation rules we change the value of attribute if values past in the request is incorrect e.g. rule "TaxCalc" when $i : Invoice()

[rules-users] Drools 4.0.7 OSGi version not working

2009-07-02 Thread Flavius Vespasianus
Hi, I am still trying to setup Drools as OSGi classes. I have downloaded and installed following plugins: com.springsource.com.thoughtworks.xstream-1.3.0.jar com.springsource.javax.rules-1.1.0.jar com.springsource.javax.xml.stream-1.0.1.jar com.springsource.jxl-2.6.6.jar com.springsource.org.a

[rules-users] Re: the n best solutions on a very simple test case (drools-solver)

2009-07-02 Thread Geoffrey De Smet
Only the solution which is reached by each chosen step is send to the BestSolutionRecaller. If you do only one step, you 'd have to do some dirty hack to get those other 4. Maybe you can use your current Finish combined with AND and a at least 4 steps taken finish, to force at least (4 - 1 = )

[rules-users] the n best solutions on a very simple test case

2009-07-02 Thread Laurent Michenaud
Hi, We have implemented a best score recaller to keep the n best found solutions. It seems to be ok except on very simple test cases : - On the first step, 4 moves are tested. They all return a feseable score. The best one is kept and sent to the solution recaller. - After each of these moves,

Re: [rules-users] Unpredicatable output with Temporal rule

2009-07-02 Thread PriyaKathan
Thanks for your quick response. Your previous reply solved my problem. I failed to declaretimestamp attribute with the rule engine with an assumption that rulesession will consider psuedo clock's time as event's. After including the timestamp attribute, it works as expected. Thanks once again. 200

Re: [rules-users] Unpredicatable output with Temporal rule

2009-07-02 Thread Edson Tirelli
It is hard to know what is wrong from the code snippets. Can you provide the full test case so that I can reproduce locally? If so, plz open a JIRA, attach the test case and ping me. I am moving today, so I will probably not be much responsive till next week, but I will try to look into th

Re: [rules-users] Unpredicatable output with Temporal rule

2009-07-02 Thread PriyaKathan
Here is the Code Snippet: currentTimeStamp = getCurrentTimeStamp(tuple, schArray);// the method will the timestamp of the tuple this.clock.advanceTime(currentTimeStamp - clock.getCurrentTime(), TimeUnit.MILLISECONDS); this.ruleSession.fireAllRules(); I use Pse

Re: [rules-users] Unpredicatable output with Temporal rule

2009-07-02 Thread Edson Tirelli
Since you are not declaring to the rules engine what is the timestamp attribute, the engine uses the timestamp of the session clock at event insertion. What kind of session clock are you using? how are you firing your rules (fireAllRules() or fireUntilHalt())? How frequently are you feeding the

[rules-users] Unpredicatable output with Temporal rule

2009-07-02 Thread PriyaSha
Requirement: To identify those tickets with "critical" severity which occurs after 2minutes but before 5minutes of a ticket with severity 'warning', provided both are of different application name. This rule though not meaningful, is considered to understand the temporal operator. This is the

Re: [rules-users] Example test case fails when setting JANINO in KnowledgeBuilderConfiguration

2009-07-02 Thread Edson Tirelli
Nicholas, It seems that dialect configuration is not exposed yet through the drools-api. We need to do that. Would you please open a JIRA so that this is not lost? Meanwhile, the work around is to fallback to the previous API: JavaDialectConfiguration conf = (JavaDialectConf

Re: [rules-users] How to call a another drl file from one drl file

2009-07-02 Thread David Sinclair
Michael is correct. You need to add each resource to the knowledgebase ensuring that functions needed by rules are added before the rules themselves. 2009/7/2 Anstis, Michael (M.) > I believe you will need to add each DRL file into a single RuleBase > (Drools 4.x terminology; I think KnowledgeB

Re: [rules-users] new to drools: can't manage to find the documentation page about eclipse plugin installation

2009-07-02 Thread Jaroslaw Kijanowski
Hi, http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-introduction/html_single/index.html#d0e1371 3.1.3.3. Installing Drools plug-in from zip file and 3.1.3.4. Drools Runtimes You could also use the update site: Drools 5.0 Eclipse Workbench for 3.4 http://www.jboss.org/drools/downl

RE: [rules-users] How to call a another drl file from one drl file

2009-07-02 Thread Anstis, Michael (M.)
I believe you will need to add each DRL file into a single RuleBase (Drools 4.x terminology; I think KnowledgeBase in 5.0 but I'm a little rusty). Don't forget rules aren't evaluated when "fireAllRules" is called but as objects are inserted into WorkingMemory, so all rules need to be compiled int

[rules-users] How to call a another drl file from one drl file

2009-07-02 Thread Amila Silva
hi, I have requirement to execute a chain of rules. One rule after another and they are reusable.I need to know how to call another drl file from a drl file. or in a then part of the a rule. thanks Amila Silva ___ rules-users mailing list rules-use

Re: [rules-users] new to drools: can't manage to find the documentation page about eclipse plugin installation

2009-07-02 Thread Gab Aldian
Thank you very much, I made it working using a similar manual procedure. But that is unbelievable that there is no documentation about this. Regards Aldian 2009/7/2 Ross H > I just unzip it and place into the dropins folder in eclipse. So you have > the following folders: > eclipse > - dropins

[rules-users] Example test case fails when setting JANINO in KnowledgeBuilderConfiguration

2009-07-02 Thread Nicholas Hemley
Hello, I have a little test case as follows: import org.drools.builder.KnowledgeBuilderConfiguration; import org.drools.builder.KnowledgeBuilderFactory; import org.junit.Assert; import org.junit.Test; public class TestDrools5Config { @Test public void testConfig() {

[rules-users] problems with variables in drools-flow

2009-07-02 Thread Ševčík Martin
I have a simple process with action and one human task. When I'm starting a process, I add a variable this way: Map data = new HashMap(); data.put("data3", "this is data3"); ProcessInstance pi = ksession.startProcess("com.sample.ruleflow",data); Another data I put in variab

Re: [rules-users] new to drools: can't manage to find the documentation page about eclipse plugin installation

2009-07-02 Thread Ross H
I just unzip it and place into the dropins folder in eclipse. So you have the following folders: eclipse - dropins - drools-5.0-eclipse-all works nicely. I use the j2e version of ganymede - that probably has GEF. 2009/7/2 Gab Aldian > Hi everybody > > I am very sorry to ask for something