Prepare activity workflow.