Skip to content

Run the Project

kevinn-veeva edited this page Mar 1, 2019 · 11 revisions

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.

Part 1

  1. Navigate to your Admin -> Business Admin -> Loan Approvals tab in your vault and Create a new record:

  2. 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
  3. Click Save.

  4. 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.

  5. Wait a moment then refresh the browser page

  6. 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.

Part 2

  1. Open the Loan Approval record created in part 1.

  2. Click the custom actions menu and select Requote from AWS Finance.

  3. 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.

  4. Wait a moment then refresh the browser page

  5. 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.