Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To integrate the HBW widget in an external system, you need to:

  • make proxy controllers through which the built-in widget will make requests to the HOMS backend with basic authentication (using the password and login from the config);

  • build in JS widget and render it.

...

  • hbw_url – HOMS url (e.g. http://localhost:3002, from config file);

  • hbw_assets_path – address to HOMS static files HOMS (from config file);

  • hbw_login – login (e.g. user@example.com, from config file);

  • hbw_token –  token (e.g. renewmeplease, from config file);
  • entity_class – integration name (from config file);

  • entity_type – order type (specified in the config file or mount location);

  • entity_code – unique code to create an order;

  • bp_code – business process code;

  • initial_variables – the parameters with which the business process is created.

Proxy controllers

Proxy controller is a intermediary for requests from external systems to HOMS, where the necessary parameters for working with orders and user authentication are set

...

Code Block
title/widget/users
get_request_bpm_backend('users/check')

Embedding JS

It is necessary to include in the HTML pages of the external system JS and CSS of widget:

...