Workflow TV

Workflow TV - Workflow Services as a Batch Job

Download this episode

Download Video

Description

Sometimes you have work that you want to schedule for off-peak times or have happen on a recurring schedule, such as every 3 hours. While there are many ways to do this, Workflow Services are an interesting option. In this episode, I'll show you how you
can create a service that accepts start, stop, and query messages, and supports scheduling.

    WF4 Batch Job Example (MSDN Code Gallery)
    endpoint.tv - AppFabric AutoStart and WF4 Batch Job Example

Ron Jacobs
blog        http://blogs.msdn.com/rjacobs
twitter    @ronljacobs
What do you want to see on endpoint.tv?

Tag:

WF4

Embed

Format

Available formats for this video:

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

    The Discussion

    • rojacobs

      If you want to make the batch work autostart see this post

       

    • rojacobs

      I have not done any direct performance comparisons to a Windows Service doing the same work.  It seems to me that for most things the performance should be close to the same since mostly they are waiting for work to do.  Having the workflow with AppFabric doing the job gives you the added benefit of the monitoring store which is really cool for this sort of thing.

    • pelife

      It seems like everyone has the same requirements. The only diference between my workflow and yours is that I am using 3.5. I wanna be able to create a composite activity that does all that. The delay activity is not good enogh for me because of maximum time limitation.

       

      I used the reflector to see how things work in built in composite activities and it's a little bit dificult to schedule and control child activities of a composite but I will do it.

       

      I did something you sould also create in your examples (sugestion) is create a MMC extension (there is a hole lab on it). And implement a monitor to workflows just like an application (I forgot the name) I'll send you tomorrow.  My boss loved.

       

      About the Workflow app fabric windows service that check if there are workflows down and resume execution I will have to implement that. It will be not an issue.

       

      I'll send you my sample as soon as it's ready. I would like to get you opinion. You seems to be the only other person that is working in WF besides me.

    • pelife

      dinnernow http://dinnernow.net/ is the name of the application

    • Sandrino

      Your second job was updated at 1:33:37 PM. So cool..

    • fastboxster

      I appreciate the work you do Ron!  If I see one more book or article with "cookbook", "practical examples", or "recipes" that are simply duplication of the reference materials I might flip out.  The basic lack of adoption of workflow is due to the fact that nobody understands why you'd ever use it, and the learning curve is just simply not worth the effort.  Some real-world examples are exactly what the WF4 universe is missing.  I'm not sure I like the idea of encouraging the "batch" mentality in the workflow "idea space".  But the example is both useful and illustrative.  And it might ease a lot of people into adoption.  Thanks again.  I'm becoming a fan.

    • tim burgess

      is there Doc's for the setup

    • timothyburg​ess

      i cant find this file in either example

      BatchWorker.Contracts.BatchInfoResponse.datasource

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.