Loading script from deployment


#1

I’m new to Camunda, but haven’t been able to find an answer to this in the forum or online docs.
Using the modeller, I have a workflow that is a single script task with an inline script that simply does a Nashorn load on an external script:
load(‘Trace.js’);
variableDump();
(this is a dumbed down example to focus specifically on my problem).
I deploy my .bpmn file and the javascript file together, which I believe puts them in the db, and I can see the two files in cockpit, but when I run the workflow, the load() fails with:
/camunda/deployment:/Trace.js (No such file or directory)

Is this the correct way to load a deployed file from an inline script? If so, do I need to specify some additional base directory?

Thank you for any help you can provide.