Commit 6aa5ea91 authored by Luckeneder Marcel's avatar Luckeneder Marcel

added shared-storage paths

parent 4171cb0a
......@@ -58,7 +58,7 @@ class CWLRestAPI(FlaskView):
route_base = '/' #flask_classful specific, class variable
def __init__(self):
self.baseDir = './workflows/' #for developing only
#self.sharedStorage = '/home/cuhoni66/toilCWLTest/'
self.sharedStorage = './datasets/'
self.__wfManager = WorkflowManager()
############################################################
#Section: Routed Methods
......@@ -93,7 +93,7 @@ class CWLRestAPI(FlaskView):
byteData = request.data
data = json.loads(byteData.decode("utf-8"))
wf = WorkflowWrapper(userToken = data["usertoken"], sharedStorage = data["sharedStoragePath"], workflowName = data["workflowName"], baseDir = self.baseDir)
wf = WorkflowWrapper(userToken = data["usertoken"], sharedStorage = self.sharedStorage+data["sharedStoragePath"], workflowName = data["workflowName"], baseDir = self.baseDir)
self.__wfManager.addWorkflow(wf)
return json.dumps(self.__wfManager.startWorkflow(wf.workflowName))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment