14: return(false);
15: end if;
16: select count(*)
17: into tempCount
18: from wf_roles
19: where name = approverIn.name and
20: status = 'ACTIVE' and
21: (expiration_date is null or
22: sysdate < expiration_date ) ; /* Don't use tempEffectiveRuleDate here. */