Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Number of Reviewers
Pratheesh
Hi,
We want to design a workflow in which, the maximum number of reviwers are decided by the user who initiates the job. There is not maximum limit to the number of reviwers he selects. Is it possible to have dynamic number of reviwers. That is, when the user initiates a workflow, he will be selecting any number of reviwers.
We were able to design workflow, in which the maximum number of reviwers are known before the job is initiated.
Teamsite 6.5/windows.
Regards
Pratheesh.
Find more posts tagged with
Comments
jbonifaci
Sure, it's fairly simple. The user selects X number of reviewers from a list. You then create X number of review tasks named "Review 1" through "Review X", or whatever naming convention you want to use. If you want to notify the reviewers, you would also create X number of email tasks "Notify of Review 1" through "Notify of Review X". If you want the reviews to be linear, you would have notify 1 transitoin to review 1, review 1 transition to notify 2, notify 2 transition to review 2, etc. through review X. If you want them to be concurrent, you would have the previous task transition to all of the notify 1-X tasks, which would each transition to their corresonding review 1-X tasks and each of these would transition to whichever task comes after the review tasks.
~Jeff
Pratheesh
Thanks for you detailed explaination.
One more clarifications. For eg., for the first time the user selects 10 reviewers & i create 10 tasks for that. Next time when the user selects only 1 reviwer, wht will happen to the remaining 9 tasks. Are the reviwer tasks dynamically created.
pratheesh.
Lozza
Yes. In your workflow template, you can build up the tasks programmatically with some kind of loop rather than hard-coding all ten.
Something like:
for ($approverCount = 1; $approverCount < $approverTotal; $approverCount++) {
$approverTasks .= <<EOS;
<usertask name="ApproverTask$approverCount"
...etc...
</usertask>
..etc...
EOS
}
__INSERT__("$approverTasks");
(Apologies if any of this is very wrong; it's from the top of my head and untested)
Something like this will create a number of approval tasks as specified in $approverTotal. This will need careful design as you'll need to take care of handling the successors, and also perhaps the email notification tasks, for each approver task.
jbonifaci
This would be much easier using TeamSite::WFconstructor, which I would recommend using. If you don't know how to use it, check out the OOTB configurable workflows and read the perldoc.
~Jeff
Pratheesh
Thanks for your reponses.
Where can we get the materials on use of TeamSite::WFconstructor. We were not able to find in support site. And we don't have access to teamsite server now. Can you please provide any links on WF Constructor.
Pratheesh
jbonifaci
It would be most useful for you to check some of the OOTB workflows that use it, to get an idea of how the module is used. But since you don't have access now, I'll at least post the perldoc for you.
~Jeff
Pratheesh
Thanks Jeff,
I will check this and revert back
pratheesh