Workflow TV - Lab Introduction to WF4: Getting Started

Download this episode

Download Video

Description

I've created a new Hands On Lab prototype using the Feature Builder PowerTool for Visual Studio.  In this epsiode I'll show you how you can download and get started with this hands on lab.  I'd love to hear your feedback on the lab so let me know what
you think.

Intro To WF4 Hands On Lab (Visual Studio Gallery)
Intro To WF4 Hands On Lab (MSDN Code Gallery)


Lab Exercises

  • Exercise 1 - Hello Workflow (video)
  • Exercise 2 - Refactoring Workflow (video)
  • Exercise 3 - The CodeActivity (video)
  • Exercise 4 - Dynamic Workflows with XAML (video)
  • Exercise 5 – Testing Activities (video)
  • Exercise 6 – WorkflowApplication (video)
  • Exercise 7 – If/Else Logic (video)

Tag:

WF4

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      guercheLE

      Loved it. Just would like future Hands on Labs to be grouped all together so that one does not need to skim through all project types just to figure out which ones have HOLs installed.

    • User profile image
      rojacobs

      Good point - as we add more labs it would be good to have them centralized.

    • User profile image
      Tim C

      Loved this. I did the lab on Friday. I found it by accident, but it really helped a lot. I would love to see an advanced lab as well dealing with some more advanced to medium topics.

       

    • User profile image
      rojacobs

      We will definitely be doing more of these covering more advanced topics.  I think the next one I'll do is the Workflow Services hands on lab.

       

      Are there other advanced topics you would be interested in?

    • User profile image
      exoteric

      Does WF use TPL?

      Does the hosted designer block if a CodeActivity blocks?

    • User profile image
      rojacobs

      No WF does not use the Task Parallel Library (TPL)

       

      The Code Activity is not invoked at design time so if it did block it would not block the designer.  It would block a thread at runtime which (depending upon how the workflow was invoked) could block the calling thread

    • User profile image
      exoteric

      Allright, the reason I ask is because I thought there was a run-time "designer" (for workflow instances) and in that case, it would be nice to know (but of course easily testable) whether a synchronous and slow CodeActivity would block the UI thread.

    • User profile image
      Jeremy Jeanson

      Hi Ron,

       

      Could you explain defer between activity and action?

      I haven't found a simple way to explain it Sad

    • User profile image
      rojacobs

      Action or Action<T> is a delegate.  Any class can use a delegate

       

      Activity or Activity<T> is a class that is designed to be scheduled and invoked by the WF4 Workflow Runtime

       

      Does that help?

    • User profile image
      Jeremy Jeanson

      Not really Sad

      i wrote a bad question...

       

      I was looking about ActivityAction scehdule by NativeContext (as SheduleDelegate and others Schedule methodes). I haven't found a scenario where it could be use Sad

       

      We have many schedule methode.... i hadn't found way to wrote exemple for all (i would like to help others frenchies as me, but i havn't the easier scenario for ScheduleAction)

    • User profile image
      rojacobs

      Ok I understand now...

       

      The way you get something invoked in a workflow is by scheduling it.  This includes even a callback similar to Action<T>.  This is why ActivityAction<T> was created.  I can create an activity that accepts as an argument a callback.  Then I schedule it and it gets invoked on the workflow thread.

    • User profile image
      Tim C

      Glad you asked. Was already thinking about that after I posted my comment. Here is a short stab a list. Keep in mind I am completely new to WWF. Some of these may actually be simple. 

       

       -Passing in arguments

      -Dynamic Workflows

      -Flowcharts, and other complex workflow objects (For example, WTH is the CompensationActivity? Docs are very poor in explaining what this thing is)

      -Loading workflows from alternative sources( DB, UNC, etc )

      -Error handling in a workflow

      -Workflow chaining(not even sure this is possible)

      -Synchronization with parallelism 

      -Workflow Services

       

      Sorry if any of these are simplistic. I am still reading up on workflow and what it can do.

       

    • User profile image
      Tim C

      On the workflow chaining, it is something I already do with NxBre where I tie multiple rule files together so I have a vested interest in trying to make that work.

    • User profile image
      Jeremy Jeanson

      Thanks Ron for your prompt reply,

       

      I was afraid to look ActivityAction<T>.
      It's so simple, lol!

       

       

    • User profile image
      zeppo

      Loved it - The fully integrated Visual Studio experience was great. I would love to see such labs for more advnaced topics, not just introductory material.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.