Reputation: 6601
I want to build a custom content type that will be the basis of a list item that will have multiple states. The various states will determine which list will instantiate this item. It will move between the states, and therefore the lists, based on user actions.
I have a few choices to implement this:
Which way is best, and why? Anything that absolutely will not work? Any method I've overlooked?
Upvotes: 2
Views: 3675
Reputation: 186
This is prefect flowchart to decide between workflows and event receivers :
http://msdn.microsoft.com/en-us/library/ff648492.aspx
Upvotes: 0
Reputation: 8586
I use the workflow associated with each list approach because I need the workflow history as an audit trail for which user does what. I rather like the idea of a workflow on the content type however and in retrospect this would have been the cleaner solution to what I've done.
Upvotes: 1
Reputation: 2565
Generally speaking: In SharePoint workflows and event-receivers are related (if you look at the events on a list with an attached workflow you will find a event-receiver starting the workflow..)
The advantage of workflows is the possibility for the user to check the log (given that you use the Log-Activity)
The advantage of event-receivers are the greater number of events; they are more flexible than workflows.
From what you describe i would probably choose workflows, so the users can check if their item was processed correct.
Upvotes: 3
Reputation: 1373
In my opinion, use event receivers, as these follow the item rather than the list. You still need to enable the content type for the receiving list, but this approach is a lot easier than updating and deleting workflows in lists based on the presence or absences of certain content types.
However, why not combine the approaches? Have the content type event receiver deal with the content type specific activities and let the lists handle any list specific activities. Event receivers are cheap and flexible.
.b
Upvotes: 3