Skip to content

Commit b99644b

Browse files
author
Saumya Singh
committed
Revert "kie-issues#1926: Removing BPMN XSD resources (apache#3899)"
This reverts commit fffcb44.
1 parent 2184d4b commit b99644b

26 files changed

+5052
-62
lines changed

.rat-excludes

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,38 @@ test_regression.pmml
3636
test_tree.pmml
3737
# drools/kogito-scenario-simulation/src/test/resources/dmnPmml/test_regression.pmml
3838
test_regression.pmml
39+
# jbpm/jbpm-bpmn2/src/main/resources/META-INF/BPMN20.xsd
40+
BPMN20.xsd
41+
# jbpm/jbpm-bpmn2/src/main/resources/META-INF/BPMNDI.xsd
42+
BPMNDI.xsd
43+
# jbpm/jbpm-bpmn2/src/main/resources/META-INF/DC.xsd
44+
DC.xsd
45+
# jbpm/jbpm-bpmn2/src/main/resources/META-INF/DI.xsd
46+
DI.xsd
47+
# jbpm/jbpm-bpmn2/src/main/resources/META-INF/DiagramDefinition.xsd
48+
DiagramDefinition.xsd
49+
# jbpm/jbpm-bpmn2/src/main/resources/META-INF/DiagramInterchange.xsd
50+
DiagramInterchange.xsd
51+
# jbpm/jbpm-bpmn2/src/main/resources/META-INF/Semantic.xsd
52+
Semantic.xsd
53+
# jbpm/jbpm-bpmn2/src/main/resources/META-INF/bpsim.xsd
54+
bpsim.xsd
55+
# jbpm/jbpm-bpmn2/src/main/xsd/BPMN20.xsd
56+
BPMN20.xsd
57+
# jbpm/jbpm-bpmn2/src/main/xsd/BPMNDI.xsd
58+
BPMNDI.xsd
59+
# jbpm/jbpm-bpmn2/src/main/xsd/DC.xsd
60+
DC.xsd
61+
# jbpm/jbpm-bpmn2/src/main/xsd/DI.xsd
62+
DI.xsd
63+
# jbpm/jbpm-bpmn2/src/main/xsd/DiagramDefinition.xsd
64+
DiagramDefinition.xsd
65+
# jbpm/jbpm-bpmn2/src/main/xsd/DiagramInterchange.xsd
66+
DiagramInterchange.xsd
67+
# jbpm/jbpm-bpmn2/src/main/xsd/Semantic.xsd
68+
Semantic.xsd
69+
# jbpm/jbpm-bpmn2/src/main/xsd/bpsim.xsd
70+
bpsim.xsd
3971
# jbpm/jbpm-flow/src/main/resources/META-INF/services/org.jbpm.ruleflow.core.factory.provider.NodeFactoryProvider
4072
org.jbpm.ruleflow.core.factory.provider.NodeFactoryProvider
4173
# jbpm/jbpm-flow-builder/src/main/resources/META-INF/services/org.jbpm.compiler.canonical.builtin.ReturnValueEvaluatorBuilder

LICENSE

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,116 @@
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202202

