Package com.sogou.qadev.service.cynthia.service

Examples of com.sogou.qadev.service.cynthia.service.ScriptAccessSession


      modifyInScript = true;
    }

    try
    {
      ScriptAccessSession scriptAccessSession = createScriptAccessSession();
      Script[] scriptArray = scriptAccessSession.queryScripts(data, time, this , template,flow);
     
      if (scriptArray == null || scriptArray.length == 0)
        return new Pair<String, Boolean>(null, true);

      Single<Boolean> continueable = new Single<Boolean>();
View Full Code Here


    Flow flow = dataAccessSession.queryFlow(template.getFlowId());
    if (flow == null) {
      return false;
    }
   
    ScriptAccessSession scriptAccessSession = dataAccessSession.createScriptAccessSession();
    Script[] scriptArray = scriptAccessSession.queryScripts(data, ExecuteTime.afterQuery, dataAccessSession , template,flow);
    if (scriptArray == null || scriptArray.length == 0)
      return true;

    Single<Boolean> continueable = new Single<Boolean>();
    continueable.setFirst(true);
View Full Code Here

   * @return
   */
  protected boolean executeInternal(String id,String username, String xml){
    try{
      DataAccessSession das = DataAccessFactory.getInstance().createDataAccessSession(username, ConfigUtil.magic);
      ScriptAccessSession sas = das.createScriptAccessSession();
      Document doc = XMLUtil.string2Document(xml, "UTF-8");
      Node rootNode = XMLUtil.getSingleNode(doc, "root");
     
      List<Node> scriptIdNodeList = XMLUtil.getNodes(rootNode, "scriptId");
      for(Node scriptIdNode : scriptIdNodeList){
        UUID scriptId = DataAccessFactory.getInstance().createUUID(scriptIdNode.getTextContent());
        Script script = sas.queryScript(scriptId);
        if(script == null){
          continue;
        }
        Interpreter bsh = new Interpreter();
        bsh.setClassLoader(this.getClass().getClassLoader());
View Full Code Here

TOP

Related Classes of com.sogou.qadev.service.cynthia.service.ScriptAccessSession

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.