Hi, you should check the repositoryService, I'm using a servlet to deploy processes with this code. Where f is a java.io.File with the .jpdl.xml. Although there are other useful methods.
I don't need code ! This tool is ment to be used by a business analyst to model processes. You don't imagine that, after using a graphical tool to model processes, the business analyst will start writing Java code to deploy them ! Why having developed a graphical tool in this case ? Why not writing the XML with notepad as It is not more difficult to write XML then Java code ? If you're saying that this is the only way to deploy a business archive then this approach is simply non-sense.
Note that jBPM 4.x is not finished yet and it is mainly developed by community at the moment so please be patient. Contribution is always welcome
I have done some work on deployment through BPM console but it did not make it to the current release, if you like you could apply the patch and build it from source. jBPM integration part should be already included so it is a matter only of BPM console.
Here is the BPMC jira issue. https://jira.jboss.org/browse/BPMC-58
Comments are welcome too.