203+
204+
------------------------------------------------------------------------------------
205+
for jbpm/jbpm-bpmn2/src/main/resources/META-INF/BPMN20.xsd
206+
jbpm/jbpm-bpmn2/src/main/resources/META-INF/BPMNDI.xsd
207+
jbpm/jbpm-bpmn2/src/main/resources/META-INF/DC.xsd
208+
jbpm/jbpm-bpmn2/src/main/resources/META-INF/DI.xsd
209+
jbpm/jbpm-bpmn2/src/main/resources/META-INF/DiagramDefinition.xsd
210+
jbpm/jbpm-bpmn2/src/main/resources/META-INF/DiagramInterchange.xsd
211+
jbpm/jbpm-bpmn2/src/main/resources/META-INF/Semantic.xsd
212+
jbpm/jbpm-bpmn2/src/main/resources/META-INF/bpsim.xsd
213+
jbpm/jbpm-bpmn2/src/main/xsd/BPMN20.xsd
214+
jbpm/jbpm-bpmn2/src/main/xsd/BPMNDI.xsd
215+
jbpm/jbpm-bpmn2/src/main/xsd/DC.xsd
216+
jbpm/jbpm-bpmn2/src/main/xsd/DI.xsd
217+
jbpm/jbpm-bpmn2/src/main/xsd/DiagramDefinition.xsd
218+
jbpm/jbpm-bpmn2/src/main/xsd/DiagramInterchange.xsd
219+
jbpm/jbpm-bpmn2/src/main/xsd/Semantic.xsd
220+
jbpm/jbpm-bpmn2/src/main/xsd/bpsim.xsd
221+
222+
Copyright © 2010, Axway
223+
Copyright © 2010, BizAgi
224+
Copyright © 2010, Bruce Silver Associates
225+
Copyright © 2010, IDS Scheer
226+
Copyright © 2010, IBM Corp.
227+
Copyright © 2010, MEGA International
228+
Copyright © 2010, Model Driven Solutions
229+
Copyright © 2010, Object Management Group
230+
Copyright © 2010, Oracle
231+
Copyright © 2010, SAP AG
232+
Copyright © 2010, Software AG
233+
Copyright © 2010, TIBCO Software
234+
Copyright © 2010, Unisys
235+
236+
USE OF SPECIFICATION - TERMS, CONDITIONS & NOTICES
237+
The material in this document details an Object Management Group specification in accordance with the terms,
238+
conditions and notices set forth below. This document does not represent a commitment to implement any portion of this
239+
specification in any company's products. The information contained in this document is subject to change without notice.
240+
241+
LICENSES
242+
The companies listed above have granted to the Object Management Group, Inc. (OMG) a nonexclusive, royalty-free,
243+
paid up, worldwide license to copy and distribute this document and to modify this document and distribute copies of the
244+
modified version. Each of the copyright holders listed above has agreed that no person shall be deemed to have infringed
245+
the copyright in the included material of any such copyright holder by reason of having used the specification set forth
246+
herein or having conformed any computer software to the specification.
247+
Subject to all of the terms and conditions below, the owners of the copyright in this specification hereby grant you a fullypaid up, non-exclusive, nontransferable, perpetual, worldwide license (without the right to sublicense), to use this
248+
specification to create and distribute software and special purpose specifications that are based upon this specification,
249+
and to use, copy, and distribute this specification as provided under the Copyright Act; provided that: (1) both the
250+
copyright notice identified above and this permission notice appear on any copies of this specification; (2) the use of the
251+
specifications is for informational purposes and will not be copied or posted on any network computer or broadcast in any
252+
media and will not be otherwise resold or transferred for commercial purposes; and (3) no modifications are made to this
253+
specification. This limited permission automatically terminates without notice if you breach any of these terms or
254+
conditions. Upon termination, you will destroy immediately any copies of the specifications in your possession or control.
255+
256+
PATENTS
257+
The attention of adopters is directed to the possibility that compliance with or adoption of OMG specifications may
258+
require use of an invention covered by patent rights. OMG shall not be responsible for identifying patents for which a
259+
license may be required by any OMG specification, or for conducting legal inquiries into the legal validity or scope of
260+
those patents that are brought to its attention. OMG specifications are prospective and advisory only. Prospective users are
261+
responsible for protecting themselves against liability for infringement of patents.
262+
263+
GENERAL USE RESTRICTIONS
264+
Any unauthorized use of this specification may violate copyright laws, trademark laws, and communications regulations
265+
and statutes. This document contains information which is protected by copyright. All Rights Reserved. No part of this
266+
work covered by copyright herein may be reproduced or used in any form or by any means--graphic, electronic, or
267+
mechanical, including photocopying, recording, taping, or information storage and retrieval systems--without permission
268+
of the copyright owner.
269+
270+
DISCLAIMER OF WARRANTY
271+
WHILE THIS PUBLICATION IS BELIEVED TO BE ACCURATE, IT IS PROVIDED "AS IS" AND MAY CONTAIN
272+
ERRORS OR MISPRINTS. THE OBJECT MANAGEMENT GROUP AND THE COMPANIES LISTED ABOVE
273+
MAKE NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS PUBLICATION,
274+
INCLUDING BUT NOT LIMITED TO ANY WARRANTY OF TITLE OR OWNERSHIP, IMPLIED WARRANTY OF
275+
MERCHANTABILITY OR WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE.
276+
IN NO EVENT SHALL THE OBJECT MANAGEMENT GROUP OR ANY OF THE COMPANIES LISTED ABOVE
277+
BE LIABLE FOR ERRORS CONTAINED HEREIN OR FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
278+
CONSEQUENTIAL, RELIANCE OR COVER DAMAGES, INCLUDING LOSS OF PROFITS, REVENUE, DATA OR
279+
USE, INCURRED BY ANY USER OR ANY THIRD PARTY IN CONNECTION WITH THE FURNISHING,
280+
PERFORMANCE, OR USE OF THIS MATERIAL, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
281+
DAMAGES.
282+
The entire risk as to the quality and performance of software developed using this specification is borne by you. This
283+
disclaimer of warranty constitutes an essential part of the license granted to you to use this specification.
284+
285+
RESTRICTED RIGHTS LEGEND
286+
Use, duplication or disclosure by the U.S. Government is subject to the restrictions set forth in subparagraph (c) (1) (ii) of
287+
The Rights in Technical Data and Computer Software Clause at DFARS 252.227-7013 or in subparagraph (c)(1) and (2)
288+
of the Commercial Computer Software - Restricted Rights clauses at 48 C.F.R. 52.227-19 or as specified in 48 C.F.R. 227-
289+
7202-2 of the DoD F.A.R. Supplement and its successors, or as specified in 48 C.F.R. 12.212 of the Federal Acquisition
290+
Regulations and its successors, as applicable. The specification copyright owners are as indicated above and may be
291+
contacted through the Object Management Group, 140 Kendrick Street, Needham, MA 02494, U.S.A.
292+
293+
TRADEMARKS
294+
MDA®, Model Driven Architecture®, UML®, UML Cube logo®, OMG Logo®, CORBA® and XMI® are registered
295+
trademarks of the Object Management Group, Inc., and Object Management Group™, OMG™ , Unified Modeling
296+
Language™, Model Driven Architecture Logo™, Model Driven Architecture Diagram™, CORBA logos™, XMI
297+
Logo™, CWM™, CWM Logo™, IIOP™ , IMM™ , MOF™ , OMG Interface Definition Language (IDL)™ , and OMG
298+
Systems Modeling Language (OMG SysML)™ are trademarks of the Object Management Group. All other products or
299+
company names mentioned are used for identification purposes only, and may be trademarks of their respective owners.
300+
301+
COMPLIANCE
302+
The copyright holders listed above acknowledge that the Object Management Group (acting itself or through its
303+
designees) is and shall at all times be the sole entity that may authorize developers, suppliers and sellers of computer
304+
software to use certification marks, trademarks or other special designations to indicate compliance with these materials.
305+
Software developed under the terms of this license may claim compliance or conformance with this specification if and
306+
only if the software compliance is of a nature fully matching the applicable compliance points as stated in the
307+
specification. Software developed only partially matching the applicable compliance points may claim only that the
308+
software was based on this specification, but may not claim compliance or conformance with this specification. In the
309+
event that testing suites are implemented or approved by Object Management Group, Inc., software developed using this
310+
specification may claim compliance or conformance with the specification only if the software satisfactorily completes
311+
the testing suites.
312+
203313
-------------------------------------------------------------------------------------------------------
204314
for kogito-codegen-modules/kogito-codegen-predictions/src/test/resources/prediction/test_multiplemodels.pmml
205315
kogito-codegen-modules/kogito-codegen-predictions/src/test/resources/prediction/test_scorecard.pmml

