def _call_init(self, *options, **kwds): Task._call_init(self, *options, **kwds) for i in self.inputs: val = self.inputs[i].get_value() if not val is None: self._start_task.outputs[i].set_value(val) self._start_task.outputs[i].set_ready()
def __init__(self, id=None, name=None, parser=None): Task.__init__(self, id=id, name=name, parser=None) self._tasks = {} self._start_task = EmptyTask() self._final_task = EmptyTask() self.add(self._start_task) self.add(self._final_task)
def __init__(self, id=None, name=None, parser=None): Task.__init__(self, id=id, name=name, parser=None) self._tasks = {} self._start_task = EmptyTask() self._final_task = EmptyTask() self.add(self._start_task) self.add(self._final_task) # Robert Crimi self.workflowID = None
def __repr__(self): return ( "Workflow %s:\n" % self.name + Task.__repr__(self) + "\n" + "\n".join(self._dfs_([self._start_task.id], lambda t: str(t))) )
def __repr__(self): return "Workflow %s:\n" % self.name + Task.__repr__( self) + '\n' + "\n".join( self._dfs_([self._start_task.id], lambda t: repr(t)))