I am new to WWF workflows. I am trying to develop a custom approval workflow using infopath and visual studio WWF. I have two infopath forms - one for the initiation and another for the approval. In my workflow, i am trying to rollback the task when a wrong approver tries to approve the workflow. For this action, i am using a 'if-else' activity and inside which i am using a 'SetState' and 'CompleteTask' activities in the true part and 'RollBackTask' activity in the false part.
The rollback of task is correctly working whenever a wrong approver tries to approve the workflow. But the status of the workflow is changing to 'completed' once after the rollback is done.
I need my workflow status to be in 'In Progress' when the rollback occurs. I tried using a 'SetState' after the rollback activity, but its showing 'Error Occured' in the workflow status.