jbpm/jbpm-bpmn2/pom.xml

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@
6060
<groupId>org.kie.kogito</groupId>
6161
<artifactId>jbpm-flow-builder</artifactId>
6262
</dependency>
63-
<dependency>
64-
<groupId>org.kie.kogito</groupId>
65-
<artifactId>jbpm-xsd-resources</artifactId>
66-
</dependency>
6763
<dependency>
6864
<groupId>org.kie.kogito</groupId>
6965
<artifactId>kogito-dmn</artifactId>
@@ -76,6 +72,7 @@
7672
<groupId>org.slf4j</groupId>
7773
<artifactId>slf4j-api</artifactId>
7874
</dependency>
75+
7976
<dependency>
8077
<groupId>jakarta.xml.bind</groupId>
8178
<artifactId>jakarta.xml.bind-api</artifactId>
@@ -99,11 +96,15 @@
9996
</dependency>
10097
</dependencies>
10198

99+
102100
<build>
103101
<resources>
104102
<resource>
105103
<directory>src/main/resources</directory>
106104
</resource>
105+
<resource>
106+
<directory>src/main/xsd</directory>
107+
</resource>
107108
</resources>
108109

109110
<testResources>
@@ -117,47 +118,6 @@
117118
</testResource>
118119
</testResources>
119120

