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. Web Development
  3. SharePoint
  4. Sharepoint Task List Change Not Noticed by Workflow (MOSS, Sharepoint Web Services)

Sharepoint Task List Change Not Noticed by Workflow (MOSS, Sharepoint Web Services)

Scheduled Pinned Locked Moved SharePoint
javascriptsharepointdatabasewcfhelp
4 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.
  • J Offline
    J Offline
    Jim from Indy
    wrote on last edited by
    #1

    I am creating a very simple workflow on a (MOSS) document library list. The workflow creates a simple to-do task for me whenever a new document is added to the underlying library list. Periodically, I run a little program from my client that uses Sharepoint Web Services to query the WORKFLOW TASK LIST, looking for new tasks. When it finds a new task, it processes the underlying library list item, then posts some error messages to the workflow task item, and marks the workflow task item "Complete". But the original workflow doesn't seem to detect that action unless I use Sharepoint to "Complete" the task manually. What do I need to do to "complete" the workflow task using Sharepoint Web Services? I assumed if I marked the task item Complete, it would react accordingly. I am limited to Sharepoint Web Services ONLY. I'm not allowed to create my own web parts.

    N 1 Reply Last reply
    0
    • J Jim from Indy

      I am creating a very simple workflow on a (MOSS) document library list. The workflow creates a simple to-do task for me whenever a new document is added to the underlying library list. Periodically, I run a little program from my client that uses Sharepoint Web Services to query the WORKFLOW TASK LIST, looking for new tasks. When it finds a new task, it processes the underlying library list item, then posts some error messages to the workflow task item, and marks the workflow task item "Complete". But the original workflow doesn't seem to detect that action unless I use Sharepoint to "Complete" the task manually. What do I need to do to "complete" the workflow task using Sharepoint Web Services? I assumed if I marked the task item Complete, it would react accordingly. I am limited to Sharepoint Web Services ONLY. I'm not allowed to create my own web parts.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      The task list and the workflow are not really connected. As you have discovered changing the task list item has no effect on the workflow itself. You need to access the workflow associated with the original item and mark it as complete, this will trigger actions within the workflow that will update the task and other associated lists appropriately. Workflow WS are located here: /_vti_bin/workflow.asmx http://msdn.microsoft.com/en-us/library/bb862916(v=office.12).aspx[^]


      I know the language. I've read a book. - _Madmatt

      J 1 Reply Last reply
      0
      • N Not Active

        The task list and the workflow are not really connected. As you have discovered changing the task list item has no effect on the workflow itself. You need to access the workflow associated with the original item and mark it as complete, this will trigger actions within the workflow that will update the task and other associated lists appropriately. Workflow WS are located here: /_vti_bin/workflow.asmx http://msdn.microsoft.com/en-us/library/bb862916(v=office.12).aspx[^]


        I know the language. I've read a book. - _Madmatt

        J Offline
        J Offline
        Jim from Indy
        wrote on last edited by
        #3

        Mark, Do I mark the workflow complete, or the task? If I'm reading the docs (what there is of them...) correctly, I can (though I haven't tried yet...) link from the item to its active workflow(s), then to the Workflows' active workflow ToDos. So my strategy should change, I think. I need to start at the library list member, filter for members with active workflows, then link over to the active ToDos (Tasks) for that workflow, and act on it, marking the (Task/Workflow) as "Completed?", so the workflow can "resume".... Do I have that right? Jim

        N 1 Reply Last reply
        0
        • J Jim from Indy

          Mark, Do I mark the workflow complete, or the task? If I'm reading the docs (what there is of them...) correctly, I can (though I haven't tried yet...) link from the item to its active workflow(s), then to the Workflows' active workflow ToDos. So my strategy should change, I think. I need to start at the library list member, filter for members with active workflows, then link over to the active ToDos (Tasks) for that workflow, and act on it, marking the (Task/Workflow) as "Completed?", so the workflow can "resume".... Do I have that right? Jim

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Please re-read my previous response. You work with the workflow associated with the item, not the task list


          I know the language. I've read a book. - _Madmatt

          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