AnshullJain

Sir(s) / Maa'm(s),

Being new to windows workflow foundation, I am facing problems understanding the concepts involved in it. I have a few doubts, please help me out.

1. How to handle the business components involved in a workflow (Framework 3.0) (I am actually confused about the whole logic behind the business components.) The old technique of handling the business logic was to have a seperate business logic layer entity in the application (for example, a class file for handling the business logic of each entity in the app_code of a web application). I have used the following reference:

http://www.asp.net/learn/dataaccess/tutorial02cs.aspx tabid=63

Wats the newer / alternate way of doing the same

2. How to have navigation in web forms using windows workflow Similar to the navigation in the windows forms, the web forms do not support the navigation through the web config xml file.

Please help me out

Anshul Jain



Re: Windows Workflow Foundation Business Components and Windows Workflow Foundation

Kavita Kamani - MSFT

Hi Anshul

You would still do data modeling as before and create your business objects. You would use the workflow to visually represent the flow of information in your business process. You can also visually debug the workflow this way. You can also have a business logic layer as that tutorial you included says. You can expose your business logic, however, as activities - you can write custom activities that call into pieces of functionality in your business logic, and those activities can be used to create the workflows. Since you can rehost the workflow designer, this would end up being a more powerful way to share your business logic through your custom activities to allows users of your activities to compose them as they wish.

I dont think its much different than what you read. It is just more high level / powerful and gives you more modeling capabilities than what you had before.

To do navigation in web forms using WF, check this out - http://blogs.msdn.com/mwinkle/archive/2007/06/07/introducing-the-pageflow-sample.aspx

Hope this helps,

Kavita






Re: Windows Workflow Foundation Business Components and Windows Workflow Foundation

AnshullJain

Thank u maa'm for the information.

But still I have some confusions about the concept of business components. On a very basic note, are the business components, the functions and methods that define the working of the entities in a system (like in the example refered, the product entity in the database had the methods like GetProductInfo(), AddNewProduct() etc) For a simple login and registeration system, in a web based application, can the entities be the users with the business component dealing with the methods like GetUserInfo(), ValidatUser() etc

Please comment.

Anshul





Re: Windows Workflow Foundation Business Components and Windows Workflow Foundation

Kavita Kamani - MSFT

Yes, that is correct. The entities can also be other things like Product etc.

Think of entities as the "things" your business process will operate on.

Think of business components as the "pieces of logic" that are core to your business.