graphSession.saveProcessDefinition(processDefinition);
// Get All Process Definitions
List l = graphSession.findLatestProcessDefinitions();
// Get the arbitrarily first Process Definition
ProcessDefinition pd = (ProcessDefinition) l.get(0);
// Load it again, individually
ProcessDefinition pd2 = graphSession.loadProcessDefinition(pd.getId());
// Create an instance of the Process Def with Task
ProcessInstance processInstance = new ProcessInstance(pd2);
TaskInstance jbpmTaskInstance = processInstance.getTaskMgmtInstance().createStartTaskInstance();