hi all
I have this code to upload a definition that I created on eclipse, but it simply doesn't deploy, and doesn't output any kind of error.
I'm using the following code:
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
ZipInputStream zis = null;
try {
zis = new ZipInputStream(new FileInputStream("D:\\mail.par"));
ProcessDefinition processDefinition = ProcessDefinition.parseParZipInputStream (zis);
jbpmContext.deployProcessDefinition (processDefinition);
}
catch (Exception ex) {
System.err.println(ex);
}
finally {
jbpmContext.close();
}