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.
- nodejs 16 LTS or later
- Visual Studio Code v1.80 or later
- A Laserfiche Cloud Account
- Creating a Node.js Script Documentation
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/
- 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.