Creating a pluggable workflow service

For our recipe here, we will rewrite the Chapter 2, Creating a sequential workflow recipe that enacts the credit approval system in such a way that we will remove all the IfElse activities that we used there to verify the credit check. In this recipe, we will have an external method to do that logic for us and raise an event when it is done with its decision. The event will also contain the response back from this external method.

Getting ready

Modify the Credit Approval list that we created in Creating a sequential workflow in Chapter 2 and add a new field named Credit Status of Single line of Text type. The field is not a required field. This is the field where we will store the response from the external ...

Get Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.