In the workflow tasks, it is possible to specify as the Assignee not only a specific employee, but also a field of type Employee. This is necessary in cases where the Assignee is determined when the work is in progress.
For example, in the workflow editor in task 1, create a field of type Employee with the name: Select assignee for next task. In the workflow editor in task 2 in the Assignee field, specify the Select assignee for next task field. On starting this workflow, task 1 will be created, and the employee who executes it will specify the Assignee for the next task.