Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-376

"Invalid content was found starting with element" caused by textAnnotation ordering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 6.x.x
    • jBPM Designer
    • Hide

      1. Create a process in business-central
      2. Create a TextAnnotation associating to StartEvent
      3. Create a ScriptNode and EndEvent
      4. Save
      5. Build&Deploy
      See server.log

      Show
      1. Create a process in business-central 2. Create a TextAnnotation associating to StartEvent 3. Create a ScriptNode and EndEvent 4. Save 5. Build&Deploy See server.log

      textAnnotation (= extends artifact) has to be located after flowElement nodes.

      https://github.com/kiegroup/jbpm/blob/6.5.x/jbpm-bpmn2/src/main/xsd/Semantic.xsd#L1190-L1191

      But in Process Designer may place a flowElement Node after textAnnotation. For example, with the steps:
      1. Create a TextAnnotation
      2. Then, create a ScriptTask
      See attached org.jbpm.textAnnotationProcess.v1.0.bpmn2

      It results in the following error.

      16:42:38,209 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 5) Process Info: id:project2.textAnnotationProcess, pkg:org.jbpm, name:textAnnotationProcess, version:1.0 
      Node Info: id:_FD0C3245-20E4-4F02-B17A-0CAE813B38B6 name:S1 
      Parser message: (null: 20, 225): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:scriptTask'. 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.
      

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              rhn-support-tkobayas Toshiya Kobayashi
              Kirill Gaevskii Kirill Gaevskii
              Kirill Gaevskii Kirill Gaevskii
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: