Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Latest commit

 

History

History

7_TestingEndToEndScenario

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Table of Contents

Testing the End to End Scenario

Although, your application is connected to SAP Build Process Automation service, it is not connected to the process you created yet. At this stage, you will see how to connect your app and process.

Desktop Agent Management Settings

Follow the steps, to execute the process with an automation with a specific registered Desktop Agent. You will create an Agent Attribute in the tenant, to add it to your agent and project. Agent attributes allows you to sort agents registered within the same tenant and make sure that a specific agent executes the job of your choice.

Follow this tutorial on Agent Management Settings.

Copy Definition ID from SAP Build Process Automation

  1. Open the Application Development lobby. Choose the Monitor tab.

  2. Click on Process and Workflow under the Manage section.

  3. Search for your project name under Project. Select the project you created with the ID provided to you. For example: Invoice Process AD160-XXX.

  4. After you find your process, copy its Definition ID.

Enter the Definition ID in SAP Build Apps.

  1. Go back to the Lobby and open your AppGyver Project. Choose SAP BTP Authentication to go back to your project.

  2. Choose Empty page to view your project.

  3. Click on DATA tab.

  4. Select the SendtoSPA data entity.

  5. In the create tab, open the binding menu for Request body mapper.

  6. Open the formula editor. Enter the following formula:

    ENCODE_JSON({  "definitionId": "Your Definition ID copied from SPA ",  "context":  query.record })  

    Click on SAVE.

  7. Click on SAVE.

  8. You can test if this Data connection is working.
    Switch to TEST tab and enter the below values in the following fields to test the connection:

    • filename: Test1666861993010.png
    • foldername: Invoices
    • employeemail: Test
    • employeename: Test

    Click on RUN TEST.

  9. Scroll down and check the Status of the Response.

    If you are getting any error please recheck the steps 1-6, else request help from the presenters. If you get the response as Status:OK, then the connection is successful.

    Select SAVE DATA RESOURCE.

  10. Click on SAVE on the top right corner to save the changes.

Testing the App

  1. Open the Launch tab.

  2. Click on OPEN APP PREVIEW PORTAL.

  3. Select the AppGyver project you created.

  4. Enter the name and upload the invoice to test the process. The invoice can be downloaded HERE.

  5. After uploading the invoice, click on Submit button.

  6. If the invoice is submitted successfully, you should receive a success toast message.

Monitoring and approving the Process

  1. Navigate back to the Application Development, choose the Monitor tab, and then Process and Workflow Instances.

    Monitor

  2. Choose Get Invoice Details instance, to check the status of the CONTEXT to see the details of approval request, and EXECUTION LOG to see the steps executed by the process.

    Monitor

    In the EXECUTION LOG, you can see how the process instance progresses further to the approval step in the business process.

    Monitor

  3. Open My Inbox application by selecting the button at the top right corner.

    Lobby

  4. After opening the My Inbox application, you will see on the left-hand side all the tasks listed. Select the task with the invoice number with which you triggered the process.

    My Inbox Actions

  5. Move on with one of the actions:

    • Approve, Reject,
    • Show Log (to see what has been done so far),
    • Claim (to reserve this task for you),
    • Mail (to forward this task via email).

    Task Actions

  6. You could also sort, filter or group the tasks at the bottom of the task list with these buttons:

    My Inbox Filter

  7. Depending on your selected actions and the information you have provided at the start of the process, the next task would be to Approve the invoice.

    Confirmation Form

Summary

Congratulations!!! You have successfully completed the excercise, by connecting your app with process and also tested it End-to-End.

Summary