Hello,
I have a workflow and I want to programmatically change its active task.
I tried to use WAPI.StartTask but it gives me this error: Incorrect SubWorkTask status.
Am I going in the wrong direction here? Should I do something else before?
Thanks
It's just a guess, but I suspect that you attempting to start a task when the one preceding it was never started or completed. I think that the WAPI drop-in checks the status of the previous task before initializing the task you want.
If that's the case, you may need to go through, find the current task, auto-complete it, then complete subsequent tasks leading up to your task.
-Hugh