[rules-users] Expose JBoss rules as webservice
Hello, I am developing a java based stand alone logger framework to plug in to my integration applications. After logging the messages, the framework need to forward the message to a notification service (a Java based SOAP/HTTP web service) . The business logic of this notification service now needs to be implemented using JBoss Business Rules Management System. Since my integration applications run on WebSphere server, I would be using the WebSphere SOAP engine for logger framework to invoke the notification web service. I am new to the JBoss suite of integration products. Could you please help me with the below 1. To build some rules, say if-else or decision tables, is JBoss BRMS alone sufficient? 2. Once the business rules are developed, is there a way to expose these rules as a SOAP/HTTP web service? 3. What are the set of products needed to develop and deploy this rule service as a SOAP/HTTP web service? I assume it is JBoss BRMS and JBoss Enterprise SOA Platform. [cid:image001.png@01CBCDF2.1C66A5E0] Any help/guidance on the above queries are greatly appreciated. Thanks Regards Kishore DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. inline: image001.png___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] hardcore masterclass (west london)
The hardcore masterclass sounds interesting to me. Where would it be held and what would the entry fees be? Sam Squire From: rules-users-requ...@lists.jboss.org To: rules-users@lists.jboss.org Date: 12/02/11 23:39 Subject:rules-users Digest, Vol 51, Issue 40 Sent by:rules-users-boun...@lists.jboss.org Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to rules-users-requ...@lists.jboss.org You can reach the person managing the list at rules-users-ow...@lists.jboss.org When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. Re: hardcore masterclass (west london) (Mark Proctor) 2. Re: hardcore masterclass (west london) (Mark Proctor) 3. Re: hardcore masterclass (west london) (Mauricio Salatino) 4. Re: hardcore masterclass (west london) (Salina Fung/UFL - ICIL) -- Message: 1 Date: Sat, 12 Feb 2011 17:49:03 + From: Mark Proctor mproc...@codehaus.org Subject: Re: [rules-users] hardcore masterclass (west london) To: rules-users@lists.jboss.org Message-ID: 4d56c80f.3090...@codehaus.org Content-Type: text/plain; charset=iso-8859-1 On 12/02/2011 16:27, Mauricio Salatino wrote: I'm really interested in that kind of courses, but I'm pretty far away. Can I help you creating material and content for those courses? In that way we can share the meetups knowledge in different places. Wasn't planning to do any preparation, far too much work. To formally prepare teaching material for this that could be handled for people at all levels would take me weeks :) Mostly just taking people over code and doodling on board some of the data structures and verbally explaining how things work. Mark Greetings. On Sat, Feb 12, 2011 at 12:56 PM, Mark Proctor mproc...@codehaus.org mailto:mproc...@codehaus.org wrote: I was just wondering if anyone was interested in learning hard core rule engine theory, with the aim of helping you to develop some core engine features and be involved in the next generation Drools engine. If this interests anyone let me know and I can organise some meetups, probably based in West London (Chiswick). Mark ___ rules-users mailing list rules-users@lists.jboss.org mailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110212/7f5cc826/attachment-0001.html -- Message: 2 Date: Sat, 12 Feb 2011 18:04:42 + From: Mark Proctor mproc...@codehaus.org Subject: Re: [rules-users] hardcore masterclass (west london) To: rules-users@lists.jboss.org, Rules Dev List rules-...@lists.jboss.org Message-ID: 4d56cbba.5060...@codehaus.org Content-Type: text/plain; charset=utf-8 On 12/02/2011 16:53, Greg Barton wrote: I'd be interested in listening in if you can webcast it. See previous email :) probably way to unstuctured. Think of it more as pair programming mentoring, than formal teaching. Which works great with two or three people in a room together. I could be tempted to do some remote sessions, shared desktop etc - although in reality this would be no different from our current IRC availability, where we are always willing to talk through core code with people. Remote voice can also often by very dry and boring. What I need to avoid is formal lecturing, I don't have the time to prepare for that. But I could talk through some of the classes and data structures. I guess it depends how serious peple are out there. If there are two or three people that say they'll make time to do some core work each week, I would be willing to formalise more of the content. But I'm reluctant to do that without some quid pro quo :) My goal from this is to help some people who have wanted to do core engine work, who have the desire, but not quite sure how to start. Mark GreG On Feb 12, 2011, at 10:27, Mauricio Salatino sala...@gmail.com mailto:sala...@gmail.com wrote: I'm really interested in that kind of courses, but I'm pretty far away. Can I help you creating material and content for those courses? In that way we
Re: [rules-users] hardcore masterclass (west london)
Apologies, lotus notes doesn't put the replied message into blocks. Sam Squire This message may contain confidential and privileged information and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorised. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator and then immediately delete this message. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses. Please refer to http://www.bnymellon.com/disclaimer/piml.html for certain disclosures.___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Expose JBoss rules as webservice
Hi Kishore, In the community version of the project you have Drools Server for exposing the rule and the process engine via SOAP and REST. I'm not sure if in the comercial version BRMS is already included. Greetings. 2011/2/16 Vkishore_Kumar vkishore_ku...@mahindrasatyam.com Hello, I am developing a java based stand alone logger framework to plug in to my integration applications. After logging the messages, the framework need to forward the message to a notification service (a Java based SOAP/HTTP web service) . The business logic of this notification service now needs to be implemented using JBoss Business Rules Management System. Since my integration applications run on WebSphere server, I would be using the WebSphere SOAP engine for logger framework to invoke the notification web service. I am new to the JBoss suite of integration products. Could you please help me with the below 1. To build some rules, say if-else or decision tables, is JBoss BRMS alone sufficient? 2. Once the business rules are developed, is there a way to expose these rules as a SOAP/HTTP web service? 3. What are the set of products needed to develop and deploy this rule service as a SOAP/HTTP web service? I assume it is JBoss BRMS and JBoss Enterprise SOA Platform. Any help/guidance on the above queries are greatly appreciated. Thanks Regards Kishore -- DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - image001.png___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Trigering flows from rules
Theres any way to triger a flow (process) from a Rule or shuld be allway the flow that trigers the rules. Maybe ¿Inserting a even fact? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Trigering flows from rules
Hi, Within the RHS of your rules you have an automagic object called kcontext. You can use it to start a process: MapString, Object parameters = new HashMapString, Object(); parameters.put(someParameterId, someValue ); ... //set all the parameters ProcessInstance pI = kcontext.getKnowledgeRuntime().startProcess(processId, parameters); Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Wed, Feb 16, 2011 at 10:08 AM, Luciano A. Andrade andrade.luci...@gmail.com wrote: Theres any way to triger a flow (process) from a Rule or shuld be allway the flow that trigers the rules. Maybe ¿Inserting a even fact? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] hardcore masterclass (west london)
I would be very interested in this, it depends when and where you were thinking. Thanks, James -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/hardcore-masterclass-west-london-tp2480721p2509178.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Trigering flows from rules
That's correct You can trigger flows with rules and rules with flows. You can also use Events as well mixed with both: rules and processes. 2011/2/16 Esteban Aliverti esteban.alive...@gmail.com Hi, Within the RHS of your rules you have an automagic object called kcontext. You can use it to start a process: MapString, Object parameters = new HashMapString, Object(); parameters.put(someParameterId, someValue ); ... //set all the parameters ProcessInstance pI = kcontext.getKnowledgeRuntime().startProcess(processId, parameters); Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Wed, Feb 16, 2011 at 10:08 AM, Luciano A. Andrade andrade.luci...@gmail.com wrote: Theres any way to triger a flow (process) from a Rule or shuld be allway the flow that trigers the rules. Maybe ¿Inserting a even fact? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] using contains against a ListBigInteger
It's Java, after all... The contains operator requires a Collection (or array) and an Object. A plain numeric literal won't result in a BigInteger without you providing a hint. You can write $performance : Performance( calcScore contains (BigInteger.valueOf(6)) ) or dialect mvel when $performance : Performance( calcScore contains (6I) ) # capital i All of these (and your eval) use magic numbers, so my preferred way of dealing with this would be s.th. like this, using a singleton Parameter fact for this and other values: when Parameter( $bis: bigIntSix ) $performance : Performance( calcScore contains $bis ) -W 2011/2/16 travis_sm...@bnz.co.nz: Hi, A newbie question I'm afraid. I've been unsuccessful searching the mailing-list archive (and google) for this. I'm trying to simplify rule-writing for Statistical Analysts to be able to write rules. I'm hoping to achieve this without resort to DSLR files and a DSL if possible as we currently need them for nothing else One of the situations I have is the following: when $performance : Performance( eval(calcScore.contains(BigInteger.valueOf(6))) ) then [...] That works absolutely fine: CustAccPerf being a having several members, including an ArrayListBigInteger called calcScore Howwever I'd like to rewrite it like: when $performance : Performance( calcScore contains 6 ) then [...] Given the support for BigInteger BigDecimal type comparison, and the structure of the 'contains' operator, I couldn't see why this wouldn't work. If someone could explain this would be excellent - for now I'm gong ahead with the eval, but from a non-technical usability POV the latter form would be far preferable: I'd prefer that the users don't have to worry about eval or BigInteger, and while I realize it's not possible (currently) to eliminate that altogether, I would like to eliminate as many of the (to quote) meaningless tech stuff questions as possible. Alternately if some kind person wants to tell me a better way of structuring that rule so I can use it as a template, then that'd be welcome also. Unfortunately we're dealing with a feed from a 3rd party system so restructuring the data is not a desirable option. Thank you for your time, -Trav Travis Smith Analyst Programmer Development Centre BNZ CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools Server and BPMN2
Hi, Does the Drools Server (v. 5.1) support the new BMPN2 implementation of the drools flow? If so, how do I configure my knowledge session in the knowledge-services.xml? I have tried: drools:resource type=BPMN2 source=classpath:reg-fee-calc.bpmn/ and drools:resource type=DRF source=classpath:reg-fee-calc.bpmn/ But neither work. Thanks in advance for any help. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-and-BPMN2-tp2511727p2511727.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Trigering flows from rules
Thank for the answer, i am tring to deside if i shuld trigger the rules with the flows or the flows with the rules, there any adventage from one or the other? What about guvnor/QA ¿Can I make QA with the flows? I Have to eventually run a script (or call a web service), think that add something like Camel, or ActiveMQ or ServiceMix to handleit is overkilling since, the rule (or the flow) shuld deside what script shuld run, the question is ¿shuld run the script from the rule or from the flows? Right now i think, that if for example the script is send_welcome_email wich send a welcome email to a new customer, it shudl run from a rule, since (right now) i don't know how to pass the customer info to the flow. 2011/2/16 Mauricio Salatino sala...@gmail.com: That's correct You can trigger flows with rules and rules with flows. You can also use Events as well mixed with both: rules and processes. 2011/2/16 Esteban Aliverti esteban.alive...@gmail.com Hi, Within the RHS of your rules you have an automagic object called kcontext. You can use it to start a process: MapString, Object parameters = new HashMapString, Object(); parameters.put(someParameterId, someValue ); ... //set all the parameters ProcessInstance pI = kcontext.getKnowledgeRuntime().startProcess(processId, parameters); Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Wed, Feb 16, 2011 at 10:08 AM, Luciano A. Andrade andrade.luci...@gmail.com wrote: Theres any way to triger a flow (process) from a Rule or shuld be allway the flow that trigers the rules. Maybe ¿Inserting a even fact? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 5.1: What happens when an incremental KA rebuild fails?
Bug filed: https://issues.jboss.org/browse/JBRULES-2904 Best, Laird -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-What-happens-when-an-incremental-KA-rebuild-fails-tp2258083p2511820.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 5.1: What happens when an incremental KA rebuild fails?
Ok, I'm working on it. As you mentioned, the problem was that the agent got unsubscribed from the resource, and because the compilation fails, it doesn't get re-subscribed. From now on, when the compilation of a resource fails, all the knowledge definitions that were defined by that resource are going to be removed but the agent is not going to unsubscribe itself from the resource. What do you think? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Wed, Feb 16, 2011 at 3:55 PM, ljnelson ljnel...@gmail.com wrote: Bug filed: https://issues.jboss.org/browse/JBRULES-2904 Best, Laird -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-What-happens-when-an-incremental-KA-rebuild-fails-tp2258083p2511820.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 5.1: What happens when an incremental KA rebuild fails?
On Wed, Feb 16, 2011 at 3:00 PM, Esteban [via Drools - Java Rules Engine] ml-node+2512373-1999498509-10...@n3.nabble.com wrote: Ok, I'm working on it. As you mentioned, the problem was that the agent got unsubscribed from the resource, and because the compilation fails, it doesn't get re-subscribed. From now on, when the compilation of a resource fails, all the knowledge definitions that were defined by that resource are going to be removed but the agent is not going to unsubscribe itself from the resource. What do you think? That sounds right to me. Best, Laird -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-What-happens-when-an-incremental-KA-rebuild-fails-tp2258083p2512431.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] why inject the kagent: drools-spring api
Hi! I'm new using spring-drools api, and I have some doubts about api implementation: I review the source code of KnowledgeAgentDefinitionParser, I don't understand why we need to inject the kagent into any stateless sessions. and this code: // inject the kagent into any stateless sessions (why?) for ( String beanName : parserContext.getRegistry().getBeanDefinitionNames() ) {...} only iterates over the spring beans that has been loaded (at run time) in the memory but not over all beans defined, so it isn't the desired effect. it happens too whith KnowledgeSessionDefinitionParser: // find any kagent's for the current kbase and assign (why?) for ( String beanName : parserContext.getRegistry().getBeanDefinitionNames() ) { and may ocurr the exception with stateful sessions: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'knowledgeAgent' this not happens in test cases because the order of drools-spring beans definitions Tanks for your help! -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/why-inject-the-kagent-drools-spring-api-tp2512738p2512738.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] getting details of facts triggering rules
Hi, I've tried to figure this out but haven't been able to. How can I, from the RHS, figure out the details of what triggered a rule. I can access the facts individually by name, but how do I do it in a generic fashion that would work in the RHS of any rule? I am using decisiontables and want to be able to have a function that is something like printTriggeringDetails() I came across drools.getTuple but am not sure if that's the correct path to go on. From there I get InternalFactHandles but don't know how to turn those into human-readable facts. Thanks for any help, Archie ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules priority
Hi, I Have requirement if first rules executes then all other should not execute. Please let me know with example of 3 rules. Regards, Sathya Prakash -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/rules-priority-tp1527801p2512909.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules priority
As far as I remember activtion-groups can be used for that purpose, or I have it wrong? Please check the documentation. On Wed, Feb 16, 2011 at 6:01 PM, Sathya Prakash prakashagar...@gmail.comwrote: Hi, I Have requirement if first rules executes then all other should not execute. Please let me know with example of 3 rules. Regards, Sathya Prakash -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/rules-priority-tp1527801p2512909.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Migrating from one environment to another
I am aware of the Guvnor export/import mechanism to move an entire repository and the method of importing a DRL to create a package. But what I have been looking for is a mechanism to move the entire contents of a Guvnor package (DSL, model, DSLR file, DRL files etc) from one Guvnor instance to another, so far without luck. Is there such a mechanism? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Migrating from one environment to another
Currently we have added few jar file in guvnor war file and deployed. So we need to migrate to jboss brms . If i upload in drools console by up load model jar. i am facing out of memory problems... Please suggest . Regards, Sathya Prakash On Thu, Feb 17, 2011 at 2:04 AM, Chris Selwyn ch...@selwyn-family.me.ukwrote: I am aware of the Guvnor export/import mechanism to move an entire repository and the method of importing a DRL to create a package. But what I have been looking for is a mechanism to move the entire contents of a Guvnor package (DSL, model, DSLR file, DRL files etc) from one Guvnor instance to another, so far without luck. Is there such a mechanism? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Cheers, Sathya Prakash. *సత్య ప్రకాష్*. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] how to stop rule execution
Hi, How to stop rule execution in technical rule, Example rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution end rule Rule-01 salience 99 when repsonse.getxx() then end. if first rule then part executed means the response is error hence we should not execute second. Is there any way to exit rule execution. Regards, Sathya Prakash. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] how to stop rule execution
you can do something like: rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution insert(Stop()) end rule Rule-01 salience 99 when not(Stop()) repsonse.getxx() then end. 2011/2/16 Sathya Prakash prakashagar...@gmail.com Hi, How to stop rule execution in technical rule, Example rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution end rule Rule-01 salience 99 when repsonse.getxx() then end. if first rule then part executed means the response is error hence we should not execute second. Is there any way to exit rule execution. Regards, Sathya Prakash. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Migrating from one environment to another
@Chris, I don't believe there is such a mechanism. @Sathya, Hijacking a previous post is unlikely to get you a reply. Thanks, Mike On 16 February 2011 22:04, Chris Selwyn ch...@selwyn-family.me.uk wrote: I am aware of the Guvnor export/import mechanism to move an entire repository and the method of importing a DRL to create a package. But what I have been looking for is a mechanism to move the entire contents of a Guvnor package (DSL, model, DSLR file, DRL files etc) from one Guvnor instance to another, so far without luck. Is there such a mechanism? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] how to stop rule execution
Further to Mauricio's reply you need to understand that rules do not activate in serial but indeed parallel, the execution of which is handled by the engine's agenda. In addition to the solution given you could consider jBPM (Rule flow) if you need to consider dependant execution. With kind regards, Mike 2011/2/16 Mauricio Salatino sala...@gmail.com you can do something like: rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution insert(Stop()) end rule Rule-01 salience 99 when not(Stop()) repsonse.getxx() then end. 2011/2/16 Sathya Prakash prakashagar...@gmail.com Hi, How to stop rule execution in technical rule, Example rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution end rule Rule-01 salience 99 when repsonse.getxx() then end. if first rule then part executed means the response is error hence we should not execute second. Is there any way to exit rule execution. Regards, Sathya Prakash. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] how to stop rule execution
Thanks for your suggestion.. But let us assume i have 100 rules based on single response. When response is null then if i am doing null check in all rules then it degrades the performance. My application hits are million per day. if 1 % percent fails think about the impact. * * *Regards,* *Sathya Prakash.* On Thu, Feb 17, 2011 at 2:26 AM, Mauricio Salatino sala...@gmail.comwrote: you can do something like: rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution insert(Stop()) end rule Rule-01 salience 99 when not(Stop()) repsonse.getxx() then end. 2011/2/16 Sathya Prakash prakashagar...@gmail.com Hi, How to stop rule execution in technical rule, Example rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution end rule Rule-01 salience 99 when repsonse.getxx() then end. if first rule then part executed means the response is error hence we should not execute second. Is there any way to exit rule execution. Regards, Sathya Prakash. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - -- Cheers, Sathya Prakash. *సత్య ప్రకాష్*. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] how to stop rule execution
I got great Idea by this discussion. If there is no way of stopping rules then I can do this null condition check before executing rules. Adding one action in JBoss ESB will solve problem. Please suggest me. Many Thanks in advance. Regards, Sathya Prakash. On Thu, Feb 17, 2011 at 2:39 AM, Sathya Prakash prakashagar...@gmail.comwrote: Thanks for your suggestion.. But let us assume i have 100 rules based on single response. When response is null then if i am doing null check in all rules then it degrades the performance. My application hits are million per day. if 1 % percent fails think about the impact. * * *Regards,* *Sathya Prakash.* On Thu, Feb 17, 2011 at 2:26 AM, Mauricio Salatino sala...@gmail.comwrote: you can do something like: rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution insert(Stop()) end rule Rule-01 salience 99 when not(Stop()) repsonse.getxx() then end. 2011/2/16 Sathya Prakash prakashagar...@gmail.com Hi, How to stop rule execution in technical rule, Example rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution end rule Rule-01 salience 99 when repsonse.getxx() then end. if first rule then part executed means the response is error hence we should not execute second. Is there any way to exit rule execution. Regards, Sathya Prakash. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - -- Cheers, Sathya Prakash. *సత్య ప్రకాష్*. -- Cheers, Sathya Prakash. *సత్య ప్రకాష్*. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] using contains against a ListBigInteger
Thank you Wolfgang, that works brilliantly. I appreciate your thoughts on Parameters and will be doing something along that line as that looks cleaner again - I hadn't gotten up to eliminating magic numbers yet. Regards, -Trav Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) Wolfgang Laun wolfgang.l...@gmail.com Sent by: rules-users-boun...@lists.jboss.org 17/02/2011 05:44 a.m. Please respond to Rules Users List rules-users@lists.jboss.org To Rules Users List rules-users@lists.jboss.org cc Subject Re: [rules-users] using contains against a ListBigInteger It's Java, after all... The contains operator requires a Collection (or array) and an Object. A plain numeric literal won't result in a BigInteger without you providing a hint. You can write $performance : Performance( calcScore contains (BigInteger.valueOf(6)) ) or dialect mvel when $performance : Performance( calcScore contains (6I) ) # capital i All of these (and your eval) use magic numbers, so my preferred way of dealing with this would be s.th. like this, using a singleton Parameter fact for this and other values: when Parameter( $bis: bigIntSix ) $performance : Performance( calcScore contains $bis ) -W 2011/2/16 travis_sm...@bnz.co.nz: Hi, A newbie question I'm afraid. I've been unsuccessful searching the mailing-list archive (and google) for this. I'm trying to simplify rule-writing for Statistical Analysts to be able to write rules. I'm hoping to achieve this without resort to DSLR files and a DSL if possible as we currently need them for nothing else One of the situations I have is the following: when $performance : Performance( eval(calcScore.contains(BigInteger.valueOf(6))) ) then [...] That works absolutely fine: CustAccPerf being a having several members, including an ArrayListBigInteger called calcScore Howwever I'd like to rewrite it like: when $performance : Performance( calcScore contains 6 ) then [...] Given the support for BigInteger BigDecimal type comparison, and the structure of the 'contains' operator, I couldn't see why this wouldn't work. If someone could explain this would be excellent - for now I'm gong ahead with the eval, but from a non-technical usability POV the latter form would be far preferable: I'd prefer that the users don't have to worry about eval or BigInteger, and while I realize it's not possible (currently) to eliminate that altogether, I would like to eliminate as many of the (to quote) meaningless tech stuff questions as possible. Alternately if some kind person wants to tell me a better way of structuring that rule so I can use it as a template, then that'd be welcome also. Unfortunately we're dealing with a feed from a 3rd party system so restructuring the data is not a desirable option. Thank you for your time, -Trav Travis Smith Analyst Programmer Development Centre BNZ CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Migrating from one environment to another
Thanks for the confirmation Michael. I must say that I am surprised. It seems such an obviously useful thing. Is there a reason why it does not exit? Is there a problem in building such a thing? Chris On 16/02/2011 22:33, Michael Anstis wrote: @Chris, I don't believe there is such a mechanism. @Sathya, Hijacking a previous post is unlikely to get you a reply. Thanks, Mike On 16 February 2011 22:04, Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk wrote: I am aware of the Guvnor export/import mechanism to move an entire repository and the method of importing a DRL to create a package. But what I have been looking for is a mechanism to move the entire contents of a Guvnor package (DSL, model, DSLR file, DRL files etc) from one Guvnor instance to another, so far without luck. Is there such a mechanism? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org mailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users No virus found in this message. Checked by AVG - www.avg.com http://www.avg.com Version: 10.0.1204 / Virus Database: 1435/3447 - Release Date: 02/16/11 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Unterminated String Literal error
I'm getting an error as follows: Error: Unable to build expression for 'consequence': [Error: unterminated string literal] [Near : {... label, priceValue); } } }] I've combed the file looking for any stray quote characters, did a ctrl + f and verified that all my string literals are closed, all my lines of code have their appropriate ; terminations... I'm sure I'm probably missing something obvious, but can somebody take a look for me? I'm using Drools version 5.1.0; my rule file is below. package net.intellidata.pricing.rules import net.intellidata.pricing.data.model.PriceDataRecord; import net.intellidata.pricing.PriceRequest; import net.intellidata.pricing.result.PriceResult; import net.intellidata.pricing.result.ValueType; import net.intellidata.pricing.result.PriceValue; import net.intellidata.pricing.data.InputType; rule someclient-default rule dialect mvel when $priceRequest : PriceRequest( ) $priceDataRecord : PriceDataRecord( ) then PriceResult result = new PriceResult($priceRequest.getClient(), $priceRequest.getRequestedPn()); for(InputType inputType : $priceDataRecord.keyset()) { String label = inputType.getPropertyName(); Object value = $priceDataRecord.get(inputType); ValueType valueType = null; String valueDisplay = null; switch(inputType) { //Don't add ID and PN to the result - ID is unnecessary and PN is included as a separate property case ID: case PN: break; case PACKAGE_UNIT: valueType = ValueType.INTEGER; valueDisplay = value.toString(); break; case MOQ_1: case MOQ2: valueType = ValueType.INTEGER; valueDisplay = value.toString(); break case PRICE_1: case PRICE_2: valueType = ValueType.BIG_DECIMAL; valueDisplay = value.toString(); break; case LEAD_TIME: valueType = ValueType.DOUBLE; valueDisplay = value.toString(); break; default: throw new IllegalArgumentException(InputType + InputType.toString() + is not defined for + $priceRequest.getClient().getName()); } if(valueType != null) { PriceValue priceValue = new PriceValue(label, value, valueType, valueDisplay); result.put(label, priceValue); } } end -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Unterminated-String-Literal-error-tp2513857p2513857.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] how to stop rule execution
Hi, This is perhaps not the performance hit you think it is as the rules are evaluated as they are loaded. The Rete algorithm will evaluate that the rule is not null and trigger. Another consideration is that you may need to use a flatter fact-model if you're drilling down with 'from' operators and needing to trap for nulls. Aside from that, if you use Rule Flow Groups and a Rule Flow as Michael Anstis suggested:You can use a Split Connector to branch around that section of ruleflow, and a Join Connector to continue, connected either to the next ruleflow step, or to a Stop. Regards, -Trav Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) Sathya Prakash prakashagar...@gmail.com Sent by: rules-users-boun...@lists.jboss.org 17/02/2011 11:51 a.m. Please respond to Rules Users List rules-users@lists.jboss.org To Mauricio Salatino sala...@gmail.com, michael.ans...@gmail.com cc Rules Users List rules-users@lists.jboss.org Subject Re: [rules-users] how to stop rule execution I got great Idea by this discussion. If there is no way of stopping rules then I can do this null condition check before executing rules. Adding one action in JBoss ESB will solve problem. Please suggest me. Many Thanks in advance. Regards, Sathya Prakash. On Thu, Feb 17, 2011 at 2:39 AM, Sathya Prakash prakashagar...@gmail.com wrote: Thanks for your suggestion.. But let us assume i have 100 rules based on single response. When response is null then if i am doing null check in all rules then it degrades the performance. My application hits are million per day. if 1 % percent fails think about the impact. Regards, Sathya Prakash. On Thu, Feb 17, 2011 at 2:26 AM, Mauricio Salatino sala...@gmail.com wrote: you can do something like: rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution insert(Stop()) end rule Rule-01 salience 99 when not(Stop()) repsonse.getxx() then end. 2011/2/16 Sathya Prakash prakashagar...@gmail.com Hi, How to stop rule execution in technical rule, Example rule Error Check salience 100 when error condition check then System.Out.Println(Response has errors); to exit from rule execution end rule Rule-01 salience 99 when repsonse.getxx() then end. if first rule then part executed means the response is error hence we should not execute second. Is there any way to exit rule execution. Regards, Sathya Prakash. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - -- Cheers, Sathya Prakash. సత్య ప్రకాష్. -- Cheers, Sathya Prakash. సత్య ప్రకాష్. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Migrating from one environment to another
Hi Chris, You may be able to accomplish migrating a single package via the WebDAV interface and a script in your favorite language. Here are some relevant results from a quick google search: http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-guvnor/html/ch01.html#d0e1301 http://blog.athico.com/2008/05/accessing-guvnor-as-filesystem-webdav.html http://thoughts.inphina.com/2011/02/14/adding-rules-to-drools-guvnor-programmatically-with-webdav/ Hope this is helpful, Steve rules-users-boun...@lists.jboss.org wrote on 02/16/2011 05:12:45 PM: From: Chris Selwyn ch...@selwyn-family.me.uk To: rules-users@lists.jboss.org Date: 02/16/2011 05:14 PM Subject: Re: [rules-users] Migrating from one environment to another Sent by: rules-users-boun...@lists.jboss.org Thanks for the confirmation Michael. I must say that I am surprised. It seems such an obviously useful thing. Is there a reason why it does not exit? Is there a problem in building such a thing? Chris On 16/02/2011 22:33, Michael Anstis wrote: @Chris, I don't believe there is such a mechanism. @Sathya, Hijacking a previous post is unlikely to get you a reply. Thanks, Mike On 16 February 2011 22:04, Chris Selwyn ch...@selwyn-family.me.uk wrote: I am aware of the Guvnor export/import mechanism to move an entire repository and the method of importing a DRL to create a package. But what I have been looking for is a mechanism to move the entire contents of a Guvnor package (DSL, model, DSLR file, DRL files etc) from one Guvnor instance to another, so far without luck. Is there such a mechanism? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1435/3447 - Release Date: 02/16/11 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Unterminated String Literal error
throw new IllegalArgumentException(InputType + InputType.toString() + is not defined for + $priceRequest.getClient().getName()); shouldn't that be: inputType.toString() //No capital i ?? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Wed, Feb 16, 2011 at 8:13 PM, StormeHawke brian.trez...@intellidata.netwrote: throw new IllegalArgumentException(InputType + InputType.toString() + is not defined for + $priceRequest.getClient().getName()); ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Unterminated String Literal error
Esteban wrote: shouldn't that be: inputType.toString() //No capital i ?? Yes it should, thanks for catching that. Unfortunately there must still be more problems because I'm still getting the error. I'm thrown by the fact that it's telling me I've got an unterminated string literal, it's not making sense: Error: Unable to build expression for 'consequence': [Error: unterminated string literal] [Near : {... } }; drools.inse }] ^ [Line: 43, Column: 4] ' PriceResult result = new PriceResult($priceRequest.getClient(), $priceRequest.getRequestedPn()); for(InputType inputType : $priceDataRecord.keyset()) { String label = inputType.getPropertyName(); Object value = $priceDataRecord.get(inputType); ValueType valueType = null; String valueDisplay = null; switch(inputType) { //Don't add ID and PN to the result - ID is unnecessary and PN is included as a separate property case ID: case PN: break; case PACKAGE_UNIT: valueType = ValueType.INTEGER; valueDisplay = value.toString(); break; case MOQ_1: case MOQ2: valueType = ValueType.INTEGER; valueDisplay = value.toString(); break case PRICE_1: case PRICE_2: valueType = ValueType.BIG_DECIMAL; valueDisplay = value.toString(); break; case LEAD_TIME: valueType = ValueType.DOUBLE; valueDisplay = value.toString(); break; default: throw new IllegalArgumentException(InputType + inputType.toString() + is not defined for + $priceRequest.getClient().getName()); } if(valueType != null) { PriceValue priceValue = new PriceValue(label, value, valueType, valueDisplay); result.put(label, priceValue); } } insert(result); ' : [Rule name='someclient-default rule'] -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Unterminated-String-Literal-error-tp2513857p2514050.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RuleFlow only calling first RuleFlowGroup when called through drools-server
I have a RuleFlow that has some sequential steps at the beginning with a couple of Gateways later in the flow. When I run the flow through Eclipse, everything works fine and all the Rule Task nodes are processed (and the underlying rules assigned to those RuleFlowGroups are fired properly). When I try to the flow using Drools-Server 5.1, only the first RuleFlowGroup is fired. For example, I have an Initialize group followed by a Validate group. Only the rules belonging to the Initialize rule flow group get activated. None of the Initialize rules get fired. When I reversed the order in my RuleFlow, the Validate rules get fired, but not the Initialize. I haven't been able to find anything online about this issue. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/RuleFlow-only-calling-first-RuleFlowGroup-when-called-through-drools-server-tp2514244p2514244.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools 5.2.0M1 grid package
which jar contains the org.drools.grid.*? I downloaded Drools Binaries but can't find it. Using drools 5.2.0M1, I'm trying to execute spring drools test cases. Tanks -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-2-0M1-grid-package-tp2514851p2514851.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Importing multiple functions from helper in MVEL dialect
Hi folks, From the Should I be loading a JIRA or have I just mucked up? files: The following import line makes all of the functions in that class available from ctrl-space for rules marked with both Mvel and Java (and not specified) dialects import function bnz.btt.mylend.common.model.utils.DecisionHelper.*; It compiles fine, and runs fine from any class _not_ marked as dialect mvel However when I actually execute any of those functions from a rule marked with dialect mvel the following occurs: (In this example I'm calling from the DecisionHelper the static method createSystemCreditDecisionReason) ___ org.drools.runtime.rule.ConsequenceException: rule: CAP 06 Rule at org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException( DefaultConsequenceExceptionHandler.java:23) at org.drools.common.DefaultAgenda.fireActivation( DefaultAgenda.java:981) at org.drools.common.DefaultAgenda.fireNextItem( DefaultAgenda.java:918) at org.drools.common.DefaultAgenda.fireAllRules( DefaultAgenda.java:1130) at org.drools.common.AbstractWorkingMemory.fireAllRules( AbstractWorkingMemory.java:740) at org.drools.common.AbstractWorkingMemory.fireAllRules( AbstractWorkingMemory.java:706) at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules( StatefulKnowledgeSessionImpl.java:200) at bnz.btt.mylend.rules.test.MyLendingRulesTest.main( MyLendingRulesTest.java:83) Caused by: [Error: unable to access property (null parent): createSystemCreditDecisionReason] [Near : {... Unknown }] ^ [Line: 1, Column: 0] at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod( ReflectiveAccessorOptimizer.java:886) at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain( ReflectiveAccessorOptimizer.java:314) at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor( ReflectiveAccessorOptimizer.java:137) at org.mvel2.ast.ASTNode.getReducedValueAccelerated( ASTNode.java:137) at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85) at org.mvel2.compiler.CompiledExpression.getValue( CompiledExpression.java:104) at org.mvel2.MVEL.executeExpression(MVEL.java:1001) at org.drools.base.mvel.MVELConsequence.evaluate( MVELConsequence.java:87) at org.drools.common.DefaultAgenda.fireActivation( DefaultAgenda.java:972) ... 6 more ___ There is a work-around: If I import each function separately it works just fine, eg: ___ import function bnz.btt.mylend.common.model.utils.DecisionHelper.createSystemCreditDecisionReason; ___ But as far as I can tell the .* notation to import all functions from a class SHOULD work. So: Should I JIRA this, or have I just done something wrong? Thanks! Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Expose JBoss rules as webservice
Hi Mauricio, Thank you for the response. Can you please provide me a link where I can download the community version of the project? And I believe you meant project as BRMS. And since the default package of BRMS does not include the SOA runtime in it, do we need to install the SA runtime seperately to meet the purpose? Thank you Kishore http://drools-java-rules-engine.46999.n3.nabble.com/file/n2515284/JbossRules-WS.jpg -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Expose-JBoss-rules-as-webservice-tp2508401p2515284.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Expose JBoss rules as webservice
Hi Kishore, The Drools Server can be downloaded from the Drools Downloads page on the JBoss website: http://www.jboss.org/drools/downloads Cheers! -Trav Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) vkishorekumar vkishore_ku...@mahindrasatyam.com Sent by: rules-users-boun...@lists.jboss.org 17/02/2011 04:31 p.m. Please respond to Rules Users List rules-users@lists.jboss.org To rules-users@lists.jboss.org cc Subject Re: [rules-users] Expose JBoss rules as webservice Hi Mauricio, Thank you for the response. Can you please provide me a link where I can download the community version of the project? And I believe you meant project as BRMS. And since the default package of BRMS does not include the SOA runtime in it, do we need to install the SA runtime seperately to meet the purpose? Thank you Kishore http://drools-java-rules-engine.46999.n3.nabble.com/file/n2515284/JbossRules-WS.jpg -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Expose-JBoss-rules-as-webservice-tp2508401p2515284.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Expose JBoss rules as webservice
Hi Travis, Do you have any articles which explains how to expose JBoss rules as a WebService? I have searched on the internet but struggling to find out if JBoss BRMS directly supports exposing business rules as WebService, if yes how? Thanks Regards Kishore -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Expose-JBoss-rules-as-webservice-tp2508401p2515822.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools - behaviour
Hi, I am using drools - 5.0.1. In my application, knowledge session is created each time for each user request. After server startup when the user request for the first time, it's taking too much time to respond. But on subsequent request, the response time is good. Whether it could be beacause of drools classes dynamically loaded when user request it for the first time?? Seriously i am clueless in this regard... can anyone help? Thanks in advance... -Bala - Thanks, Bala -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-behaviour-tp2515862p2515862.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Expose JBoss rules as webservice
Aah, my apologies, I merely answered your immediate previous question on where to download Drools Server. Short answer: There is no JBoss BRMS-specific WebService provider. The Drools Server may possibly work with JBoss BRMS. If not then you will need to roll-your-own or hire out to someone else who can build one for you. My understanding from talking to others around is that historically most people have built their own WebService interface, so no, nothing coming out of the box as it were. I have not used Drools Server yet to know if it can be integrated with BRMS (unless someone else on this list can comment?) - given that it's there and will only cost you time, it may be worth trying. Regards, -Trav Travis Smith Analyst Programmer Development Centre BNZ DDI: +644 4746356 (Or Ext 76356) vkishorekumar vkishore_ku...@mahindrasatyam.com Sent by: rules-users-boun...@lists.jboss.org 17/02/2011 06:49 p.m. Please respond to Rules Users List rules-users@lists.jboss.org To rules-users@lists.jboss.org cc Subject Re: [rules-users] Expose JBoss rules as webservice Hi Travis, Do you have any articles which explains how to expose JBoss rules as a WebService? I have searched on the internet but struggling to find out if JBoss BRMS directly supports exposing business rules as WebService, if yes how? Thanks Regards Kishore -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Expose-JBoss-rules-as-webservice-tp2508401p2515822.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. This email was sent by the Bank of New Zealand. You can contact us on 0800 ASK BNZ (0800 275 269). Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Bank of New Zealand. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users