4.2.0 • Published 26 days ago
moddle-context-serializer v4.2.0
bpmn-moddle context serializer
Make bpmn-moddle context serializable and mapped to behaviour functions
Documentation
The tests are the documentation. Hence, please study test
A basic example:
import { Serializer, TypeResolver } from 'moddle-context-serializer';
import BpmnModdle from 'bpmn-moddle';
import * as bpmnElementsBehaviour from 'bpmn-elements';
import EscalationEventDefinition from './mytypes/EscalationEventDefinition';
export async function getSerializedContext(source) {
const bpmnModdle = new BpmnModdle();
const moddleContext = await bpmnModdle.fromXML(source);
const typeResolver = TypeResolver(bpmnElementsBehaviour, extender);
return Serializer(moddleContext, typeResolver);
}
function extender(behaviourMapping) {
behaviourMapping['bpmn:EscalationEventDefinition'] = EscalationEventDefinition;
}
4.2.0
26 days ago
4.1.2
3 months ago
4.1.1
6 months ago
4.1.0
10 months ago
4.0.0
11 months ago
3.2.2
1 year ago
3.2.1
1 year ago
3.2.0
1 year ago
2.2.0
1 year ago
3.1.1
1 year ago
3.1.0
1 year ago
3.0.0
1 year ago
2.1.0
2 years ago
2.0.0
2 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.16.1
3 years ago
0.16.0
4 years ago
0.15.0
4 years ago
0.14.1
4 years ago
0.14.0
4 years ago
0.13.0
4 years ago
0.12.1
5 years ago
0.12.0
5 years ago
0.11.0
5 years ago
0.10.0
5 years ago
0.9.0
5 years ago
0.8.0
5 years ago
0.7.0
5 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.0
5 years ago
0.2.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.0.1
5 years ago