53: tempApprover1.orig_system_id := positionIdIn;
54: tempApprover2.orig_system := 'POS';
55: tempApprover2.orig_system_id := parameterIds(i);
56: if(positionIdIn = parameterIds(i) or
57: (isRequestor and ame_approver_type_pkg.isASubordinate
58: (approverIn => tempApprover1,
59: possibleSubordApproverIn => tempApprover2))) then
60: tempRuleSatisfied := true;
61: end if;
182: sourceOut => tempApprover.source,
183: hasFinalAuthorityYNOut => tempHasFinalAuthorityYN);
184: if(tempHasFinalAuthorityYN = ame_util.booleanTrue) then
185: tempApprover.api_insertion := ame_util.oamGenerated;
186: ame_approver_type_pkg.getWfRolesNameAndDisplayName(
187: origSystemIn => ame_util.posOrigSystem,
188: origSystemIdIn => requestorId,
189: nameOut => tempApprover.name,
190: displayNameOut => tempApprover.display_name);
209: else
210: tempApprover.orig_system_id := startingPointId;
211: end if;
212: tempApprover.api_insertion := ame_util.oamGenerated;
213: ame_approver_type_pkg.getWfRolesNameAndDisplayName(origSystemIn => ame_util.posOrigSystem,
214: origSystemIdIn => tempApprover.orig_system_id,
215: nameOut => tempApprover.name,
216: displayNameOut => tempApprover.display_name);
217: else
314: if(tempHasFinalAuthorityYN = ame_util.booleanTrue ) then
315: exit;
316: end if;
317: tempApprover.orig_system_id := ame_position_level_handler.getNextPosition(positionIdIn =>tempApprover.orig_system_id );
318: ame_approver_type_pkg.getWfRolesNameAndDisplayName(origSystemIn => ame_util.posOrigSystem,
319: origSystemIdIn => tempApprover.orig_system_id,
320: nameOut => tempApprover.name,
321: displayNameOut => tempApprover.display_name);
322: if firstAuthInsExists then
361: errorCode integer;
362: begin
363: for i in 1..parametersCount loop
364: parameterIds(i) :=
365: ame_approver_type_pkg.getApproverOrigSystemId(nameIn => parameters(i));
366: end loop;
367: exception
368: when no_data_found then
369: errorCode := -20001;