Google Search

Google
 

Wednesday, July 23, 2008

Video: Windows Workflow Foundation: Modifying Workflows

Presenter:Mike Taulty

The Workflow Runtime provides capabilities to modify Workflow Instances after they have started running. In this session we'll look at the code to achieve this.

The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video


Minute 0

A low mercantilist on end of a session is one in a series of short sessions most than 10 minutes or so looking we can do things with visual studio net framework minus vitality I workflow and platform group in Microsoft in the UK and s user sessions I ve been putting together about Windows works of foundation as a workflow technology that is going as part of when Fx Windows XP and Windows server 2003 and Windows Leicester later in 2006 is ridiculous that I wanted to look one of the capabilities of the workflow runtime which is the capability to alter a workflow instance as that workflow is running a with workflow agriculture in some way and that will continue to run it updates the language was used as five and is making in workflow project some of its goal of the worth of

Minute 1

Should sequential workflow library sugar for the anglicised and a library located at our most alive is the equivalent of a class library for regular net code and well little here it is ironic that a couple of simple activities to just make things easier son of an existing project and here are simple activities project and with builders are absolutely get the activities are just rotting onto my workflow tool box any activity that is rotten in our simple activity which was a dialogue from tribute of text and a simple activity which displays nothing on the screen and message rocks activity so and that is good little rocks and would try onto the surface mind prompt activity were the attribute of text and one of my message box activities were on display piece of text were to rename this will go with prompt or to rename that

Minute 2

Goalless display and result in the guise of the mine is two things together so well in my life that the conductivity has a prodigal text entered under display one has one cortex to show a facilitator and binding it to the text entered on the grant now just it was a son of space to use breathing into Ireland and the display and undergo a second message box and has less foxes just going to say about to display a local rat breathing space as the track is very quick code to get this workflow hosted will write a Windows forms application with a hair s project to make a Windows forms application Sun poster locate into his application as you seem previous videos are

Minute 3

References Ewing were closer that systems are workflow activities component model runtime mode of a button on here as well and it is going to start a run time for us just going to the code behind this and will have an instance of the works were runtime a runtime and is that you will do as we will create one of those was started up analyst there are hundreds of their lapels were worth has been completed but delegates on their Vodafone message locked on the screen saying workflow work Laurel has completed within a council labels are listening to a scoreless start runtime and a scoreless

Minute 4

Slow numeral low definition so again run a reference from the hosting project now to workflow project which is in demo library and the Michelin starred over the limit and it is last runtime to create a workflow follows with the type of our workflow shall workflow one true resolveRowling s matter of coincidence and will go ahead and stylised and try to let it take the own goal in the little you are a further less just if we can build and run up to you to set the right starter project is guided at a building on to start the runtime without the workflow it displays a grant it displays the text last year s message rocks and

Minute 5

It is both attacks are worth a complete showroom window that will just fire now a have fallen other than about still got this one hand in this bone will do is we ll offer facilities and modify them in the running workflow and land change was already going on now in order to do however detailed to get hold of the workflow and right now and is functionally little at the incidence or I suppose we can do is concerned to go identifies the workflow saw ID and I feel it will do little side Eagles incident start I front him out about the phone is met into its disaster on time together is that workflow giving any idea in Albion is that instance back a long time for a workflow so let s try and tinker with the workflow of them bit so there it asks a

Minute 6

Is the text and display that included dialogue but them and it is thought that these attacks with laughter dialogue with little cover and wire loop so that it displays a certain number of times never if we do this in his region as the instance for its workflow definition if it goes that the Rt activity of that workflow which will resolve aRt activity activity around is a workflow definition we can construct lives as a classical workflow changes you are Rt activity in these changes glass has property a transient workflow and we can use this to alter the workload is running to organised it is a transient workflow and were going to try and find within the activities collection in activity Court display so that s going to

Minute 7

