jankapunkt / bpmntools

Primitive approach of integrating the bpmn-js modeler (from bpmn.io) into a meteor project.
4 stars 0 forks source link

Less code not loaded #1

Open stephdion opened 7 years ago

stephdion commented 7 years ago

Hi Jankapunkt,

Do you have a work around for the Less problem?

Thank's in advance Steph D.

jankapunkt commented 7 years ago

Hi Steph,

the bad news: currently not :-(

good news: If I have time, this package is rewritten soon, so that the original npm packages are fully wrapped inside this one. How urgent is this to you right now?

stephdion commented 7 years ago

Hi Jankapunkt, wow realy fast response...:) It's not so urgent because i have a app runing in python and is working. But i look to rebuild in Meteor for more reactivity. If you rewritte, i think considering React is a good idea..:)

stephdion commented 6 years ago

Hi Jankapunkt, i search how to save data in document? do you have done in meteor? Regard's steph

jankapunkt commented 6 years ago

Hi Steph,

yes but it depends on what you mean with data. Do you want to save the workflow itself or do you want to link certain elements with documents from your mongodb e.g by _id?

The first one can be approached by calling

modeler.saveXML(function(err, res){
   // add res to your document and insert/update document
});

The second approach requires to create extension elements, like here: https://github.com/bpmn-io/bpmn-js-examples/tree/master/custom-meta-model Then you can create custom extensions to element, e.g. making it storing the document _id value.

If you use autoform, then you may check out my new extension: https://github.com/jankapunkt/meteor-autoform-bpmn

it is very fresh but I am currently working on it and will improve it a lot in the next weeks.

jankapunkt commented 6 years ago

Hi @stephdion please check out the following package: https://github.com/jankapunkt/meteor-autoform-bpmn

With this extension for AutoForm you can directly save your modeler diagram into a document.

There is also a minimal example project that shows how to use this package: https://github.com/jankapunkt/meteor-autoform-bpmn-example