I’m new to bpmn.io tools, but very impressed so far - nice work!
We are looking to create a simple process model based on answers to interview questions. E.g. What is the next Task in the process? As the user answers these questions, I’d like to use an API to incrementally build the BPMN model and display it in the diagram viewer.
It is quite tedious to construct the graphical (bpmndi) elements in this fashion, or to work directly with xml for that matter. All those edges, labels and corresponding coordinates…
Is there any option for the tooling to accept a model (bpmn only, no bpmndi) then create a basic rendered layout (even if not pretty)?
I have the modeler APIs working, but this CLI or CLI DSL approach might save us some work.
However, when I add the CLI module, while I am able to run cli.help(), cli.elements() returns empty array, and appending an item results in:
Error: failed to execute with args <[StartEvent_1, bpmn:ExclusiveGateway, 150,0]> : could not parse : elementRegistry.getById is not a function
I have created a diagram with StartEvent_1.
Can you point me to a working example or test for the CLI or CLI DSL approach? Thanks!