jbpm-starters-kit-3.1.3 has sources of the web application, and uploading
servlet works fine with created by plugin archives. Here is a snip of a code:
| ZipInputStream zipInputStream = new
ZipInputStream(fileItem.getInputStream());
| JbpmContext jbpmContext =
JbpmContext.getCurrentJbpmContext();
| ProcessDefinition processDefinition =
ProcessDefinition.parseParZipInputStream(zipInputStream);
| log.debug("Created a processdefinition : " +
processDefinition.getName() );
| jbpmContext.deployProcessDefinition(processDefinition);
| zipInputStream.close();
| return "Deployed archive " + processDefinition.getName() + "
successfully";
|
How you should see, par file is a simple zip archive with some special
structure.
In the root folder should exist
gpd.xml
processdefinition.xml
processimage.jpg
in classes folder you can put necessary classes
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048603#4048603
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048603
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user