Open baloodevil opened 8 years ago
Hello baloodevil,
The only part that is used by our bpmn engine are the elements in namespace "http://www.omg.org/spec/BPMN/20100524/MODEL" the others are graphical info which are useless for us.
So for these two bpmn they are the same.
I didn't tested but the result with one or the other should be the same with our engine.
Hi @cyrilschmitt I encountered the exact same issue. It seems like bpmn has an issue parsing the bmpn generated by camunda designer.
I think its a great combination for us to use the bpmn engine from you guys and the camunda designer. I really hope you guys can fix this issue
/Users/zzz/Documents/BPMN/boo.js:7
myProcess.triggerEvent("MyStart");
^
TypeError: Cannot call method 'triggerEvent' of undefined
at /Users/prady/Documents/BPMN/boo.js:7:15
at exports.createUnmanagedProcess (/Users/prady/node_modules/bpmn/lib/public.js:45:13)
at Object.<anonymous> (/Users/prady/Documents/BPMN/boo.js:4:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
@pradysam1, is your process definition in the Camunda editor marked as executable? The exception can lead to looking into parse issues which is not the base problem. The parser wont handle the top level process definition unless it's marked executable. There is, however, a misleading log statement in the code that says there have been multiple processes found when really the problem is that none have been found.
At line 26 in definitions.js
if (processDefinitions.length === 1) { processDefinition = processDefinitions[0]; } else { throw new Error("The BPMN file '" + bpmnFilePath + "'. contains more than one process definition. Use 'getBPMNProcessDefinitions' instead of 'getBPMNProcessDefinition'"); }
You can simply change this:
<process id="Process_1" isExecutable="false">
to
<process id="Process_1">
Btw, the parser should have pre-checking to filter all unnecessary attributes.
I ran into the same issue here, I'm wondering why the choice is made to ignore everything that is not marked as executable. Like the bpmn.io editor, there is no way to disable it other than going into the code and editing it like @yhjor1212 explained.
I designed a workflow using Camunda's bpmn-io, which is a great Javascript/HTML designer/viewer. However the generated BPMN looks completely different than what you have in your samples. Here is an excerpt from both...
bpmn-io...
and comparatively the same sample with e2e's bpmn...
I am new to BPMN, but shouldn't these two be compatible? Shouldn't I be able to design a workflow in any bpmn designer and execute in any execution engine?