[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1929) In the then part (RHS) of guided rule editor, it is not possible to affect a value with variable name of the when part (LHS) and not possible to call a method in the new created instance
Nicolas Heron (JIRA)
jira-events at lists.jboss.org
Fri Mar 20 10:50:23 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Heron updated JBRULES-1929:
-----------------------------------
Attachment: patch1929-5.txt
here is a list of modified class
1) creation of class /drools-core/src/main/java/org/drools/util/asm/ClassMethodInspector.java
2) Modification of /drools-compiler/src/main/java/org/drools/guvnor/server/rules/SuggestionCompletionLoader.java
to take in account the call of ClassMethodInspector
there was a bug (not working the insertnewfact widget)
3) Modification of /drools-compiler/src/main/java/org/drools/guvnor/client/modeldriven/SuggestionCompletionEngine.java
to add the method list of all facts in the lhs and method attributes
4) modification of /drools-guvnor/src/main/java/org/drools/guvnor/client/modeldriven/ui/ActionCallMethodWidget.java
to now take in account the new suggestions features above
You can specify a method you want to call on the fact
This widget has a new method editor
It is not possible to add or remove a parameter
5) creation of class /drools-guvnor/src/main/java/org/drools/guvnor/client/modeldriven/ui/MethodParameterValueEditor.java
6) modification of class /drools-guvnor/src/main/java/org/drools/guvnor/client/modeldriven/ui/ActionValueEditor.java
There was a bug if there was more than one bound variable for the same fact type, two buttons were displayed when setting a variable of a newly or existing fact
7) modify class /drools-guvnor/src/main/java/org/drools/guvnor/client/modeldriven/ui/RuleModeller.java
so that only boundVariable with method can be choosen in the list
8) modification of /drools-compiler/src/main/java/org/drools/guvnor/server/util/BRDRLPersistence.java
to modify the code generation for function call
the last error is when a function has one parameter, il is in the list of setters !
> In the then part (RHS) of guided rule editor, it is not possible to affect a value with variable name of the when part (LHS) and not possible to call a method in the new created instance
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBRULES-1929
> URL: https://jira.jboss.org/jira/browse/JBRULES-1929
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-guvnor
> Affects Versions: 5.0.0.M4
> Reporter: Nicolas Heron
> Assignee: Toni Rikkola
> Attachments: CallMethod.pdf, patch1929-2.txt, patch1929-3.txt, patch1929-5.txt, path1929_1.txt, Picture2.jpeg, PictureCallMethode.jpeg, PictureCallMethode.jpeg, suggestion.jpg, View1.png, View2.png
>
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> In drl, the rule would look like this :
> when
> p : Person()
> c : Car (owner == p)
> then
> Insurrance i = new Insurrance();
> i.setPerson(p);
> c.addInssurance(i);
> end
> This cannot be done with the guided editor in Guvnor for "i.setPerson(p);"
> and also, il is not possible to call a metthod on a (LHS) defined fact outside the variables set/get methods "c.addInssurance(i);"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list