120-
<plugins>
121-
<!-- Unpack XSD resources from org.kie.kogito:jbpm-xsd-resources -->
122-
<plugin>
123-
<groupId>org.apache.maven.plugins</groupId>
124-
<artifactId>maven-dependency-plugin</artifactId>
125-
<executions>
126-
<execution>
127-
<id>unpack</id>
128-
<phase>generate-resources</phase>
129-
<goals>
130-
<goal>unpack</goal>
131-
</goals>
132-
<configuration>
133-
<artifactItems>
134-
<artifactItem>
135-
<groupId>org.kie.kogito</groupId>
136-
<artifactId>jbpm-xsd-resources</artifactId>
137-
<version>${project.version}</version>
138-
<type>jar</type>
139-
<overWrite>true</overWrite>
140-
<outputDirectory>${project.build.directory}/classes/META-INF</outputDirectory>
141-
<!-- fetch only those specific xsd -->
142-
<includes>
143-
**/20100501/BPMN20.xsd,
144-
**/20100501/BPMNDI.xsd,
145-
**/20100501/DC.xsd,
146-
**/20100501/DI.xsd,
147-
**/20100501/Semantic.xsd
148-
</includes>
149-
<fileMappers>
150-
<!-- remove all parent directories from it, flattening it under the classes directory -->
151-
<org.codehaus.plexus.components.io.filemappers.FlattenFileMapper/>
152-
</fileMappers>
153-
</artifactItem>
154-
</artifactItems>
155-
</configuration>
156-
</execution>
157-
</executions>
158-
</plugin>
159-
</plugins>
160-
161121
</build>
162122

163123
</project>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified"
3+
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
6+
targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL">
7+
8+
<xsd:import namespace="http://www.omg.org/spec/BPMN/20100524/DI" schemaLocation="BPMNDI.xsd"/>
9+
10+
<xsd:include schemaLocation="Semantic.xsd"/>
11+
12+
<xsd:element name="definitions" type="tDefinitions"/>
13+
<xsd:complexType name="tDefinitions">
14+
<xsd:sequence>
15+
<xsd:element ref="import" minOccurs="0" maxOccurs="unbounded"/>
16+
<xsd:element ref="extension" minOccurs="0" maxOccurs="unbounded"/>
17+
<xsd:element ref="rootElement" minOccurs="0" maxOccurs="unbounded"/>
18+
<xsd:element ref="bpmndi:BPMNDiagram" minOccurs="0" maxOccurs="unbounded"/>
19+
<xsd:element ref="relationship" minOccurs="0" maxOccurs="unbounded"/>
20+
</xsd:sequence>
21+
<xsd:attribute name="id" type="xsd:ID" use="optional"/>
22+
<xsd:attribute name="name" type="xsd:string"/>
23+
<xsd:attribute name="targetNamespace" type="xsd:anyURI" use="required"/>
24+
<xsd:attribute name="expressionLanguage" type="xsd:anyURI" use="optional" default="http://www.w3.org/1999/XPath"/>
25+
<xsd:attribute name="typeLanguage" type="xsd:anyURI" use="optional" default="http://www.w3.org/2001/XMLSchema"/>
26+
<xsd:attribute name="exporter" type="xsd:string"/>
27+
<xsd:attribute name="exporterVersion" type="xsd:string"/>
28+
<xsd:anyAttribute namespace="##other" processContents="lax"/>
29+
</xsd:complexType>
30+
31+
<xsd:element name="import" type="tImport"/>
32+
<xsd:complexType name="tImport">
33+
<xsd:attribute name="namespace" type="xsd:anyURI" use="required"/>
34+
<xsd:attribute name="location" type="xsd:string" use="required"/>
35+
<xsd:attribute name="importType" type="xsd:anyURI" use="required"/>
36+
</xsd:complexType>
37+
38+
</xsd:schema>

jbpm/jbpm-bpmn2/src/main/resources/META-INF/BPMN2SemanticModule.conf

