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.
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?
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.
Thank you Kevin.