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

Toshiya Kobayashi tkobayas at redhat.com
Mon Dec 19 00:47:49 EST 2011


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 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)

public class TestPojo {
	private String name;
	public TestPojo() {}
	public String getName() { return name; }
//	public void setName(String name) { this.name = name; }
}

Am I missing something? If it's not an expected behaviour, I will raise a JIRA.

Cheers,
Toshiya



More information about the rules-users mailing list