enhancement on Project Activity #11690: Execute Data Miner processes from Workspace

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/workspace-task-executor-library@167245 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-04-26 16:09:08 +00:00
parent b8b7bcf077
commit 2c20aa6b53
2 changed files with 2 additions and 6 deletions

View File

@ -126,7 +126,7 @@ public class WorkspaceDataMinerTaskExecutor implements ExecutableTask<AlgorithmC
* @see org.gcube.common.workspacetaskexecutor.ConfigurableTask#addTaskConfig(java.lang.Object)
*/
@Override
public Boolean setTaskConfig(AlgorithmConfiguration config) throws ItemNotExecutableException, Exception {
public Boolean setTaskConfig(AlgorithmConfiguration config) throws Exception {
WorkspaceItem item = WsUtil.getItem(usernameOwner, config.getWorkspaceItemId());
String jsonConfValue = null;

View File

@ -52,10 +52,6 @@ public class TestDataMinerTaskExecutor {
AlgorithmConfiguration config = createDummyConfiguration();
exec.setTaskConfig(config);
}
catch (ItemNotExecutableException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
@ -81,7 +77,7 @@ public class TestDataMinerTaskExecutor {
public static AlgorithmConfiguration createDummyConfiguration(){
Map<String, String> mapParameters = new HashMap<String, String>();
mapParameters.put("publiclink", "this is the public link");
return new AlgorithmConfiguration("this is the task id", "this is the task description", "my token", WORKSPACE_FOLDER_ID, mapParameters);
return new AlgorithmConfiguration("this is the task id", null, "my token", WORKSPACE_FOLDER_ID, mapParameters);
}
}