8 Replies Latest reply on Sep 13, 2005 3:45 AM by Alex Kachanov

    Process Definition XML file

    Alex Kachanov Newbie

      I have created a process definition XML file, uploaded it it jBPM, everything is running ok.

      Now the question: How can I get this XML file back from the jBPM system, so I could review it, edit and update if needed?

        • 1. Re: Process Definition XML file
          Ronald van Kuijk Master

          with the api, look at the javadoc for this

          I would not use jBPM iteslf for version management though. Since you probably also need to version lots of other things. I'd use normal cvs/svn for that

          Ronald

          • 2. Re: Process Definition XML file
            Alex Kachanov Newbie

            please give me a hint about javadoc
            I don't care about versions etc.

            • 3. Re: Process Definition XML file
              Tom Baeyens Master

              deploying a process is a one directional operation. meaning that you cannot generate an xml file or a process archive file from the database.

              you are one of the first requests that we get for this feature. that is why it is not yet implemented. can you elaborate on why you want to do that ? then we might reconsider.

              regards, tom.

              • 4. Re: Process Definition XML file
                Alex Kachanov Newbie

                 

                "tom.baeyens@jboss.com" wrote:
                deploying a process is a one directional operation. meaning that you cannot generate an xml file or a process archive file from the database.

                you are one of the first requests that we get for this feature. that is why it is not yet implemented. can you elaborate on why you want to do that ? then we might reconsider.

                regards, tom.


                I'm sorry. This is not true. Surprised to hear that from jBPM developers.

                org.jbpm.jpdl.xml.JpdlXmlWriter allows to do this. Though it does not create a complete XML file of process definition, I managed to patch it to get the result I wished.

                • 5. Re: Process Definition XML file
                  Tom Baeyens Master

                  i started the work on the xml writer because we thought we would need it for the process designer. it turned out that the graphical process designer doesn't need that capability. so it was left unfinished.

                  i intend to remove it unless can make a case why it should be kept and takes ownership. finishing, documenting and maintaining it will not be a trivial task.

                  can you make your case as to why you think it should be kept in and completed ?

                  regards, tom.

                  • 6. Re: Process Definition XML file
                    Alex Kachanov Newbie

                     

                    "tom.baeyens@jboss.com" wrote:
                    can you make your case as to why you think it should be kept in and completed ?regards, tom.


                    In my application I create a list of process definitnions, then administrator selects the process and views information of a particular process definition.

                    If he wants he can see the XML file of the process definition and edit it in place in textarea box and update the definition creating new version of the process definition.

                    It is good for debugging and testing process definitions in place, right in web-application, on a machine without any eclipses, plugings and IDE. Using this interface I can massage proccess definitions whatever I like without waiting for the IDE to be finished completely.

                    p.s. IDE seems to be buggy. Editing the source code of the process definition in IDE ruins the picture of the process definition.

                    • 7. Re: Process Definition XML file
                      Tom Baeyens Master

                      i think cvs or subversion is more appropriate that purpose. such features are not in the scope of jbpm.

                      regards, tom.

                      • 8. Re: Process Definition XML file
                        Alex Kachanov Newbie

                         

                        "tom.baeyens@jboss.com" wrote:
                        i think cvs or subversion is more appropriate that purpose. such features are not in the scope of jbpm.
                        regards, tom.

                        I'm not going to use cvs or subversion for this small feature. It's like using nuclear reactor to heat a sheobox.