We are having problems trying to use an <inactivate> element and have tried devnet already (we are using Interwoven TeamSite 6.1 to build the workflow) . The Requirements for approvers we are trying to meet:
• Initial approval notification goes to 0-25 people. Approval not required by any.
• Time limit set by initiator dictates when approvers can no longer comment and workflow moves to the next level of approval (a.k.a. ‘High Level Clearance1’). To further clarify exactly what we need, we need (1)to be able to either set a time limit to stop allowing approvers to respond (the amount of time allocated would differ each time) OR (2) to be able to just inactivate all approvers ability to respond and continue with the workflow when the initiator decides to override.
Issue: We used an element to allow to move the workflow to the next task regardless of whether any approvers responded or not (like an override function instead of using time limit). The code used is:
<![CDATA[<br />my $rev =
$reviewer[0];
if ($rev ne "") {
if ($rev =~ /,/) {
@rlist = split(/,/, $rev);
$numberOfReviewers =
@rlist;
for (my $i =0; $i<$numberOfReviewers; $i++) {
__INSERT__("");
}
}
}
]]>
<usertask name="High_Level_Clearance1"
owner="bpatel"
description="Review by the Chief">
__INSERT__("<areavpath v='$area_vpath'/>");
<successors>
<successorset description="Approve">
<succ v="High_Level_Clearance2"/>
</successorset>
<successorset description="Reject">
<succ v="Decide_Process"/>
</successorset>
</successors>
<inactivate>
<template_script><![CDATA[
my $rev = $reviewer[0];
if ($rev ne "") {
if ($rev =~ /,/) {
@rlist = split(/,/, $rev);
$numberOfReviewers =
@rlist;
for (my $i =0; $i<$numberOfReviewers; $i++) {
__INSERT__("<pred v='Reviewer_$i'/>");
}
}
}
]]></template_script>
</inactivate>
</usertask>
If we comment out the <inactivate> portion of the code, the workflow allows us to submit the workflow. The error we get if the remains in the code is as follows:
“Invalid workflow:
ERROR:00001: Failure in operation
ERROR: No inactivations in inactivate
@line 208
ERROR: Unrecognized element inactivate in task High_Level_Clearance 1
@line 208”