Question: what is the difference between event receiver and workflow?
Answer: Event receivers in SharePoint can be executed before or after an operation, like before adding an item or after adding an item. On the other hand workflows can be executed only after the operation happed like after an item added to the list or after an item update.