This content has been marked as final.
Show 1 reply
-
1. Re: JBPM mail using JSF expressions, how?
dsalam Jul 15, 2010 5:29 PM (in response to dsalam)... And this is my class that deploys the process and starts job executions
public void execute() throws Exception
{
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("TimerProcess/processdefinition.xml");
JbpmContext jbpmContext= JbpmConfiguration.getInstance().createJbpmContext();
try{
// Create an instance of the process definition.
ProcessInstance instance = processDefinition.createProcessInstance();
jbpmContext.deployProcessDefinition(processDefinition);
instance.signal("trSetTimer");
JobExecutor jobExecutor = jbpmContext.getJbpmConfiguration().getJobExecutor();
if (jobExecutor==null) {
throw new JbpmException("no job executor configured in resource ");
}
jobExecutor.start();
jbpmContext.save(instance);
}finally{
jbpmContext.close();
}
}
}