Skip to content
Example Rossum connector extension with a simple check
JavaScript Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Example Elis connector: Initial commit Jan 3, 2019
.eslintrc.js
.gitignore Example Elis connector: Initial commit Jan 3, 2019
Dockerfile
README.md Add connector setup information Jun 27, 2019
connector.js Example Elis connector: Initial commit Jan 3, 2019
package-lock.json Example Elis connector: Initial commit Jan 3, 2019
package.json

README.md

Example JavaScript Elis connector

Example Elis connector that implements a simple check. It parses annotation structure and extracts field values (tax values and a total tax). Then it checks that values match and returns a warning message if not.

It expects following schema structure:

amounts_section
  ...
  amount_total_tax
  ...
  vat_details
    ...
    vat_detail_tax
    ...

Connector setup

You can use elisctl tool to configure an Elis queue to use the connector.

Create the connector first:

	 elisctl connector create "JavaScript Example Connector" --service-url http://hostname:5000 --auth-token wuNg0OenyaeK4eenOovi7aiF

In the response, you will receive the ID of the connector. Next, choose an existing queue and deploy the connector to it:

	 elisctl queue change 29582 --connector-id 1506

Or create a new queue and attach the connector to it:

	 elisctl queue create "JavaScript Connector Queue" --connector-id 1506 -s schema.json

You can also configure the connector using our API directly.

You can’t perform that action at this time.