4.2.1 • Published 11 months ago
moddle-context-serializer v4.2.1
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.js';
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.1
11 months ago
4.2.0
1 year ago
4.1.2
1 year ago
4.1.1
2 years ago
4.1.0
2 years ago
4.0.0
2 years ago
3.2.2
2 years ago
3.2.1
2 years ago
3.2.0
2 years ago
2.2.0
2 years ago
3.1.1
2 years ago
3.1.0
2 years ago
3.0.0
2 years ago
2.1.0
3 years ago
2.0.0
3 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago
0.16.1
4 years ago
0.16.0
5 years ago
0.15.0
5 years ago
0.14.1
5 years ago
0.14.0
5 years ago
0.13.0
6 years ago
0.12.1
6 years ago
0.12.0
6 years ago
0.11.0
6 years ago
0.10.0
6 years ago
0.9.0
6 years ago
0.8.0
6 years ago
0.7.0
6 years ago
0.6.0
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.1
6 years ago