task definition flowchart