Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
choosing work flow path depending on the role
mohan80
I am new to interwoven and am working on a dynamic workflow.
Its a concurrent review process and i want to implement it such that only one of the reviewers will have the ability to reject where every one else is only allowed to submit comments.
my problem is that my if comparison statement is not working.
any help would be appreciated.
<!-- ============================================================ -->
<template_script><![CDATA[
__INSERT__("
<!-- ==================== Approval Chain ==================== -->\n");
for (my $i=0; $i<__ELEM__('reviewer'); ++$i) {
__INSERT__( get_reviewer_task_xml($i) );
$con ='';
$rev ='';
$con ="__TAG__('contributor');";
$rev ="__TAG__(reviewer[$i]);";
if($con eq $rev){
__INSERT__("<successorset description='Reject'><succ v='email_to_author'/></successorset>");
}
__INSERT__( get_reviewer_task_xml2($i) );
}
__INSERT__("
<!-- ================= End of Approval Chain ================ -->\n");
]]></template_script>
Find more posts tagged with
Comments
Migrateduser
<!-- ============================================================ -->
<template_script><![CDATA[
__INSERT__("
<!-- ==================== Approval Chain ==================== -->\n");
for (my $i=0; $i<__ELEM__('reviewer'); ++$i) {
__INSERT__( get_reviewer_task_xml($i) );
$con ='';
what is this line here for? looks like it should be deleted
$rev ='';
what is this line here for? looks like it should be deleted
$con ="__TAG__('contributor');";
inside <template_script>, you need to use __VALUE__ not __TAG__
$rev ="__TAG__(reviewer[$i]);";
if($con eq $rev){
__INSERT__("<successorset description='Reject'><succ v='email_to_author'/></successorset>");
}
__INSERT__( get_reviewer_task_xml2($i) );
}
__INSERT__("
<!-- ================= End of Approval Chain ================ -->\n");
]]></template_script>