Chain the tasks together correctly and return the chain's task ID.