Sign in
Benjamin Guinebertière
Workflow Foundation: combining sequences, state machines and flowchart–Workflow Foundation: combiner séquences, machines et états et flowchart
MSDN Blogs
>
Benjamin Guinebertière
>
Workflow Foundation: combining sequences, state machines and flowchart–Workflow Foundation: combiner séquences, machines et états et flowchart
Workflow Foundation: combining sequences, state machines and flowchart–Workflow Foundation: combiner séquences, machines et états et flowchart
Benjamin GUINEBERTIERE
24 May 2011 7:49 AM
Comments
0
English
Français
One of the
latest update of Windows Workflow Foundation 4
brings state machines.
They were available with WF3 and disappeared with WF4. There are now back again.
WF4 also has sequence diagrams as well as flowcharts.
Sequence diagrams look like this
Une des dernières
mises à jour de Windows Workflow Foundation 4
permet d’implémenter des machines à états.
Les machines à états étaient disponibles en WF3 et avaient disparues avec WF4. Elles sont à nouveau disponibles. WF4 a aussi les diagrammes de séquence et les flowcharts.
Les diagrammes de séquence ont l’aspect suivant:
Flowcharts look like this
Les flowcharts ressemblent à cela
State machines looks like this
Les machines à états sont comme suit
WF4 makes it possible to combine these types of diagrams in a single workflow. Let’s see an example.
In this sample, we use a custom code activity that Trace.WriteLines its string argument
WF4 permet de combiner ces différents types de diagrammes. Voyons cela sur un exemple.
Dans cet exemple, on utilise une activité spécifique de type code qui appelle Trace.WriteLine avec la chaîne de caractères qu’elle a reçue.
The workflow looks like this
Le workflow se présente comme suit
so we have a sequence embedding a state machine and a flowchart.
The sequence detail is the following
- receive Start call and respond,
- trace,
- run State Machine,
- trace
- run Flowchart
- trace
On a donc une séquence qui inclut une machine à états et un flowchart.
Le détail de la séquence est:
- recevoir un appel de démarrage et répondre,
- tracer,
- exécuter la machine à état,
- tracer,
- exécuter le flowchart,
- tracer
The state machine looks like this
la machine à états est
State1 receives a Web Service call to continue the workflow.
l’état 1 reçoit l’appel de Web Service qui permet ensuite de continuer le WF
The call argument useState2 tells wether state machine should go from state1 to state2, then state3, or state3
Le paramètre d’appel useState2 indique s’il faut passer à l’état2 puis l’état 3 ou directement à l’état 3
The flow chart looks like this
Le flowchart est, dans le détail:
Let’s now start 2 instances of this in parallel
Exécutons maintenant 2 instances du workflow en parallèle
Benjamin
0 Comments
archims
,
WF
,
bpm-integration
Leave a Comment
Name
Comment
Please add 4 and 1 and type the answer here:
Post
Blog - News
TechDays
Accélérateur Windows Azure (http://aka.ms/cloud)
Blogs proches:
Windows Azure France
|
Big Data France
Forum des Architectures Applicatives Microsoft sur LinkedIn
Les nouvelles mensuelles de Windows Azure: Le bulletin Azure
Latest important hyperlinks | Les derniers hyperliens importants (twitter)
Tags
.NET Framework 2.0 development
.NET Framework 4.0
AppFabric
archims
Architecture
Azure
BizTalk Server
BizTalk Server 2004
BizTalk Server 2006
Certificates
cloud
Hadoop
IdentityFederation
idmgt
KB
Level-100
Level-200
niveau-100
PaaS
public-cloud
SOA
web
Web Infrastructure
Windows Azure
Windows Azure SQL Database
Options
Blog Home
About
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Archive
Archives
April 2013
(2)
March 2013
(1)
December 2012
(1)
November 2012
(1)
October 2012
(3)
September 2012
(2)
July 2012
(2)
June 2012
(2)
May 2012
(1)
April 2012
(1)
March 2012
(5)
February 2012
(2)
January 2012
(3)
December 2011
(10)
November 2011
(6)
October 2011
(7)
September 2011
(6)
July 2011
(7)
June 2011
(1)
May 2011
(9)
March 2011
(5)
January 2011
(2)
December 2010
(5)
November 2010
(4)
October 2010
(3)
September 2010
(3)
July 2010
(6)
June 2010
(2)
May 2010
(3)
April 2010
(3)
March 2010
(4)
February 2010
(7)
January 2010
(7)
December 2009
(1)
November 2009
(1)
November 2008
(1)
October 2008
(1)
September 2008
(1)
December 2007
(1)
October 2007
(1)
September 2007
(3)
August 2007
(1)
July 2007
(1)
June 2007
(1)
April 2007
(1)
January 2007
(1)
December 2006
(1)
September 2006
(3)
April 2006
(6)
March 2006
(2)
July 2005
(1)
May 2005
(1)
April 2005
(2)