Skip to main content
3 of 3
updates on workflow status

Canceling Workflow (Task Process) from Infopath

I have a workflow (in SP2010) Task Process that I need to be able to cancel. I had a parallel action in the "When the Task Process Is Running" that checked for Item deletion or a field change.

Run in Parallel
-----------------
Wait for deletion of item the task process is running on
...
End Task Process
-----------------
Wait for status to equal "Cancel"
...
End Task Process
----------------

I'm pretty sure this was working at one point, and now suddenly the "Wait for Field" line causes the workflow to lock. More precisely is prevents Tasks from being Approved/Rejected. As soon as someone clicks Approve/Reject on a task the tasks become locked waiting for the workflow to do something, and the workflow doesn't.

The "status" field is used by Infopath as a flag to tell the workflow to cancel. Is there a better way to cancel the workflow from Infopath? Rather then having the user terminate the workflow by hand.

Something of note, and I don't know if this is important or not. The workflow log shows "Waiting for status" but doesn't show any "Waiting for delete.." or similar. Using a "Wait for change in item" doesn't seem to cause a problem nor show up in the logs.

Edit:

Making a new workflow with a new "Approval Process" does NOT have this problem, and works fine. I also tried adding a new "Approval Process" to my workflow and it DOES have this problem. Strange sharepoint bug?

The workflow became "unstuck" on its own sometime last night (week after it was started) and assigned the next task. Approving the next task caused the workflow to become locked again