[jboss-user] [JBoss jBPM] - Re: Process Definition Deployment using ZipInputStream
sushantgupta402
do-not-reply at jboss.com
Thu Jul 30 09:50:33 EDT 2009
try the code below
================================
public static void main(String[] args) {
ProcessEngine processEngine = new Configuration()
.buildProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
FileInputStream fip;
try {
fip = new FileInputStream("C:\\JBPMV4\\bin\\TestProcess.jpdl.zip");
ZipInputStream zip = new ZipInputStream(fip);
String deploymentDbid = repositoryService.createDeployment().addResourcesFromZipInputStream(zip).deploy();
System.out.println("Deployment Db Id: " + deploymentDbid);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246997#4246997
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246997
More information about the jboss-user
mailing list