Reputation: 65
What is the difference between Sharepoint workflow and Event receiver.
Upvotes: 2
Views: 3692
Reputation: 61875
A SharePoint Workflow is entirely different from an Event Receiver. The correct choice for a solution - which may be "neither" - depends on the specific task at hand. Make sure to read up on the use-cases and limitations of each approach before making an initial selection.
The workflow feature in Microsoft SharePoint Server 2010 enables solution architects, designers, and administrators to improve business processes. Fundamentally, a workflow consists of two things: the forms that a workflow uses to interact with its users and the logic that defines the workflow’s behavior. Understanding how workflows are created requires knowledge about both.
The Microsoft SharePoint [..] events model relies on managed components called event receivers that respond to SharePoint Foundation objects when specific triggering events take place. You create an event receiver by inheriting from one of the SharePoint event receiver base classes. After you have created the event receiver, you implement event handlers by overriding methods on the event receiver class.
See SharePoint 2010 Development Walkthroughs, which provides examples for both Workflows and Event Receivers.
Upvotes: 1