wf updated to set document status on wf entry / exit