String getScriptLocation(Notification notification){
    String scriptName = null;
    String scriptDir = null;

    if( null == notification || null == notification.DispatchProperties )
        return null;

    scriptName = notification.DispatchProperties.get(DISPATCH_PROPERTY_SCRIPT_FILENAME_KEY);
    if( null == scriptName) {
        LOG.warn("the {} configuration property was not found for dispatching notification",
                DISPATCH_PROPERTY_SCRIPT_FILENAME_KEY);
        return null;
    }

    scriptDir = m_configuration.getDispatchScriptDirectory();

    return scriptDir + File.separator + scriptName;
  }
Gets the dispatch script location from ambari.properties and notification.

@param notification
@return the dispatch script location.If script filename is {@code null},
        {@code null} will be returned.
ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AlertScriptDispatcher.java