Bringing the power of the bpmn-js modeler to your AutoForm
This packages wraps the bpmn-js modeler and bpmn-jsproperties-panel into an "out-of-the-box extension" for aldeed:autoform. "Out-of-the-box extension" means, that it saves the modeled bpmn xml as xml-string into the specified field without any initial configuration required. The modeler allows you to set the camunda moddle options, so that your autoform lets you create camunda compatible bpmn process definitions.
0.1.6
AutoForm@6.3.0
0.1.5
0.1.4
0.1.3
See the /example
README on how to run the example project (it's easy).
This package requires Meteor 1.6 or higher and is currently built against with AutoForm 6.3.0
Note: Before you install you should read one the AutoForm installation guide.
As this packages comes with fixed dependencies (very important for a stable release) you just need to add it as a meteor package:
meteor add jkuester:autoform-bpmn
Define a field as autoform
type `in Schema.
import SimpleSchema from 'simpl-schema';
const bpmnSchema = new SimpleSchema({
data: {
autoform: {
type:'bpmn',
}
}
})
That's it. When you load your form you should be able to start modeling immediately.
Currently your model is updated on click of event of the save button. So keep in mind when modeling to click save from time to time. Clicking the modeler's save button will only update the bpmn xml value to the field and not trigger any AutoForm submit!
In the future there will be an autosave on commandStack.change
which is basically any registered change.
Currently it uses the following versions:
'bpmn-js': '0.27.6',
'bpmn-js-properties-panel': '0.22.1',
'camunda-bpmn-moddle': '2.0.0',
'diagram-js': '0.28.2',
Wiring up the modeler, properties-panel with all the relevant .less
files is a real hassle and not trivial at all.
To comfort you as user this is all now wrapped up and you don't need to install the bpmn-js related packages besides.
So the decision is usability over configurability. Previous versions of this package used to soft-depend on the npm packages.
However, by integrating the properties panel it has been revealed, that including the styles did not work that well without hacky solutions.
MIT License