Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-21 Thread Toshiya Kobayashi
Okay, I've raised a JIRA. https://issues.jboss.org/browse/GUVNOR-1792 I hope I can make a pull request soon :) Cheers, Toshiya - Original Message - From: Michael Anstis michael.ans...@gmail.com To: Rules Users List rules-users@lists.jboss.org Sent: Wednesday, December 21, 2011 6:29:55

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-21 Thread Michael Anstis
Thanks Toshiya. If you don't get a chance to make a pull request don't worry, I will pick up in the New Year. From the information you've given the addFieldsForType method should perform a merge and not an overwrite. 2011/12/21 Toshiya Kobayashi tkoba...@redhat.com Okay, I've raised a JIRA.

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-20 Thread Toshiya Kobayashi
Thanks Michael and Mark. If the member has a getter it is available in the LHS (=Guided Rule Editor lists it in Modify constraints popup) Got it. I see it's true with a basic uploaded Pojo. But, hmm, in my case, it's not. If I annotate the Pojo in New Declarable Model, the getter-only-member

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-20 Thread Michael Anstis
Hi, It sounds like a bug then :) Can you please raise a JIRA (https://issues.jboss.org/browse/GUVNOR) and assign to me? I won't be looking at coding a fix until the New Year (vacation) but if you want to submit a GIT pull request I'll happily take a look. With kind regards, Mike 2011/12/20

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-19 Thread Michael Anstis
You are not mistaken. For POJO models we use reflection (class.getMethods) to determine whether a Type's methods members are available in the LHS or RHS or both, according to Java Bean conventions. Declarative models have their members available in both the LHS and RHS by default as we generate

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-19 Thread Mark Proctor
On 19/12/2011 16:04, Michael Anstis wrote: You are not mistaken. For POJO models we use reflection (class.getMethods) to determine whether a Type's methods members are available in the LHS or RHS or both, according to Java Bean conventions. Declarative models have their members available in

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-19 Thread Michael Anstis
I'm not clear on what you are saying. We reflect the methods of existing beans:- - If the member has a getter it is available in the LHS - If the member has a setter it is available in the RHS - If the member has a getter and a setter it is available in both the LHS and RHS Members

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-19 Thread Mark Proctor
Sorry I misread what you said. I thought you said that beans are only usable in the IDE if it has both a getter and a setter - my misundestanding. M On 19/12/2011 16:19, Michael Anstis wrote: I'm not clear on what you are saying. We reflect the methods of existing beans:- * If the member

[rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-18 Thread Toshiya Kobayashi
Hello, In Guvnor 5.3.0, I can use CEP feature support in Guided Rule Editor after uploading a class by Upload POJO Model jar and annotating it in New Declarable Mode. 1. | declare TestPojo 2. | @role(value = event) 3. | end But if some fields of the POJO