100644100755
File mode changed.
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" targetNamespace="http://www.omg.org/spec/BPMN/20100524/DI" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
4+
<xsd:import namespace="http://www.omg.org/spec/DD/20100524/DC" schemaLocation="DC.xsd" />
5+
<xsd:import namespace="http://www.omg.org/spec/DD/20100524/DI" schemaLocation="DI.xsd" />
6+
7+
<xsd:element name="BPMNDiagram" type="bpmndi:BPMNDiagram" />
8+
<xsd:element name="BPMNPlane" type="bpmndi:BPMNPlane" />
9+
<xsd:element name="BPMNLabelStyle" type="bpmndi:BPMNLabelStyle" />
10+
<xsd:element name="BPMNShape" type="bpmndi:BPMNShape" substitutionGroup="di:DiagramElement" />
11+
<xsd:element name="BPMNLabel" type="bpmndi:BPMNLabel" />
12+
<xsd:element name="BPMNEdge" type="bpmndi:BPMNEdge" substitutionGroup="di:DiagramElement" />
13+
14+
<xsd:complexType name="BPMNDiagram">
15+
<xsd:complexContent>
16+
<xsd:extension base="di:Diagram">
17+
<xsd:sequence>
18+
<xsd:element ref="bpmndi:BPMNPlane" />
19+
<xsd:element ref="bpmndi:BPMNLabelStyle" maxOccurs="unbounded" minOccurs="0" />
20+
</xsd:sequence>
21+
</xsd:extension>
22+
</xsd:complexContent>
23+
</xsd:complexType>
24+
25+
<xsd:complexType name="BPMNPlane">
26+
<xsd:complexContent>
27+
<xsd:extension base="di:Plane">
28+
<xsd:attribute name="bpmnElement" type="xsd:QName" />
29+
</xsd:extension>
30+
</xsd:complexContent>
31+
</xsd:complexType>
32+
33+
<xsd:complexType name="BPMNEdge">
34+
<xsd:complexContent>
35+
<xsd:extension base="di:LabeledEdge">
36+
<xsd:sequence>
37+
<xsd:element ref="bpmndi:BPMNLabel" minOccurs="0" />
38+
</xsd:sequence>
39+
<xsd:attribute name="bpmnElement" type="xsd:QName" />
40+
<xsd:attribute name="sourceElement" type="xsd:QName" />
41+
<xsd:attribute name="targetElement" type="xsd:QName" />
42+
<xsd:attribute name="messageVisibleKind" type="bpmndi:MessageVisibleKind" />
43+
</xsd:extension>
44+
</xsd:complexContent>
45+
</xsd:complexType>
46+
47+
<xsd:complexType name="BPMNShape">
48+
<xsd:complexContent>
49+
<xsd:extension base="di:LabeledShape">
50+
<xsd:sequence>
51+
<xsd:element ref="bpmndi:BPMNLabel" minOccurs="0" />
52+
</xsd:sequence>
53+
<xsd:attribute name="bpmnElement" type="xsd:QName" />
54+
<xsd:attribute name="isHorizontal" type="xsd:boolean" />
55+
<xsd:attribute name="isExpanded" type="xsd:boolean" />
56+
<xsd:attribute name="isMarkerVisible" type="xsd:boolean" />
57+
<xsd:attribute name="isMessageVisible" type="xsd:boolean" />
58+
<xsd:attribute name="participantBandKind" type="bpmndi:ParticipantBandKind" />
59+
<xsd:attribute name="choreographyActivityShape" type="xsd:QName"/>
60+
</xsd:extension>
61+
</xsd:complexContent>
62+
</xsd:complexType>
63+
64+
<xsd:complexType name="BPMNLabel">
65+
<xsd:complexContent>
66+
<xsd:extension base="di:Label">
67+
<xsd:attribute name="labelStyle" type="xsd:QName" />
68+
</xsd:extension>
69+
</xsd:complexContent>
70+
</xsd:complexType>
71+
72+
<xsd:complexType name="BPMNLabelStyle">
73+
<xsd:complexContent>
74+
<xsd:extension base="di:Style">
75+
<xsd:sequence>
76+
<xsd:element ref="dc:Font" />
77+
</xsd:sequence>
78+
</xsd:extension>
79+
</xsd:complexContent>
80+
</xsd:complexType>
81+
82+
<xsd:simpleType name="ParticipantBandKind">
83+
<xsd:restriction base="xsd:string">
84+
<xsd:enumeration value="top_initiating" />
85+
<xsd:enumeration value="middle_initiating" />
86+
<xsd:enumeration value="bottom_initiating" />
87+
<xsd:enumeration value="top_non_initiating" />
88+
<xsd:enumeration value="middle_non_initiating" />
89+
<xsd:enumeration value="bottom_non_initiating" />
90+
</xsd:restriction>
91+
</xsd:simpleType>
92+
93+
<xsd:simpleType name="MessageVisibleKind">
94+
<xsd:restriction base="xsd:string">
95+
<xsd:enumeration value="initiating" />
96+
<xsd:enumeration value="non_initiating" />
97+
</xsd:restriction>
98+
</xsd:simpleType>
99+
100+
</xsd:schema>

jbpm/jbpm-bpmn2/src/main/resources/META-INF/BPMNWorkDefinitions.conf

100644100755
File mode changed.

0 commit comments

Comments
 (0)