Package it.eng.spagobi.utilities.scripting

Examples of it.eng.spagobi.utilities.scripting.ScriptManager


  public IDataStore load(IDataReader dataReader) {
    logger.debug("IN");
    String data = null;
    IDataStore dataStore = null;
    ScriptManager sm = new ScriptManager();
    if(predefinedGroovyScriptFileName!=null && !predefinedGroovyScriptFileName.equals("")){
      sm.setPredefinedGroovyScriptFileName(predefinedGroovyScriptFileName);
    }
    if(predefinedJsScriptFileName!=null && !predefinedJsScriptFileName.equals("")){
      sm.setPredefinedJsScriptFileName(predefinedJsScriptFileName);
    }
   
    try {
      if(statement != null){
        logger.debug("Statement "+statement);
        data = sm.runScript(statement, languageScript);
      }
      else{
        logger.debug("Use script (no parameters) "+script);
        data = sm.runScript(script, languageScript);
      }
      // check if the result must be converted into the right xml sintax
      boolean toconvert = checkSintax(data);
      if(toconvert) {
        data = convertResult(data);
View Full Code Here


    Binding bind = ScriptManager.fillBinding(attributes);

    //Substitute profile attributes with their value
    String cleanScript=substituteProfileAttributes(getScript(), attributes);
    setScript(cleanScript);
    ScriptManager sm = new ScriptManager();
    result = sm.runScript(getScript(), bind, languageScript);  
    // check if the result must be converted into the right xml sintax
    boolean toconvert = checkSintax(result);
    if(toconvert) {
      result = convertResult(result);
    }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.utilities.scripting.ScriptManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.