How to install third party libraries?
Is there a way to install other libraries in Workflow5?
I hope to use uuid library to create guid in the workflow.
Actually, Web appbuilder allows us to install third party libraries, but I am not sure if I can achieve this in workflow5.
Thanks.
-
Hi Zak,
Take a look at this section in our documentation for info on including third-party libraries in custom activities: https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/custom-development.htm
Thanks, Stefan
0 -
Thank you, @Stefan Schweigert? .
After downloading the SDK folder, read readme.md file and it provides more useful information.
0 -
Hi, could I get a some help please. I have followed the steps on Reference a Third Party Library for Web Application Environments but unable to get it working.
First I have a simple javascript placed under dist/deps/rng/rng.js like below
function rng() {
return 100;
}
module.exports = rng;
In the main.ts, I have
import { mapDependencies } from '@geocortex/workflow/runtime/app/ActivityPackUtils';
declare var require: Function;
function configure(prefix: string) {
mapDependencies({ myrng: '/deps/rng/rng' }, prefix);
}
in MyActivity.ts, I tried to import the third party library by
import * as RNG from 'myrng';
However, I got error says "Cannot find module 'myrng'."
Any suggestions?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer