08/03/2016

Implementing a new Mobile Approval Type (Part 3)

In Implementing a new Mobile Approval Type (Part 1) I talked about the initial configuration you need to make in Enterprise Components > Approvals > Approvals > Mobile Approval Options > Transactions page and how that configuration gets reflected when viewing new Mobile Approvals. In Implementing a new Mobile Approval Type (Part 2)  I talk about the Application Package PeopleCode Classes that are required for Mobile Approvals, plus one other Record Definition. In this post I demonstrate how the custom classes/methods were called during page load and mouse clicks events. I reviewed Trace Files to determine which methods are called and in what order they were called. The screenshots and classes refer to our custom TOIL App Package Classes. But I think the delivered App Package Classes, for say the Absence Mobile Approvals, defined in the GP_ABS_EVT_HANDLER App Package, could also be referred to. But if you need any clarification please let me know. I may be able to provide our custom code.

Pending Approvals Page Loaded

Custom Methods that are Called

  1. DataHandler.OXF_TOIL
  2. DataHandler.GetApprovalItemRowset
  3. DataHandler.PopulateItemForList

Screen Shot


TOIL Hours on Left Clicked

Custom Methods that are Called

  1. DataHandler.OXF_TOIL
  2. DataHandler.GetApprovalItemRowset
  3. DataHandler.PopulateItemForList

Screen Shot


TOIL Request Clicked / TOIL Details Page Loaded

Custom Methods that are Called

  1. DataHandler.OXF_TOIL
  2. DataHandler.RetrieveApprovalItemDetail
  3. DataHandler.PopulateItemSummaryForDetail
  4. DetailDocument.ConstructDocument
  5. SubPage.OXF_TOIL
  6. SubPage.AddDynamicButton
  7. SubPage.RenderPage
  8. TOIL_Workflow.Thread_Descr
  9. TOIL_Workflow.getThreadDescr
  10. TOIL_Workflow.getUserName
  11. DataHandler.OXF_TOIL
  12. Ajax.IsRequireToRunPreApprovalProcess

Screen Shot


TOIL Line Clicked

Custom Methods that are Called

  1. DataHandler.OXF_TOIL
  2. DetailDocument.OXF_TOIL
  3. DetailDocument.ConstructDocument
  4. SubPage.OXF_TOIL
  5. SubPage.AddDynamicButton
  6. SubPage.RenderPage

Screen Shot

With RenderPage Processing

Without RenderPage Processing


TOIL Deny Clicked

Custom Methods that are Called

  1. TOIL_Workflow.Event_Handler
  2. TOIL_Workflow.OnHeaderDeny
  3. Comments.AddApplicationComments

Explanation

AddApplicationComments is what inserts the comments entered on the page.

TOIL Approved Clicked

Custom Methods that are Called

  1. DataHandler.OXF_TOIL
  2. Ajax.PreApprovalProcess
  3. TOIL_Workflow.Event_Handler
  4. TOIL_Claim.TOIL_Claim
  5. TOIL_Claim.Update_TOIL_Entitlement
  6. Results_Build.Results_Build
  7. Results_Build.Schedule_Update_Balances
  8. TOIL_Workflow.OnHeaderApprove
  9. Comments.AddApplicationComments
  10. DataHandler.OXF_TOIL
  11. DataHandler.GetApprovalItemRowset
  12. DataHandler.OXF_TOIL
  13. DataHandler.GetApprovalItemRowset

Explanation

AddApplicationComments is what inserts the comments entered on the page.

The final 2 calls to DataHandler.OXF_TOIL and DataHandler.GetApprovalItemRowset are likely from the Pending Approvals page being displayed again, which is normally where you get redirected to after approving something.

No comments:

Post a Comment