Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've created a state machine workflow in VS. It has two states and a task in each state. If the 2nd task is rejected I want it to restart the 1st task.

So on the rejected path of the 2nd task i've put a 'set state' to 1st task. But this appears to be ignored and the workflow moves forward instead. What could be wrong ? I want the 1st task followed by the 2nd task to run again.

thanks

share|improve this question
add comment

1 Answer

Are the two states that you refer to in addition to the Initial and Completed states?

1) Make sure that you are using the Windows Workflow SetState, NOT the SharePoint Workflow SetState. (And you are setting the state to the first state, not the first task, right?)

2) Test your reject logic. If the debugger is letting you down, try using the LogToHistoryListActivity to verify the workflow - I stick them before and after every problemmatic Activity.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.