Optional
finallyTasks to be executed at the end of the sequence, the finally tasks will be executed even if the main task fails.
Optional
postTasks to be executed after the main task, if the main task fails, the post tasks will not be executed, but the finally tasks will be executed.
Optional
preTasks to be executed before the main task
The main task to be executed
Represents the pattern for task execution as a sequence of tasks