JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
TestSchedulerService testSchedulerService = (TestSchedulerService) jbpmContext.getServices().getSchedulerService();
ProcessInstance processInstance = new ProcessInstance(processDefinition);
try {
processInstance.signal();
processInstance.suspend();
jbpmContext.save(processInstance);
} finally {
jbpmContext.close();
}