4 Replies Latest reply on Jul 20, 2011 9:23 PM by tob1as

    Guvnor - Eclipse integration

    tob1as

      Hello,

       

      I was trying to import the evaluation example from eclipse into guvnor, as shown here:

       

      http://people.redhat.com/kverlaen/GuvnorOryxIntegration.swf

       

      However, in eclipse I do not get the guvnor reference if I click on a bpmn file:

       

      Untitled.png

       

      And in guvnor itself I can not see the sample folder under the default package.

       

      These are my eclipse guvnor settings:

       

      guvnor.PNG

       

      Do I have to configure something that is not mentioned in the installation documentation?

       

      Best regards,

      Tobi

        • 1. Re: Guvnor - Eclipse integration
          tomarenz

          > However, in eclipse I do not get the guvnor reference if I click on a bpmn file:

          I had the same problem then I discovered that you need to create a guvnor connection from the guvnor window.

          Then the guvnor menu item appears on any bpm file.

          • 2. Re: Guvnor - Eclipse integration
            michael.wagner

            Hi,

             

            yes you are right. I had the same issue. Looking at the plugin.xml in org.guvnor.tools_5.2.0.Final.jar we find:

             

              <action class="org.guvnor.tools.actions.UpdateAction"
                      enablesFor="1"
                      id="org.guvnor.tools.actions.updateaction"
                    label="%action.popup.update"
                    menubarPath="org.guvnor.tools.popupmenu/group1">
              </action>
              <visibility>
                 <or>
                    <systemProperty
                          name="org.guvnor.tools.repositoryExist"
                          value="true">
                    </systemProperty>
                    <objectState
                          name="projectPersistentProperty"
                          value="org.drools.guvnor.guvnorControlled=true">
                    </objectState>
                 </or>
              </visibility>

             

            So the popup menu entry is only available if a repository connection exists OR a second option which I dont understand.

             

            Must have changed since the video was recorded.

             

            regards,

             

            Michael

            1 of 1 people found this helpful
            • 3. Re: Guvnor - Eclipse integration
              tsurdilovic

              The video you are looking at is pretty old and we have improved the guvnor/oryx designer integration alot since. Check out some of the latest videos here: http://blog.athico.com/search?q=oryx

               

              Yes, you do need to fist create the connection with your guvnor instance in the guvnor perspective before adding assets to it.

              1 of 1 people found this helpful
              • 4. Re: Guvnor - Eclipse integration
                tob1as

                Thanks guys. I got it.

                Window->Open Perspective -> Guvnor Repository exploring.

                 

                This is how it looks:

                guvnor repository.PNG

                 

                Here a more detailed tutorial: http://docs.jboss.org/drools/release/5.2.0.Final/drools-guvnor-docs/html/ch12.html