Name
global.SolutionExporterAjax
Description
No description available
Script
var SolutionExporterAjax = Class.create();
SolutionExporterAjax.prototype = Object.extendsObject(AbstractAjaxProcessor, {
process: function() {
var sysId = this.getParameter("sysparm_ajax_processor_sys_id");
var gr = new GlideRecord('ml_capability_definition_base');
gr.get(sysId);
// Run export in background
var worker = new GlideScriptedHierarchicalWorker();
worker.setProgressName("Exporting Solution");
worker.setScriptIncludeName("SolutionExporter");
worker.setScriptIncludeMethod("exportSolutionDefinitionInit");
worker.putMethodArg("solutionDefinition", gr);
worker.setSource(sysId);
worker.setSourceTable("ml_capability_definition_base");
worker.setBackground(true);
worker.setCannotCancel(true);
worker.start();
return worker.getProgressID();
},
type: 'SolutionExporterAjax'
});
Sys ID
b65719dc3b320300e81d47b334efc480