<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 19/12/2011 16:04, Michael Anstis wrote:
<blockquote
cite="mid:CAAG9P0vzf5-tf6OTzgKDuR3GugX8YuE5wiOLLrf9DUxS1UUBUg@mail.gmail.com"
type="cite">You are not mistaken.<br>
<br>
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 "getters" and "setters" for them.<br>
</blockquote>
It probably looks like we should support only getters though, for
existing beans. We just need to be intelligent enough not to allow
the setter to be used in the IDE.<br>
<br>
Toshiya: Sounds like a great introduction task, you up for the
challenge?<br>
<br>
Mark<br>
<blockquote
cite="mid:CAAG9P0vzf5-tf6OTzgKDuR3GugX8YuE5wiOLLrf9DUxS1UUBUg@mail.gmail.com"
type="cite">
<br>
<div class="gmail_quote">On 19 December 2011 05:47, Toshiya
Kobayashi <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:tkobayas@redhat.com">tkobayas@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
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".<br>
<br>
1. | declare TestPojo<br>
2. | @role(value = event)<br>
3. | end<br>
<br>
But if some fields of the POJO class have only getter methods,
Guided Rule Editor won't list those fields in "Modify
constraints" popup. (if a field has a setter method, it will
be listed)<br>
<br>
public class TestPojo {<br>
private String name;<br>
public TestPojo() {}<br>
public String getName() { return name; }<br>
// public void setName(String name) { <a
moz-do-not-send="true" href="http://this.name"
target="_blank">this.name</a> = name; }<br>
}<br>
<br>
Am I missing something? If it's not an expected behaviour, I
will raise a JIRA.<br>
<br>
Cheers,<br>
Toshiya<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>