With an activity animal lunchtime do Lewis go about a transient workflow and remove a particular activity to a goalless display activities are better name than a original if you should appear to have removed display activity at this time so well English and replaced art on display will arrive and execute a say to displace some razor wire loop in and I will have a sequence and the sequence will go ahead and run this display activity and animal incremental account and women to the condition onto a while that so it starts other than the reverse sense here and with and declare sequence activity will goalless sequence video sequence 1 m given the name in the sequence were going to have the display some life into the sequence activities

Minute 8

The the regard code activities roads going to include a link and social goalless code and create a colour code while it s usually hundred and actor and a second home in a piece of code in their work will just make sure that we had into the activities of the sequence is Windows ago to include cancer and valuable morale activity while it along I won in terms of its name and outright loop is going to have one activity which is sequence will also let him back into the condition on my world had been resolutely sleeping wildly along I ll look we can come back to being a transient workflow and adding to its activities that while it are in their

Minute 9

And finally we can regard to the instance and we can apply in workflow changes represented by changes object or get there now in terms of building up an encounter when you have this one is going to have a condition men only have this code is going to do incremental encounter no clues in Ireland and the code condition need to have visibility or a councillor though incrementally to have visibility of two pieces of code and I was going to want visibility that he s ago to check a condition and the code shape is going to want to have visibility of something that was an increment now that I myself under and is used in static members on its class to provide them with what they were so it will have his private step in integer or quota link and will have a private static method is going to be a

Minute 10

Increment handler takes an object so follows the standard of ending Alloa private static condition handler is one days longer to send as a slightly differently than drugs is conditional event arcs and English here s going to just essentially set out at result you wouldn t count less than three and increment hand luggage is going to increment the account time he loses that it was regularly through to provided over to the workflow what I can now do then is that my code condition in its own lack of activity appear and I concerned its execute code is handled by my increment handler and a concern limelight and the GP that its uncovered condition to identify the code condition in

Minute 11

E delusion and don t be condition handler in justifying iron onto the Louis Bush said his condition to be a code condition that we justified it is every ago I wrote it has a condition we given our code condition and a code condition as it ago to run to check the condition and that s the sky down here now if we can build which we can t use was code condition condition plus Eagles condition handler has gone but that in the long run at this point I was defined as their we start on time we start a flow began as a text that is tax will say do this through times we played out the intermediate dialog box and if we show that it has go back and modify the work

Minute 12

Were only close this dowry should find this though however is now executing the loops of young on display to disclose to his flows before a complete now if they have under realise that if we were to go around this again man who had starred a workflow again as cause second time around Anglo playlists began about a display dialogue with them again this display dialogue just want and a workflow complete somewhat modified in the previous iteration with code was modified one instance of the work so we didn t want the modified air with them and we didn t modify the workflow definition it has modified a single instance it is worth saying that because of the row over why conditional and increment handlers here and we re asked of my week and if we were

Minute 13

Is rather began acting modify being workflow will work because Monica has now gone beyond thrillingly never reset so subversiveness downloading are not particularly clever but you can get the general idea as to how you modify workflows by adding activities and sell justice and I have always seen here with a hooliganism of a run time to get hold of an instance of a workflow innovative and modify it and it is blasted in a Glasgow workflow changes were used and case to take an existing activity out of the workflow with numeral I McGonigal activity back within that while the policy single as far as you want to go in terms of adding and removing activities from the workflow is also possible to change rule definitions within a workflow in a subsequent things even has its in this session but it s worth being aware of is that the hostile removable activities from a workflow and put them back in eight

Minute 14

A possible to change an activity within a workflow if you want to provide a change of activity are already exists in a workflow and you can find activity you can remove it and you can add a new version of the same thing with different properties set on it so changes essentially removed us that rather than looking at an existing activity modifying its properties okay so where can you go to wants more information on the windows were of the foundation of the dilemmas the developers centre up a transient Microsoft com when effects a lead you to information on all the effects presentation irrigation and workflow orders and you dedicated site at www Windowsworkflow net is purely about the members worth the foundation is lots of examples and examples of their and finally if you ve got specific less little accession feel free to mail me at my e mail address is there on the screen and their provide feedback and so on other than a

Minute 15

Active listening a

Click here to go to original video page

No comments: