Thursday, April 8, 2010

Creating custom activity in Workflow Part – 7

Hi All,

Let us continue exploring custom sequence activity and use it in real world. Take same sample code that we generated in Creating custom activity in Workflow Part – 6.

Now I am not going to write down the code here. I have created one dummy table in my database to demonstrate this example.

I am reading the parameter that is passed from client and then writing a code that will fetch the salary of an employee in GetEmployeeSalary code activity.

And then I am sending mail based on the condition. So what I am going to show you is final version of it. After writing a code in our custom sequence activity, I drag it again on console workflow application and then run it.

Set EmployeeId to the EmpoyeeID.



And then run the application.



And if I set to other employee then,



Hope that you have got a fair idea about how sequence custom activity works now.

No comments:




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com