private UndoableEdit createEdit(OperationWrapperNode from, EmailMessage to, RouteType routeType) {
return new NextEmailEdit(controller, from.getDataObject(), routeType, to);
}
private void updateFlow(OperationWrapperNode from, EmailMessage to, RouteType routeType) {
EmailMessageId msgId = (to != null ? to.getID() : null);
if (routeType == RouteType.SUCCESS) {
from.getDataObject().setSuccessEmailId(msgId);
} else {
from.getDataObject().setFailureEmailId(msgId);
}