When saving my business process, which I modelled using the workbench, there are no errors shown and the project can successfully be built and deployed to the KieServer.
When trying to start a process instance, I noticed that there seemed to be no known process definitions in the deployed container. On investigation of the server logs, I found the following messages:
ERROR [org.kie.server.services.jbpm.JbpmKieServerExtension] (http-/address) Error when creating container name by extension jBPM KIE Server extension
INFO [org.kie.server.services.impl.KieServerImpl] (http-/address) Container name (for release id GAV) successfully started
Those messages were rather irritating. How can the container be started successfully, when there are errors creating it in the first place?
Having a look at the logs of the workbench-server, I found the following:
ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 1) (null: 266, 298): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:callActivity'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":artifact, "http://www.omg.org/spec/BPMN/20100524/MODEL":resourceRole, "http://www.omg.org/spec/BPMN/20100524/MODEL":correlationSubscription, "http://www.omg.org/spec/BPMN/20100524/MODEL":supports}' is expected.
the mentioned "callActivity" element looks like this:
<bpmn2:callActivity id="_688D63BA-1DF9-4758-8120-328522B1EC08" drools:selectable="true" drools:independent="true" drools:waitForCompletion="true" color:background-color="#fafad2" color:border-color="#000000" color:color="#000000" name="Review offers" calledElement="b2b-platform.ReviewOffers"> <bpmn2:extensionElements> <drools:metaData name="elementname"> <drools:metaValue><![CDATA[Review offers]]></drools:metaValue> </drools:metaData> </bpmn2:extensionElements> <bpmn2:incoming>_573375A6-B9C1-45F0-8F3C-930A99F0364D</bpmn2:incoming> <bpmn2:outgoing>_1B59A777-80AF-4605-800E-517EEE91BE4C</bpmn2:outgoing> <bpmn2:ioSpecification id="_Ma6p_YVaEeaneITt54HboA"> <bpmn2:dataInput id="_688D63BA-1DF9-4758-8120-328522B1EC08_orderInputX" drools:dtype="de.clab.gemini.entities.GeminiOrder" itemSubjectRef="__688D63BA-1DF9-4758-8120-328522B1EC08_orderInputXItem" name="order"/> <bpmn2:dataOutput id="_688D63BA-1DF9-4758-8120-328522B1EC08_actionOutputX" drools:dtype="String" itemSubjectRef="__688D63BA-1DF9-4758-8120-328522B1EC08_actionOutputXItem" name="action"/> <bpmn2:dataOutput id="_688D63BA-1DF9-4758-8120-328522B1EC08_orderOutputX" drools:dtype="de.clab.gemini.entities.GeminiOrder" itemSubjectRef="__688D63BA-1DF9-4758-8120-328522B1EC08_orderOutputXItem" name="order"/> <bpmn2:inputSet id="_Ma6p_oVaEeaneITt54HboA"> <bpmn2:dataInputRefs>_688D63BA-1DF9-4758-8120-328522B1EC08_orderInputX</bpmn2:dataInputRefs> </bpmn2:inputSet> <bpmn2:outputSet id="_Ma6p_4VaEeaneITt54HboA"> <bpmn2:dataOutputRefs>_688D63BA-1DF9-4758-8120-328522B1EC08_actionOutputX</bpmn2:dataOutputRefs> <bpmn2:dataOutputRefs>_688D63BA-1DF9-4758-8120-328522B1EC08_orderOutputX</bpmn2:dataOutputRefs> </bpmn2:outputSet> </bpmn2:ioSpecification> <bpmn2:dataInputAssociation id="_Ma6qAIVaEeaneITt54HboA"> <bpmn2:sourceRef>order</bpmn2:sourceRef> <bpmn2:targetRef>_688D63BA-1DF9-4758-8120-328522B1EC08_orderInputX</bpmn2:targetRef> </bpmn2:dataInputAssociation> <bpmn2:dataOutputAssociation id="_Ma6qAYVaEeaneITt54HboA"> <bpmn2:sourceRef>_688D63BA-1DF9-4758-8120-328522B1EC08_actionOutputX</bpmn2:sourceRef> <bpmn2:targetRef>nextAction</bpmn2:targetRef> </bpmn2:dataOutputAssociation> <bpmn2:dataOutputAssociation id="_Ma6qAoVaEeaneITt54HboA"> <bpmn2:sourceRef>_688D63BA-1DF9-4758-8120-328522B1EC08_orderOutputX</bpmn2:sourceRef> <bpmn2:targetRef>order</bpmn2:targetRef> </bpmn2:dataOutputAssociation> </bpmn2:callActivity>
At this point I wondered
- Why does the workbench not indicate any error when the XMLParser fails?
- Why are those elements necessary in a "callActivity"? The BPMN2 standard does not state anything like that. (I assume the error is thrown in the wrong location)
The whole BPMN2 file is attached.
- is related to
-
RHPAM-376 "Invalid content was found starting with element" caused by textAnnotation ordering
- Closed