var aOutput = Context.createOutputObject(); //var sServerAddress = Context.getProperty("ServerAddress"); //var sExportName = Context.getProperty("ExportName"); var sServerAddress ="ARIS DESIGN SERVER IP"; var sExportName ="test"; if(sServerAddress==null){ aOutput.OutputLn("ServerAddress not defined" ,"Tahoma",18,0,-1,1,0); } if(sExportName==null){ aOutput.OutputLn("ExportName not defined" ,"Tahoma",18,0,-1,1,0); } if(sServerAddress!=null && sExportName!=null){ var oBusinessPublisher=Context.getComponent("BusinessPublisher"); oBusinessPublisher.activateExport(sServerAddress, sExportName, false); var aResult = oBusinessPublisher.updateExport(ArisData.getActiveDatabase(), sServerAddress, sExportName); oBusinessPublisher.activateExport(sServerAddress, sExportName, true); aOutput.OutputLn("Duration=" + aResult.getDuration() ,"Tahoma",18,0,-1,1,0); aOutput.OutputLn("Success=" + aResult.isSuccessfull() ,"Tahoma",18,0,-1,1,0); aOutput.OutputLn("ServerAddress=" + sServerAddress ,"Tahoma",18,0,-1,1,0); aOutput.OutputLn("ExportName=" + sExportName ,"Tahoma",18,0,-1,1,0); } aOutput.WriteReport();