bpmnServer / bpmn-server

BPMN 2.0 server for Node.js , providing modeling, execution, persistence and monitoring for Workflow. along with sample UI. Intended to be developers workbench for BPMN 2.0
MIT License
180 stars 47 forks source link

getDefinition method, instead of definitionsPath #207

Closed linonetwo closed 3 months ago

linonetwo commented 3 months ago

I'm storing all BPMN files inside db, and can load them with id, instead of filename. Can definitionsPath (and other fs related fields) be optional? And allow loading everything with custom callback?

ralphhanna commented 3 months ago

Yes, you don't have to use definitionsPath Not sure what you mean by custom callback, as in a method in appDelegate?

linonetwo commented 3 months ago

If I learned correctly, AppDelegate is the externalWorker (in camunda 8 concept). External task and JS eval happens here.

And definitionsPath is the place to read BPMN files. If I'm not using it, where will bpmn-server load the BPMN definition that is needed?

by custom callback, as in a method in appDelegate

Yes, this can be in AppDelegate Class. Can I PR to add one?

linonetwo commented 3 months ago

I should use definitions(server: any): IModelsDatastore;