Define type alias for Task.process and introduce Context to hold parameters passed to Task.process