Re: [rules-users] Declarative agenda final API
I thought of using declarative agenda because for each fact I would like to know all potential rules which it could activate but I want finally to fire (execute RHS) only for the rule with highest priority. Thanks to adding rule with @activationListener(‘direct’) I am able to block all rules, add them to some list and later unblock and execute rule only the highest priority. Do you think I can use some other Drools API, features to achieve this kind of behaviour? Is it possible to unblock rule based on salience? (something like: when $a : Activation(*salience * $value) then unblock) Thanks, Marcin -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Declarative-agenda-final-API-tp3684502p3693182.html Sent from the Drools: User forum 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] Declarative agenda final API
I was able to achieve earlier described logic by adding AgendaEventListener with activationCreated and afterActivationFired to knowledge session. About Activation: it looks like in org.drools.runtime.rule.Activation there is no salience however it is in org.drools.spi.Activation. For delarative agenda API org.drools.runtime.rule.Activation needs to be used so my question how to filter Activations based on salience is still valid. Thanks, Marcin -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Declarative-agenda-final-API-tp3684502p3693555.html Sent from the Drools: User forum 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] Declarative agenda final API
Hi, declarative agenda is great feature, I'd use it but last time I looked at it (few months ago) it wasn't integrated with ruleflow (it didn't work with ruleflow-groups). Best regards, Michal 2012/1/24 Mark Proctor mproc...@codehaus.org On 24/01/2012 17:51, Marcin Bednarek wrote: Hello, Looks like my previous post was not sent to mailing list bu only to nabble forum so I am resending it. I plan to use declarative agenda API: kcontext.blockActivation, kcontext.unblockAllActivations, kcontext.cancelActivation. In Drools documentation there is written that this API is highly experimental: *This feature is off by default and must be explicitly enabled, that is because it is considered highly experimental for the moment and will be subject to change.* Could you please let me know in which version you plan to make declarative agenda API, solution final? There are no plans, it will remain experimental until we get enough good feedback and suggestions. To date you are the first person I'm aware of who is looking at it, so I think it will take a while Mark Thanks, Marcin ___ rules-users mailing listrules-users@lists.jboss.orghttps://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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Declarative agenda final API
Michal.. i don't know the internals but if RuleFlowGroup is missing I'm pretty sure that it will be very easy to add. Do you have a test case using RuleFlowGroup that we can use to implement that feature? Cheers 2012/1/25 Michal Bali michalb...@gmail.com: Hi, declarative agenda is great feature, I'd use it but last time I looked at it (few months ago) it wasn't integrated with ruleflow (it didn't work with ruleflow-groups). Best regards, Michal 2012/1/24 Mark Proctor mproc...@codehaus.org On 24/01/2012 17:51, Marcin Bednarek wrote: Hello, Looks like my previous post was not sent to mailing list bu only to nabble forum so I am resending it. I plan to use declarative agenda API: kcontext.blockActivation, kcontext.unblockAllActivations, kcontext.cancelActivation. In Drools documentation there is written that this API is highly experimental: This feature is off by default and must be explicitly enabled, that is because it is considered highly experimental for the moment and will be subject to change. Could you please let me know in which version you plan to make declarative agenda API, solution final? There are no plans, it will remain experimental until we get enough good feedback and suggestions. To date you are the first person I'm aware of who is looking at it, so I think it will take a while Mark Thanks, Marcin ___ 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 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.jugargentina.org - 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] Declarative agenda final API
I am searching throug the expert documentation, unable to find (my be my mistake)...can you please tell me where did you got this info...i am interested in it. thanks, - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Declarative-agenda-final-API-tp3681467p3688300.html Sent from the Drools: User forum 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] Declarative agenda final API
ok...i got it...this is available in Drools Introduction and General User Guide ..3.2. What is New and Noteworthy in Drools 5.3.0 thanks - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Declarative-agenda-final-API-tp3681467p3688310.html Sent from the Drools: User forum 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] Declarative agenda final API
Hello, Looks like my previous post was not sent to mailing list bu only to nabble forum so I am resending it. I plan to use declarative agenda API: kcontext.blockActivation, kcontext.unblockAllActivations, kcontext.cancelActivation. In Drools documentation there is written that this API is highly experimental: *This feature is off by default and must be explicitly enabled, that is because it is considered highly experimental for the moment and will be subject to change.* Could you please let me know in which version you plan to make declarative agenda API, solution final? Thanks, Marcin ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users