function ajaxSetNextStationAction()
 {
     $routingId = (int) $this->_getParam('routingId');
     $personId = (int) $this->_getParam('personId');
     $nextStationId = $this->_getParam('stationId');
     $routing = new Routing();
     $routing->routingId = $routingId;
     $routing->populate();
     //used when creating a new route entry but not from an appointment
     if ($personId > 0) {
         $routing->personId = $personId;
     }
     $routing->routingId = '';
     $routing->fromStationId = $routing->stationId;
     $routing->stationId = $nextStationId;
     $routing->timestamp = date('Y-m-d H:i:s', strtotime('now'));
     $routing->checkInTimestamp = '0000-00-00 00:00:00';
     $routing->persist();
     $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json');
     $json->suppressExit = true;
     $json->direct(array(true));
 }