I have used Visual studio workflow. and this what happens at the rejection process.
enter code hereSPSite mySite = new SPSite(TaskDetails);
SPWeb myweb = mySite.OpenWeb();
if (TasksListstitle == "Request Form")
{
SPList myList = myweb.Lists["Request Form"];
SPListItem myListItem = myList.GetItemById(TaskItemID);
myListItem["Document Status"] = "Request Rejected";
myListItem.Update();
}
if (TasksListstitle == "Contract Forms")
{
SPList myList1 = myweb.Lists["Contract Forms"];
SPListItem myListItem1 = myList1.GetItemById(TaskItemID);
myListItem1["Document Status"] = "Document Rejected";
myListItem1.Update();
}
After rejection i have used terminate activity process. sometimes Its getting reassigning without getting rejected and sometimes it gets rejected and terminate activity is called. I think there might be some problem with the ID.