This is my code
ProcessDefinition processdefinition =ProcessDefinition.parseParResource("src/process/processmetier.par"); JbpmContext jbpmcontext = JbpmContext.getCurrentJbpmContext(); try { jbpmcontext.deployProcessDefinition(processdefinition); } finally { jbpmcontext.close(); } return mapping.findForward("existe"); }
Did you open a JbpmContext elsewhere by a call to JbpmConfiguration.createJbpmContext()? If you didn't, the reference returned by JbpmContext.getCurrentJbpmContext() will be null.