- Overview
- Desktop Agent Management Settings
- Definition ID from SAP Build Process Automation
- Definition ID to SAP Build Apps
- Testing the app
- Monitoring and approving the process
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.
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.
-
Open the Application Development lobby. Choose the Monitor tab.
-
Search for your project name under Project. Select the project you created with the ID provided to you. For example: Invoice Process AD160-XXX.
-
Go back to the Lobby and open your AppGyver Project. Choose SAP BTP Authentication to go back to your project.
-
In the create tab, open the binding menu for Request body mapper.
-
Open the formula editor. Enter the following formula:
ENCODE_JSON({ "definitionId": "Your Definition ID copied from SPA ", "context": query.record })
-
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.
-
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.
-
Click on SAVE on the top right corner to save the changes.
-
Enter the name and upload the invoice to test the process. The invoice can be downloaded HERE.
-
If the invoice is submitted successfully, you should receive a success toast message.
-
Navigate back to the Application Development, choose the Monitor tab, and then Process and Workflow Instances.
-
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.
In the EXECUTION LOG, you can see how the process instance progresses further to the approval step in the business process.
-
Open My Inbox application by selecting the button at the top right corner.
-
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.
-
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).
-
You could also sort, filter or group the tasks at the bottom of the task list with these buttons:
-
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.
Congratulations!!! You have successfully completed the excercise, by connecting your app with process and also tested it End-to-End.