Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]] Former-commit-id:06a8b51d6d
Former-commit-id:3360eb6c5f
29 lines
638 B
JavaScript
29 lines
638 B
JavaScript
function GfeTask(wsId,task){
|
|
this.task = task;
|
|
this.wsId = wsId;
|
|
}
|
|
|
|
function _addArgument(xml){
|
|
this.task.addXml(xml);
|
|
}
|
|
|
|
function _execute(){
|
|
this.task.setWorkstationID(this.wsId);
|
|
var result = this.task.execute();
|
|
|
|
if(result==null){
|
|
return new MakeResponseNull("GFE task generated NULL response",null).execute();
|
|
}else{
|
|
var count = result.size();
|
|
var response = new Array(count);
|
|
for(i = 0; i < count; i++){
|
|
var makeResponse = new MakeResponseXml(result.get(i));
|
|
response[i] = makeResponse.execute();
|
|
}
|
|
return response;
|
|
}
|
|
|
|
}
|
|
|
|
GfeTask.prototype.addArgument = _addArgument;
|
|
GfeTask.prototype.execute = _execute;
|