Order order = new Order(300);
Customer customer = new Customer("Fred", new Integer(5), new Integer(25), new Long (100000));
contextInstance.setVariable("order", order);
contextInstance.setVariable("customer", customer);
Token token = processInstance.getRootToken();
token.signal();
return id;
}
public ProcessInstance getProcessInstance(long processInstanceId) {
ProcessInstance processInstance = (ProcessInstance) jbpmContext.loadProcessInstanceForUpdate(processInstanceId);