Hi guys,
I've got a "Document Review" business process (BP). The document owner selects one or more reviewers in a multivalue "Reviewers" field in the document template. The first BP step uses the reviewer names to look up AD and email the reviewers notification of the review requirement. The BP Participants "Reviewer" role is updated with the names of the reviewers for due date notifications, then I clear the "Reviewers" field so that when each reviewer completes their review, they just need to reenter their name in the "Reviewers" (drop-down) field which the workflow is monitoring until the original count of entries in the Reviewers field is matched and the workflow progresses to the next step.
It works well as far as the workflow is concerned, however the issue then arises if the document owner wants to check progress in terms of who has or hasn't completed their review. As I've cleared the "Reviewers" field, the original names aren't listed in the metadata. So I've created an "Awaiting Reviewers" multivalue field which is populated from the "Reviewers" field before it is cleared. (I'm thinking there's probably a much easier way to do this so please let me know if I'm getting this wrong.)
Where I'm coming unstuck is that when a user completes their review and signifies this by adding their name back into the "Reviewers" field, I want to automatically remove that name from the "Awaiting Reviewers" field. I've tried juggling various multivalue tokens but can't work out how to do it. I have an initial "Reviewers List" token at the beginning of the workflow which contains all the original reviewer names, and then I have a "Completed Review" token which contains the name of the user who puts their name in the "Reviewers" field when they finish their review. If I could work out how to remove the matching name in the "Completed Review" token from the "Reviewers List" token, I could then use the remaining name(s) in the "Reviewers List" to replace the values in the "Awaiting Reviewers" field ... !
Sorry if this has given you a headache! :o)
Any suggestions?
Thanks,
Mike