String cmdShell = params.get(SzjdeConstants.PARAM_RUN_IN_SHELL);
String bufname = params.get(SzjdeConstants.PARAM_BUF_NAME);
String workDir = params.get(SzjdeConstants.PARAM_WORK_DIR);
String origCmdLine = params.get("origCmdLine");
String uuid=UUID.randomUUID().toString();
SystemJob job = new SystemJob(cmd,vimServerName,cmdShell,uuid,bufname,workDir,origCmdLine);
job.start();
return "";
} else {
String jobId = params.get(SzjdeConstants.PARAM_JOB_ID);
SystemJob job = SystemJob.getJob(jobId);
String result = job.fetchResult();
return result;
}
}