DBA Data[Home] [Help]

APPS.AME_MANAGER_FINAL_HANDLER SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 108

        /* Update hasFinalAuthorityYN as needed. */
        if(not tempRuleSatisfied and
           hasFinalAuthorityYN = ame_util.booleanTrue) then
          hasFinalAuthorityYN := ame_util.booleanFalse;
Line: 126

          /* Update source. */
          ame_util.appendRuleIdToSource(ruleIdIn => ruleIds(i),
                                        sourceInOut => source);
Line: 129

          /* Update category as needed. */
          if(category = ame_util.fyiApproverCategory and
             approverCategories(i) = ame_util.approvalApproverCategory) then
            category := ame_util.approvalApproverCategory;
Line: 170

    checkForInsertee boolean;
Line: 171

    COAInsertee ame_util.approverRecord2;
Line: 228

      /* Check for COA 'firstAuthority' insertions */
      ame_engine.getHandlerCOAFirstApprover(itemClassIn => tempApprover.item_class,
                                            itemIdIn => tempApprover.item_id,
                                            actionTypeIdIn => tempApprover.action_type_id,
                                            groupOrChainIdIn => tempApprover.group_or_chain_id,
                                            nameOut => COAInsertee.name,
                                            origSystemOut => COAInsertee.orig_system,
                                            origSystemIdOut => COAInsertee.orig_system_id,
                                            displayNameOut => COAInsertee.display_name,
                                            sourceOut => COAInsertee.source);
Line: 238

      if COAInsertee.name is  null then
        /* Fetch some of the required attributes. */
        startingPointId :=
            to_number(ame_engine.getHeaderAttValue2(attributeNameIn => ame_util.jobLevelStartingPointAttribute));
Line: 257

        tempApprover.api_insertion := ame_util.oamGenerated;
Line: 259

        tempApprover.name := COAInsertee.name;
Line: 260

        tempApprover.orig_system := COAInsertee.orig_system;
Line: 261

        tempApprover.orig_system_id := COAInsertee.orig_system_id;
Line: 262

        tempApprover.display_name :=  COAInsertee.display_name;
Line: 263

        firstApproverSource := COAInsertee.source;
Line: 264

        tempApprover.api_insertion := ame_util.apiAuthorityInsertion;
Line: 280

        has enough authority to self-approve. If so, insert the approver as the only approver,
        with a status of approved, and return.  This can not be done earlier as we need the
        parsed job levels
      */
      if(COAInsertee.name is null and
         startingPointId is null )
        then
        if (ame_engine.getHeaderAttValue2(attributeNameIn => ame_util.allowAutoApprovalAttribute)
                                                   = ame_util.booleanAttributeTrue)
        then
          getCatSourceAndAuthority(personIdIn => requestorId,
                                   jobLevelIn => tempJobLevel,
                                   supervisorIdIn => tempSupervisorId,
                                   categoryOut => tempApprover.approver_category,
                                   sourceOut => tempApprover.source,
                                   hasFinalAuthorityYNOut => tempHasFinalAuthorityYN,
                                   supervisorJobLevelOut => tempSupervisorJobLevel,
                                   nextSupervisorIdOut => tempNextSupervisorId);
Line: 299

            tempApprover.api_insertion := ame_util.oamGenerated;
Line: 348

        checkForInsertee  := false;
Line: 357

        /* reassign the value of source in case approver was a firstAuthority insertee */
        if firstApproverSource is not null then
          tempApprover.source := firstApproverSource;
Line: 373

        tempApprover.api_insertion := ame_util.oamGenerated;
Line: 380

          The approver is the last approver in the chain. He should get inserted into the
          approver List */
          tempMemberOrderNumber := tempMemberOrderNumber + 1;
Line: 388

          checkForInsertee  := true;
Line: 417

          The approver was the last approver in the chain. He should get inserted
          into the approver List */
          tempMemberOrderNumber := tempMemberOrderNumber + 1;
