Hi Ronald,
I am sorry to hear you are having such difficulties, but glad you have reported them back to us so that we may help it fix where applicable.
I'll defer on 1) and 2) for now in case somebody with greater experience with the Eclipse interface answers, but I assume you are using WebDav?
3) should be a case of needing to import the Java classes into your rules package. This can be accomplished on the package screen - where you build the binary package. Click in a package in the left hand tree and look for an edit or attributes tab in the main panel. Exactly which you'll see depends on the version of Guvnor you are using. There is an imports section. This screen has also been notably buggy in pre-5.2 but once the imports in your rule package importing the model in your other package have been added you'll need to save.
The rule of thumb regarding saving is: if creating something in Guvnor itself you will need to save - assets that are placeholders for attachments will need to be saved once the attachment has been added. Things created outside of Guvnor (e.g. Eclipse) should not AFAIK need to be saved again as the push to Guvnor should perform this.
I would recommend you try 5.3 if possible, as a number of issues relating to what you report have been fixed.
The user guide has also been improved for 5.3 however is still not perfect. If you want to contribute back to Guvnor updates to the user guide are always a gradual introduction...:)
sent on the move
On 27 Nov 2011 18:04, "Ronald Albury" <ronalbury@gmail.com> wrote:
First - I'd like to thank everyone for their help. I am finding Guvnor less intuitive than I had hoped and I will need your continued patience and assistance to understand it.
Problem 1:
I added Sample.drl (which contains two rules) from inside Eclipse, and Guvnor split it into two rules (HelloWorld and GoodBye). I later changed Sample.drl and when I went to update it thru Eclipse the 'Update' selection was not highlighted - only the Add was available. So I added it again. Now in Guvnor I have the two rules from when I first added the file, and now the Sample.drl file itself. The Sample.drl file has the changes in it and the two rules do not.
Problem 2:
I modified the Sample.drl file inside Eclipse again and went to update it in Guvnor. It wouldn't let me update it - I could only Add. So I went ahead and did an add. I can not find the changes anywhere in Guvnor.
Problem 3:
When I go to validate a rule in Guvnor it complains that it has an error importing com.scs.test.Message. That is one of the classes in the PoJo jar file that I have in Guvnor. I wanted the rules to be in com.scs.test.rules and the Java code to be in com.scs.test. Can someone explain to me where I have to put the Model, and if the Java classes need to have the same package as the rules.
I am also having general problems about when to Save things. I originally thought that when I uploaded something into Guvnor that was enough ... but it appears that (at least under some conditions) I have to Save as well. Do I have to Save things I've uploaded from Eclipse too? Guvnor never seems to have what I think it should have.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users