Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 2.09 KB

File metadata and controls

36 lines (23 loc) · 2.09 KB

Sample Laserfiche Nodejs Rule script project

Sample javascript scripts that can be invoked from Laserfiche workflow or business process.

Scripts are invoked by Laserfiche Remote Agent which is a service installed on a Windows PC for this purpose.

Prerequisites

Build and Test script

This project is using NPM workspaces to setup a mono-repo with multiple packages. Please refer to the documentation for more details.

  • Clone this GIT repository
  • Install: npm install -w source/ -w utility/
  • Test: npm test -w source/ -w utility/
  • Build: npm run build -w source/

Configure a remote agent

Sample Projects

Note for bundling

  • In all the sample packages, we are using rollup to bundle all the code (include internal and external dependencies) into a single file. This is not required, but it makes it easier to deploy the code to the remote agent.
  • You can also copy the folder of source code package into remote agent and manually install the dependencies using npm install command.
  • Remote agent only cares the target script file, and it expects the deployment step to ensure the target script is executable during invocation time.