4 Replies Latest reply on Jul 28, 2009 2:15 PM by waterloo

    Generating JPDL Programmatically

    waterloo

      Hi all,

      I need to parse an old language and generate a jPDLfile so that jBPM can execute it. Is there a way to create jPDL files programmatically? Should I just use any API for that?

      cheers

        • 1. Re: Generating JPDL Programmatically
          kukeltje

          Creating jPDL 'programatically'? Sure, no problem. Use Java, C++, Perl, Php, or whatever language you want. Even XSLT is possible if the original old language is xml. jPDL is xml and so you can create that anyway you want.

          Using the API is another option, but less flexible in further versioning etc.

          • 2. Re: Generating JPDL Programmatically
            madihaanees

            What I found from your post that you are looking for creating workflow by using API rather than eclipse designer.

            I had done this before creating workflow by using jboss jBPM API. But be reminded that the code I am posting is based on jBPM 3.x.

            please follow my blog. I am posting the link for your continence

            http://aneesjavaee-osgi.blogspot.com/2008/08/creating-jbpm-workflow-programmatically.html

            Regards

            • 3. Re: Generating JPDL Programmatically
              swatis

              which one is this old language? if its XML then as Ronald suggested you can use XSLT, java XML API like jdom to generate jpdl(jpdl is nothing but XML file). So you need to understand both formats. Basically you need converter which will do conversion.

              • 4. Re: Generating JPDL Programmatically
                waterloo

                Hi all,

                Many thanks for the replies.
                I believe generating the XML will be easier but I believe I'll struggle with the variables.

                Just to give you more details, I have an old sequential language that I want to add some process features and I believe jBPM is the way to go.
                I manage to do some tests with Shark/XPDL in the past but it was so hard to get everything running that I gave up.

                cheers