-
Notifications
You must be signed in to change notification settings - Fork 7
Run the Project
To see the project in action, configure the debugger and set breakpoints or directly run the code that was deployed to your vault in the setup.
There are two parts to this project:
- Create a new Loan Approval quote record in vault. This triggers Vault to send a Spark Message to the AWS Finance application to generate a quote. The AWS application then uses the Vault's REST API's to update the quote details for the AWS Hire Purchase quote record in vault.
- Get a re-quote for the same record from the previous part by calling the record action Loan re-quote. As previously the Vault's REST API's are used by AWS to update the quote details.
-
Navigate to your Admin -> Business Admin -> Loan Approvals tab in your vault and Create a new record:
-
Enter values in the following fields:
- Forename e.g. John
- Surname e.g. Smith
- Item e.g. Bicycle
- Loan Amount e.g. 2000
- Loan Period (Months) e.g. 36
-
Click Save.
-
Verify that the Approval Status field has been updated to Pending Finance Approval, by the trigger vSdkAwsQueueSampleTrigger. The Approval Status field will be updated to Pending Finance Approval.
-
Wait a moment then refresh the browser page
-
Verify the AWS finance application has generate a quote and provided details by populating the fields in the AWS Finance Details section.
That completes the first part of the example. The second part will cover using a record action to get a re-quote.
-
Open the Loan Approval record created in part 1.
-
Click the custom actions menu and select Requote from AWS Finance.
-
Verify that the Approval Status field has been updated to Pending Finance Approval, by the trigger vSdkAwsQueueSampleTrigger. The Approval Status field will be updated to Pending Finance Approval.
-
Wait a moment then refresh the browser page
-
Verify the AWS finance application has generate a re-quote and provided details by populating the fields in the AWS Finance Details section. The interest rate will have changed from 15% to 12% and quote reference number will have been updated.
That completes the sample project. Please refer to the wiki pages and code for more details about the project.