Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.13 KB

File metadata and controls

45 lines (36 loc) · 1.13 KB

Process Graph Example (Node.js)

This example demonstrates how to download all of the records in a process using the QbDVision REST API with Node.js and then display them in a diagram.

Prerequisites

  • Node.js 20.x or higher
  • A QbDVision API key

Getting Started

  1. Install the dependencies
npm install
  1. Copy .env.example to .env and fill in:
    1. Modify API_Key to be your QbDVision API key.
    2. Modify BASE_URL to point to your QbDVision environment if you're not using Sandbox.
    3. Modify PROJECT_ID and PROCESS_ID to be the project and process ID that you want to see.
  2. Build the example:
npm run build
  1. Download the process data:
npm run download
  1. Launch the web server:
npm run start
  1. Navigate to http://localhost:3000 in your browser.

Output

The output on the webpage will look something like: Sample output image

Best Practices for Production

  • Use a key store for API keys
  • Implement proper error handling and retries
  • Add logging/reporting according to your company's standards
  • Use the latest versions of all libraries