2020-07-28

[AgentFlow]呼叫WebService卻無值

 需要在第一關的前置動作放入以下程式

當呼叫WebService後,二維陣列args是放到global

var ati = MyTask.getArtInstance();
var rootID = MyTask.getRootID();
var ght = Server.getGlobals(rootID);
try{
if (ght.size()>0){

   var vc1 = ght.get("txtMapName");
   var vc2 = ght.get("txtMapID");
   var vc3 = ght.get("txtNote");
  
   ati.setAppValue("txtMapName",ght.get("txtMapName"));  
   ati.setAppValue("txtMapID",ght.get("txtMapIDson"));
   ati.setAppValue("txtNote",ght.get("txtNote"));
  
   Server.addInfoLog(" 開啟參數 =" + vc1);
   Server.addInfoLog(" 開啟參數 =" + vc2);
   Server.addInfoLog(" 開啟參數 =" + vc3);
  
}
}catch (err){
    Server.addInfoLog("開啟參數 Err log=" + err);
}  
Server.deleteGlobals(rootID);

沒有留言:

張貼留言