Re: [rules-users] firing rules twice in single session on single object

2012-10-12 Thread Sai Nadh
good morning sir, first of all i am very thankful to your support, but it is not working properly, first of all i want to explain my requirements please pay little time for me I have 1000 records of some data like sales amount I have two rules like below rule Mr First Rule salience 100 when

Re: [rules-users] Custom Form with DSL

2012-10-12 Thread Michael Anstis
This sounds as though it's a bug. Can you please create a JIRA (https://issues.jboss.org/browse/GUVNOR) and attach a repository export demonstrating the issue. Thanks, Mike On 11 October 2012 06:06, bhochhi bhoc...@aol.com wrote: I were able to launch the custom form in DSL, however the rule

Re: [rules-users] firing rules twice in single session on single object

2012-10-12 Thread abhinay_agarwal
Hey sai, First of all make sure whether you will be having a list of objects containing salesAmount or list of salesAmount. If you are having a list, then your list should also be present in the WHEN condition, such that when the state of your list changes then the rule gets fired !! Regards,

Re: [rules-users] firing rules twice in single session on single object

2012-10-12 Thread Sai Nadh
let me clear this by following code public static void main(String[] args){ KnowledgeBase knowledgeBase = createKnowledgeBase(); ArrayListSalesAmount testSalesAmounts= getSalesAmount(); StatefulKnowledgeSession session = knowledgeBase.newStatefulKnowledgeSession();

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread Wolfgang Laun
Hi, a nice problem... see below On 12/10/2012, mohan mohan.narang...@gmail.com wrote: Hi laune, I'll explain the process briefly. I’m getting voice call events from our billing system. We want give some offers if call made inside specific cell (uploaded this fact to WM in advance) . But we

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread mohan
Hi laune, really appreciate your valuable time dedication on this. Yes I did a mistake that there is no NotificationEvent and that should be OfferedEvent. Primary keys of the OfferedEvent are mobileNo offerId. i.e should not send particular offer notification to perticuler mobile within next

Re: [rules-users] Drools Planner for purchasing optimization - good fit for problem?

2012-10-12 Thread Geoffrey De Smet
Op 11-10-12 21:34, Schneider, Bill schreef: Geoffrey, Thanks for the quick response. As Im learning more about my scenario, it feels more like a mixed-integer

Re: [rules-users] firing rules twice in single session on single object

2012-10-12 Thread Davide Sottara
A rule like when sales : Sales (salesAmount =200) then sales.setSalesMessage(goodsales); end will not trigger any new evaluation because the engine can't detect the change. You'll need to make the engine aware of the change : when sales : Sales (salesAmount =200) then modify (sales)

Re: [rules-users] Drools Planner for purchasing optimization - good fit for problem?

2012-10-12 Thread Schneider, Bill
Geoffrey, Thanks, this was very helpful. --Bill From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Geoffrey De Smet Sent: Friday, October 12, 2012 11:11 AM To: Rules Users List Subject: Re: [rules-users] Drools Planner for purchasing optimization

Re: [rules-users] Custom Form with DSL

2012-10-12 Thread bhochhi
Thanks Mike! I created the JIRA. https://issues.jboss.org/browse/GUVNOR-1956. Regards Rupesh -- View this message in context: http://drools.46999.n3.nabble.com/Custom-Form-with-DSL-tp4020207p4020250.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Custom Form with DSL

2012-10-12 Thread GPatel
Is there a way to pass the editing context to the custom form? For example, in the rule below: [when] type of mineral is {mineralName:CF:Mineral.name}and country of mining is {countryName:CF:Country.name} If the mineral Quartz is selected, then the custom form displaying the country list

Re: [rules-users] Iterating facts

2012-10-12 Thread Davide Sottara
FactType (and FactField etc..) are an internal representation of a declared type's CLASS, hence you can get names, types, etc.. but obviously NOT any instance's values from there. You'll need something like this: FactType factType = ksession.getKnowledgeBase().getFactType(pckg, Project)

Re: [rules-users] [Drools Fusion] Accessing Events' time (read-only) with Drools in STREAM mode, REALTIME clock

2012-10-12 Thread Davide Sottara
Stefano Bragaglia wrote Hi guys, I just realised that it is not possible to take advantage of the default time handling and access the timestamp value at the same time. Agreed, one may want to write both qualitative ( A after B ) and quantitative constraints ( A.time x ) on an event.

[rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread alopez
Hi, I'm migrating rules from a Guvnor 5.2.x site to the new beta, I did this by exporting the old repo and importing in the new one. I can see the packages and rules OK now in the new 5.5 Beta 1, creating snapshots works OK. But build does not, I get an: 500 The call failed on the server;

Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread Michael Anstis
You are following the recommended migration approach. Does the server log show anything more interesting than that in the pop-up? On 12 October 2012 20:14, alopez alo...@termmed.com wrote: Hi, I'm migrating rules from a Guvnor 5.2.x site to the new beta, I did this by exporting the old repo

Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread alopez
Thanks, and I forgot to explain that, the console in the server is completely silent, if I create a snapshot I can see some Info messages displaying, but when building and the error appears the console has no messages. -- View this message in context:

Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread Michael Anstis
What about the log file created by your Application Server? e.g. Tomcat places them in /apache-tomcat-6.0.30/logs; JBoss AS7.1 in /jboss-as-7.1.1.Final/standalone/log You may need to refer to your Application Server's documentation. On 12 October 2012 20:39, alopez alo...@termmed.com wrote:

Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread alopez
Yes, that is the one we are monitoring (tomcat in this case), we see this: INFO 12-10 11:58:59,435 (LoggingHelper.java:info:49) USER:admin CREATING MODULE SNAPSHOT for module: [ihtsdoBaseRules] snapshot name: [ihtsdoBaseRules but it does not show anything new if we try to build... --

Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread Michael Anstis
OK, strange, but I have no reason to doubt you. We will need your repository export file to investigate further, or at least a minimal 5.2 export that demonstrates the problem. Please raise a JIRA (https://issues.jboss.org/browse/GUVNOR) and attach the same. With kind regards, Mike On 12

Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread alopez
Thanks, will do that. -- View this message in context: http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260p4020266.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread lhorton
Has this issue been fixed, or is it still necessary to remove any event listeners so that the session is freed? -- View this message in context: http://drools.46999.n3.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp54778p4020267.html Sent from the Drools: User forum mailing list