Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. So, about this WF thing....

So, about this WF thing....

Scheduled Pinned Locked Moved WCF and WF
databasequestionjsondiscussionannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nick Jacobs
    wrote on last edited by
    #1

    Ok, I've started reading up on WF 4.0... And I keep coming back to a philosophy question. If I were to put a workflow together to move data around... Would you write the work flow against an individual record? Or would you write the workflows against the set. Let's take a simple console app: I have a bunch of records That I extract from the SQL tables, work on them via a web service, receive a response, and update the sql table with a response code. One could write it like this: Harvest all available records to my staging table. Foreach: Select a record Call the web service Update the record back in the database End Foreach Stop. Or possibly write them as 3 steps. Harvest Post Update and each of the 3 would be a separate activity. The first is more of a workflow acting on a single record and sending the record to the workflow, the 2nd is more along the lines of simple 3 activity workflow. So what do you all think?

    This are my own opinions. You know the rest.....

    J 1 Reply Last reply
    0
    • N Nick Jacobs

      Ok, I've started reading up on WF 4.0... And I keep coming back to a philosophy question. If I were to put a workflow together to move data around... Would you write the work flow against an individual record? Or would you write the workflows against the set. Let's take a simple console app: I have a bunch of records That I extract from the SQL tables, work on them via a web service, receive a response, and update the sql table with a response code. One could write it like this: Harvest all available records to my staging table. Foreach: Select a record Call the web service Update the record back in the database End Foreach Stop. Or possibly write them as 3 steps. Harvest Post Update and each of the 3 would be a separate activity. The first is more of a workflow acting on a single record and sending the record to the workflow, the 2nd is more along the lines of simple 3 activity workflow. So what do you all think?

      This are my own opinions. You know the rest.....

      J Offline
      J Offline
      jim lahey
      wrote on last edited by
      #2

      I can't think of a reason why either approach could be conceived as "wrong", but I'd hazard a guess that working through the records in a batch would be quicker than working on them individually, especially where the webservice is involved.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups