@pbinitiative/zenbpm-bpmn-moddle 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +151 -0
- package/package.json +48 -0
- package/resources/zenbpm.json +766 -0
- package/xsd/bpmn-with-zenbpm.xsd +46 -0
- package/xsd/zenbpm.xsd +644 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
Wrapper schema for XSD validation of BPMN 2.0 files that use the zenbpm extension namespace.
|
|
4
|
+
|
|
5
|
+
This file is NOT the zenbpm extension schema itself — see zenbpm.xsd for that.
|
|
6
|
+
Its sole purpose is to pull all required namespace schemas into a single
|
|
7
|
+
entry point that Java's SchemaFactory.newSchema() can consume.
|
|
8
|
+
|
|
9
|
+
When xsd-schema-validator (or any Java-based XSD tool) is pointed at this
|
|
10
|
+
file it loads:
|
|
11
|
+
• BPMN 2.0 core (BPMN20.xsd → Semantic.xsd + BPMNDI.xsd → DC.xsd / DI.xsd)
|
|
12
|
+
• zenbpm extension (zenbpm.xsd)
|
|
13
|
+
|
|
14
|
+
Because Semantic.xsd defines extensionElements as:
|
|
15
|
+
<xsd:any namespace="##other" processContents="lax" …/>
|
|
16
|
+
the validator will resolve and validate zenbpm:* children of extensionElements
|
|
17
|
+
against zenbpm.xsd once that schema is known.
|
|
18
|
+
-->
|
|
19
|
+
<xs:schema
|
|
20
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
21
|
+
|
|
22
|
+
<!-- BPMN 2.0 core (declares bpmn:definitions, all tasks, events, …) -->
|
|
23
|
+
<xs:import
|
|
24
|
+
namespace ="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
25
|
+
schemaLocation="../node_modules/bpmn-moddle/resources/bpmn/xsd/BPMN20.xsd"/>
|
|
26
|
+
|
|
27
|
+
<!-- BPMN DI (BPMNDiagram, BPMNShape, BPMNEdge, …) -->
|
|
28
|
+
<xs:import
|
|
29
|
+
namespace ="http://www.omg.org/spec/BPMN/20100524/DI"
|
|
30
|
+
schemaLocation="../node_modules/bpmn-moddle/resources/bpmn/xsd/BPMNDI.xsd"/>
|
|
31
|
+
|
|
32
|
+
<!-- Draw-Coordinates (DC) and Draw-Interface (DI) support schemas -->
|
|
33
|
+
<xs:import
|
|
34
|
+
namespace ="http://www.omg.org/spec/DD/20100524/DC"
|
|
35
|
+
schemaLocation="DC.xsd"/>
|
|
36
|
+
|
|
37
|
+
<xs:import
|
|
38
|
+
namespace ="http://www.omg.org/spec/DD/20100524/DI"
|
|
39
|
+
schemaLocation="DI.xsd"/>
|
|
40
|
+
|
|
41
|
+
<!-- zenbpm extension namespace (all zenbpm:* extension elements) -->
|
|
42
|
+
<xs:import
|
|
43
|
+
namespace ="http://zenbpm.pbinitiative.org/1.0"
|
|
44
|
+
schemaLocation="zenbpm.xsd"/>
|
|
45
|
+
|
|
46
|
+
</xs:schema>
|