Closed TerenYeung closed 1 year ago
If you look at the default implementation of scripts at JavaScript it looks for javascript
explicitely. Make a copy of that file, change it to match your needs, and supply as your script handler to engine:
const Scripts = require('./scripts.js');
const engine = new Engine({ scripts: new Scripts() });
However,if I change this format to "Javascript", it works.
Yes, thats what the regexp pattern is matching.
when I use scriptFormat like: http://www.javascript.com/javascript, it reports error like this: ActivityError: Script format http://www.javascript.com/javascript is unsupported or was not registered for <_E58A0F41-D28E-4275-B3FE-F0AB97EF09DC>. And my bpmn is generate by bpmn editor, a vscode plugin. The whole file is: