4 Replies Latest reply on May 25, 2006 2:33 AM by itsmeprash

    Create ProcessDefinition Manually

    itsmeprash

      Hi,

      I would like to create the ProcessDefinition xml file manually through a web interface instead of the graphical editor (as plugin for eclipse) provided by jbpm.

      Has anybody tried doing this? how did you approached this? Anybody using a different approach other than graphical editor.

      Thanks
      Prash

        • 1. Re: Create ProcessDefinition Manually
          kbarfield

          There are a couple of options here:

          1. There is a source tab in the graphical editor. You can manually enter the process here, and then deploy it through eclipse.

          2. Use your favorite text editor to create the process, then deploy using Ant.

          3. Dynamically create the process in your Java business code and deploy it from your Java business code.

          Kevin

          • 2. Re: Create ProcessDefinition Manually
            itsmeprash

            Thanks for your reply kevin.

            I would like create the ProcessDefinition and Tasks as i go through the WebApplication using the 3rd option you mentioned.

            Program ----[has multiple]---Projects------[has multiple]----Tasks.

            Projects is same as ProcessDefn. Program is basically used to group multiple Projects as a collection.

            Something what a JBPMContext.deployProcessDefinition would do. Has anybody tried doing this? I see so many people using JBPM and asking questions here.

            What is your way of creating a process and tasks?

            Thanks
            Prash

            • 3. Re: Create ProcessDefinition Manually
              kbarfield

              I believe most folks are defining and deploying their processes in the Eclipse tool or through XML files, but you can do it the way you are describing. Please take a look at the tutorial section of the jBPM docs. There are several examples of dynamically building processes in there.

              http://docs.jboss.com/jbpm/v3/userguide/tutorial.html

              Kevin

              • 4. Re: Create ProcessDefinition Manually
                itsmeprash

                Thank you Kevin.