PersistedComplexParam rcp = (PersistedComplexParam) p;
int nRet = rcp.getResult();
assertEquals(startValue + 1, nRet);
// Get the workflow task that is associated with our process.
WorkflowTaskCriteria criteria = new WorkflowTaskCriteria();
criteria.setTokenContext(token);
Iterator it = getProcessFacade().getworkflowTasks(criteria);
assertTrue(it.hasNext());
WorkflowTask task = (WorkflowTask) it.next();
TokenContext taskToken = task.getTokenContext();