Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
7Activity
0 of .
Results for:
No results containing your search query
P. 1
Is Share Point Workflow Same as Windows Workflow-2

Is Share Point Workflow Same as Windows Workflow-2

Ratings: (0)|Views: 251|Likes:
Published by semalaiappan

More info:

Published by: semalaiappan on Apr 17, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

 
Windows Workflow Foundation(WWF) – FAQ
Introduction
In this FAQ we will quickly run through and get a feel of how WWF (Windows WorkflowFoundation) will help you in making custom work flows in your project.Happy job hunting......
What is Windows Workflow Foundation?
WWF is a programming model for building workflow-enabled applications on windows.System. Workflow namespace has all the necessary modules to develop any type of workflow.
What is a Workflow?
A Workflow is a set of activities, which is stored as model and they depict a process. Belowfigure depicts clearly the difference between Workflow and Activity. Every task is an activityand group of activity depicts a complete workflow. Workflow is run by the Workflow runtimeengine.
Figure 1: - Work Flow Foundation Architecture
Workflow model can be written in pure .NET code, pure XAML or Mix of XAML and .NETCode. A workflow model is compiled and can execute under windows, ASP.NET, Web servicesor windows services application.
 
What are different types of Workflow in Windows Workflow foundation?
There are two basics type of workflow Sequential Workflow and State machines workflow.A sequential workflow has clear start and finish boundaries. Workflow controls execution inSequential workflow. In sequential execution, one task is executed after other. Sequentialworkflow is more rigid in format and execution path has a deterministic nature.A State machine workflow is more dynamic in nature. Workflow has states and the statewaits for events to help it move to next state. In State machine execution path isundeterministic nature.Below figure shows visual conceptualization of fundamentals. You can see in Sequentialworkflow the execution path is very determent. Shiv performs the entire task sequentiallyand these tasks are very determent. Now have a look at the second workflow. Every stategoes to other state when it receives some external events. For instance when Shiv is seeingstar trek there is an event of flashing news which triggers him to see the flashing new.
Figure 2: - Sequential and State machine workflowWhen should we use a sequential workflow and when should we use statemachines?
If the workflow is very rigid then you go for sequential workflow and if the workflow isdynamic then go for State machine workflow. For instance you have placed an order and the
 
order will not pass until your supervisor approves is a rigid flow. Because your order has tobe approved by, a supervisor or else it will not be approved. But what if your order movesfrom one place to other place. For instance, it moves from approval to waiting and thenclarification a state machine workflow model is more appropriate.Below is a simple code snippet which shows practically how to use sequential workflow. Lettry to understand step by step as marked in the figure:-
1
- First you need to select System. Workflow namespace.
2
,
3
, and
4
- In these three steps we created code object and linked them with activity.
5
,
6
,
7
, and
8
- We start the workflow and create workflow instance object to run thesequential workflow. You can see the output in 8. Depending on how you add the activity insection 3, it executes sequentially. Because we have added codeactivity1, first it executesthe first activity first. The sequence on how you add the activity to the activities collectionthe activities are run.
Figure: - 3 Code snippet for workflowNote: -
The above code snippet was developed with out using designer. The whole pointwas to make you understand what happens behind the scenes. In real projects you will bedependent on designer rather than coding manually. You can find the above code inSimpleWorkFlowSampleManual folder.

Activity (7)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
vijaybpujari liked this
yinkus001 liked this
amikeliunas liked this
johnx55 liked this
deonvogt liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->