just do the following:
JbpmContext ctx = conf.createJbpmContext();
GraphSession session = ctx.getGraphSession();
String processName = TheNameOfYourProcess;
ProcessDefinition defTest = session.findLatestProcessDefinition(processName);
session.deleteProcessDefinition(defTest.getId());
ctx.close();
and that's it.
Do not forget to replace the TheNameOfYourProcess for the name of your process.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980347#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...