Implemented function getTasks (getting list of wf tasks with ins and outs from redis);