If you have not gone through Part-1 of this series, I would recommend you reading it first and then continue reading here.
Now open the SharePoint Designer, connect with your site and click on Reusable Workflow.
Select document content type, here we can select the content type on which we would like to attach the workflow to.
Now check the condition, that if the current field is equals to department category and compare that with Marketing then log to history that marketing was selected.
And I have then put if else condition for each department.
Save the workflow and then publish the workflow.
Now it’s time to associate this workflow with the content type. Being on the same workflow settings page, click on associate to content type option from ribbon.
When you click on it, the browser window opens which allows you to associate. Select start this workflow on item adding.
Once you create a document using the template, and when you save it, you can see the workflow has triggered and then completed by saving the right information in the workflow history list.