public class CreateRelationModifyStateService extends CreateService {
@Override
public Entity getEntity(Map params) throws Exception {
RelationWithModifyStateTask relation = new RelationWithModifyStateTask();
String eventId = (String) params.get(ParamsConst.EVENT);
Event event = getEvent(eventId);
relation.setEvent(event);
relation.setFromState((String) params.get(ParamsConst.FROM_STATE));
relation.setToState((String) params.get(ParamsConst.TO_STATE));
setTareas(params, relation);
return relation;
}