JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
//Extract a process definition from the processdefinition.xml file.
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource(PROCESS_DEF_XML);
assertNotNull(processDefinition);
//Create an instance of the process definition.
jbpmContext.deployProcessDefinition(processDefinition);
ProcessInstance processInstance = jbpmContext.newProcessInstance("testTimer");
processInstanceId = processInstance.getId();
assertTrue(
"Instance is in start state",
"start".equals(processInstance.getRootToken().getNode().getName()));