I want to make a workflow,where one variable 'documentstatus' is declared so that when approver approves the document then the status should changes to Approved and when approver rejects the document then 'documentstaus' changes to rejected. Can anyone tell me how to make code for this workflow.
What do you mean by "variable" ? Talking about aspect ? document properties ? You have nearly the same problem than me. For my part, your variable documentstatus is my description of document. I update it when i start, approve and reject the document in the workflow. Maybe look on my topic