... And this is my class that deploys the process and starts job executions
public void execute() throws Exception
{
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("TimerProcess/Tprocessdefinition.xml");
JbpmContext jbpmContext= JbpmConfiguration.getInstance().createJbpmContext();
System.out.println("------ parsing");
try{
// Create an instance of the process definition.
ProcessInstance instance = processDefinition.createProcessInstance();
System.out.println("------------ deploying process");
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();
}
}
}