6 Replies Latest reply on May 17, 2011 4:27 AM by freeliuade freeliuade

    how to switch package

    freeliuade freeliuade Newbie

      Hi,

          I'm a fresh in JBPM, so my questions may stupid

       

          Q1: I created a new package "testPKG" in http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html, and added a process in it. how to let BPMN console -> Processes -> Process overview -> process navigation can show the model in the "testPKG"

       

          Q2: I added some processes in default package, and then deleted them. (by eclipse plugin, using context menu -> Guvnor -> add/delete), then I try to re-add same process, but a message box show the process already exist, seems there are some history data. how to clean the history and let re-add can succ?

       

       

          thanks!

          -hyliu.

        • 1. Re: how to switch package
          Chris Melas Apprentice

          Hello,

           

          Q1: In order to use a different package you have to modify accordingly all the changeset.xml you can find in gwt-console-server.war libs i.e. in jbpm-gwt-corexxxx.jar, jbpm-gwt-graphxxxx.jar

           

          Q2: If you want to delete stuff from guvnor delete from eclipse or webdav  client. Then check in guvnor if they exist in guvnor's archives because after delete they are placed within the archives, Administration/Archive ,and delete the items that you want to replace. There is a specific situation when you get this message (i believe it's a bug) if you add an ftl file or maybe any other file that has the same name as the bpmn file. For example if you create a process test.bpmn and you set in its properties id = test and then you want to create an initial form for this process i.e. test.ftl , then forget it , you will get the message you mentioned , so this might happen with any file having same name regardless the extensions (i'm not sure haven't checked) .

          • 2. Re: how to switch package
            freeliuade freeliuade Newbie

            Hi, thanks for your quickly response. 

             

            after remove asserts in archive, the process can be add again.

             

            another Q3: now I added a process to defaultPackage, and built package has successful. but in bpm console, I can't see the added process in process view. why?

             

            BTW, is there any doc to guide how to model and run a process step by step?

            • 3. how to switch package
              Chris Melas Apprentice

              I'm glad everything worked for you.

               

              Regarding Q3 the theory is that you have to set in the changeset.xml, entries for both packages

              • 4. how to switch package
                freeliuade freeliuade Newbie

                Hi,

                I didn't change changeset.xml yet, since the process can be re-add to default package now, So I don't need to switch to another package now.

                 

                I just added process to default package and build the default package, and I expecting the new added process can visiuable in bpm console. but it didn't.

                • 5. how to switch package
                  Chris Melas Apprentice

                  Hello,

                  By default the changeset.xml points at the defaultPackage of guvnor. In Guvnor you can create as many packages as you want and you can add processes to those packages and build them normally, without touching the changeset.xml. The changeset.xml is basically used by the gwt-console-server (therefore the jbpm-console as well) in order to look for/use the resources specified in the changeset.xml, hence if you dont specify the new or modified packages in the changeset.xml files the jbpm-console will never look for those packages and you will not see any processes.

                  • 6. how to switch package
                    freeliuade freeliuade Newbie

                    after restart machine and clean jboss data/tmp/work/log (I don't know which way fixed the problem), I can saw the process now. thank you.