Line: 425

          checkForInsertee  := true;
Line: 442

        the approver is the manager, if yes insert the approver in the chain */
        if not managerFound then
          managerFound := true;
Line: 451

          checkForInsertee  := true;
Line: 473

          checkForInsertee  := true;
Line: 487

        /* Check to see if an insertion was done to the approver list. If yes, check for any
           COA insertions. NOTE: The same check will have to be done as the last step in
           the handler again  */
        if checkForInsertee then
          /* check to see if there is a COA insertion after this approver. If a COA
             insertion is found, keep checking till no more COA insertions. The check for
             final authority will need to be done again.  */
          checkForInsertee  := false;
Line: 496

            /* Initialize COAInsertee approverRecord2 */
            COAInsertee := ame_util.emptyApproverRecord2;
Line: 498

            /* Check if there are any COAInsertions */
            ame_engine.getHandlerCOAInsertion(nameIn => tempApprover.name,
                                            itemClassIn => tempApprover.item_class,
                                            itemIdIn => tempApprover.item_id,
                                            actionTypeIdIn => tempApprover.action_type_id,
                                            groupOrChainIdIn => tempApprover.group_or_chain_id,
                                            occurrenceIn => tempApprover.occurrence,
                                            approvalStatusIn => tempApprover.approval_status,
                                            nameOut => COAInsertee.name,
                                            origSystemOut => COAInsertee.orig_system,
                                            origSystemIdOut => COAInsertee.orig_system_id,
                                            displayNameOut => COAInsertee.display_name,
                                            sourceOut => COAInsertee.source);
Line: 511

            if COAInsertee.name is null then
              exit;
Line: 514

              tempApprover.name := COAInsertee.name;
Line: 515

              tempApprover.orig_system := COAInsertee.orig_system;
Line: 516

              tempApprover.orig_system_id := COAInsertee.orig_system_id;
Line: 517

              tempApprover.display_name :=  COAInsertee.display_name;
Line: 529

              tempApprover.source := COAInsertee.source;
Line: 531

              tempApprover.api_insertion := ame_util.apiAuthorityInsertion;
Line: 595

      /* Check to make sure that final approver was inserted. */
      if checkForInsertee then
        /* check to see if there is a COA insertion after this approver. If a COA
           insertion is found, keep checking till no more COA insertions. The check for
           final authority will need to be done again.  */
        checkForInsertee  := false;
Line: 602

          /* Initialize COAInsertee approverRecord2 */
          COAInsertee := ame_util.emptyApproverRecord2;
Line: 604

          /* Check if there are any COAInsertions */
          ame_engine.getHandlerCOAInsertion(nameIn => tempApprover.name,
                                          itemClassIn => tempApprover.item_class,
                                          itemIdIn => tempApprover.item_id,
                                          actionTypeIdIn => tempApprover.action_type_id,
                                          groupOrChainIdIn => tempApprover.group_or_chain_id,
                                          occurrenceIn => tempApprover.occurrence,
                                          approvalStatusIn => tempApprover.approval_status,
                                          nameOut => COAInsertee.name,
                                          origSystemOut => COAInsertee.orig_system,
                                          origSystemIdOut => COAInsertee.orig_system_id,
                                          displayNameOut => COAInsertee.display_name,
                                          sourceOut => COAInsertee.source);
Line: 617

          if COAInsertee.name is null then
            exit;
Line: 620

            tempApprover.name := COAInsertee.name;
Line: 621

            tempApprover.orig_system := COAInsertee.orig_system;
Line: 622

            tempApprover.orig_system_id := COAInsertee.orig_system_id;
Line: 623

            tempApprover.display_name :=  COAInsertee.display_name;
Line: 635

            tempApprover.source := COAInsertee.source;
Line: 637

            tempApprover.api_insertion := ame_util.apiAuthorityInsertion;