recurredOffer = getPersistenceManager().makePersistent(recurredOffer);
trader.validateOffer(recurredOffer);
// RecurredOffer has the same workflow definition as other offers,
// thus we persist a workflow from the assignment to Offer.class
ProcessDefinitionAssignment processDefinitionAssignment = (ProcessDefinitionAssignment) getPersistenceManager().getObjectById(
ProcessDefinitionAssignmentID.create(Offer.class, tradeSide));
processDefinitionAssignment.createProcessInstance(null, user, recurredOffer);
return recurredOffer;
}
}