5 Replies Latest reply on May 23, 2007 6:28 AM by kukeltje

    xml export

    msandoz

      hi im putting together an alternative java-based editor and would like to know if there are any xml export capabilities recommended. I am aware of the deprecated JpdlXmlWriter class but would prefer not to use a deprecated class.

      I also came across the org.jbpm.gd.jpdl.model.xml adapters in the existing editor. So my question is: what is the preferred method of dealing with and manipulating the domain objects - nodes, processes etc, and then serializing them to xml for export?

        • 1. Re: xml export
          kukeltje

          regarding the deprecated class: correct, since the core-engine now stores the process in xml format as well when deploying, converting back is no longer needed

          regarding the manipulation of the domain objects, isn't that you design choise if you beuild a new editor?

          • 2. Re: xml export
            msandoz

             

            "kukeltje" wrote:
            regarding the deprecated class: correct, since the core-engine now stores the process in xml format as well when deploying, converting back is no longer needed

            regarding the manipulation of the domain objects, isn't that you design choise if you beuild a new editor?


            hi thanks for the info. My motivation is that I'd like to concentrate on programmatically creating process definitions and then having them exported from my editor as xml for later submission. is there a way to do that?

            Here's my understanding of the use case:

            1. Create process definitions in GUI editor, complete with actions, etc.
            2. Store on local file system in xml while its being worked on
            3. When ready to instantiate, submit the xml to the engine.
            4. Get feedback from the engine on run state etc.

            if my assumption is correct, it seems theres a step needed to create the xml. does the engine do that? That seems to be how the existing editor works. Is that correct?

            Thank You,

            Matthew

            • 3. Re: xml export
              kukeltje

              the editor creates the xml

              • 4. Re: xml export
                msandoz

                 

                "kukeltje" wrote:
                the editor creates the xml


                Does the source come with the existing editor? I'd just like to use whats already there instead of having to reinvent the wheel.



                • 5. Re: xml export
                  kukeltje

                  yes