]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/NewLauncherApplet.js
Change the generated XML for the execution message
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / argeo-ria-lib / slc / class / org / argeo / slc / ria / NewLauncherApplet.js
index 037e7b79a617417f27c321d35ef504f1e35e78f6..e1297fcd4e68845a62c45bd24ba87485ab760abb 100644 (file)
@@ -519,8 +519,19 @@ qx.Class.define("org.argeo.slc.ria.NewLauncherApplet",
         */
        executeBatchOnAgent : function(agentUuid){
                //var xmlString = agentUuid + this.currentBatchToXml();
-               var xmlString = "<slc:executionSpecs>"+this.currentBatchToXml()+"</slc:executionSpecs>";
-               alert(xmlString);
+               var xmlString = "<slc:execution-objects>"+this.currentBatchToXml()+"</slc:execution-objects>";
+               this._amqClient.sendMessage(
+                       "topic://agent.newExecution", 
+                       xmlString, 
+                       {"slc-agentId":agentUuid}
+               );
+               // Force logs refresh right now!
+               qx.event.Timer.once(function(){
+                       var command = org.argeo.ria.event.CommandsManager.getInstance().getCommandById("reloadlogs");
+                       if(command){
+                               command.execute();
+                       }
+               }, this, 2000);         
        },
        
        /**