Define workflow.