What do you mean by Task 1? Could you please give some insight on which task you are referring to here?
Kindly be clear in asking your question so it would be easy for us to help you out
Task1 is for processing busniess logic, which is invoked in ProcessLayer\ProcessTransaction state.
When ever you were creating the business logic, we should think about the logic where should be implement this task, which means in process layer. Depend upon business logic it will vary not standard structure, so make sure try to understand the business logic then implement in process.
You can invoked your “Task 1” in ProcessLayer\ProcessTransaction state.