public void deploy() {
JbpmContext jbpmContext = this.getCurrentJbpmContext();
try {
ProcessDefinition pd = ProcessDefinition.parseXmlResource("com/pca/claims/workflow/chart/claims/processdefinition.xml");
jbpmContext.deployProcessDefinition(pd);
} catch (DelegationException e) {
if (e.getCause() instanceof BaseRuntimeException) {
BaseRuntimeException be = (BaseRuntimeException) e.getCause();
throw be;
}
throw e;
} finally {
jbpmContext.close();
}
}
JbpmContext jbpmContext = this.getCurrentJbpmContext();
try {
ProcessDefinition pd = ProcessDefinition.parseXmlResource("com/pca/claims/workflow/chart/claims/processdefinition.xml");
jbpmContext.deployProcessDefinition(pd);
} catch (DelegationException e) {
if (e.getCause() instanceof BaseRuntimeException) {
BaseRuntimeException be = (BaseRuntimeException) e.getCause();
throw be;
}
throw e;
} finally {
jbpmContext.close();
}
}