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