public RequestTaskDef() {
this(false);
}
protected void setInputs() {
ParameterDef script = new ParameterDef(SCRIPT, Types.STRING, "Text of script to execute");
ParameterDef jobout = new ParameterDef(STDOUT_FILE, Types.STRING, "Name of the file for standard output");
ParameterDef joberr = new ParameterDef(STDERR_FILE, Types.STRING, "Name of the file for standard error");
ParameterDef remoteWorkdir = new ParameterDef(REMOTE_WORKDIR, Types.STRING, "Directory on remote computer where script will run");
ParameterDef localWorkdir = new ParameterDef(LOCAL_WORKDIR, Types.FILE, "Directory on local computer where output will be stored");
script.setDisplayName("Script");
jobout.setDisplayName("Standard Output File");
joberr.setDisplayName("Standard Error File");
remoteWorkdir.setDisplayName("Remote Working Directory");
localWorkdir.setDisplayName("Local Working Directory");
jobout.setDefaultValue("stdout.txt");
joberr.setDefaultValue("stderr.txt");
localWorkdir.setDefaultValue(new File("."));
addInput(script);
addInput(jobout);
addInput(joberr);
addInput(localWorkdir);