Cannot set the language attribute of a SequenceFlow ConditionExpression

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Won't Fix
    • Priority: L3 - Default
    • None
    • Affects Version/s: 7.5.0
    • Component/s: bpmn model api, engine
    • None

      The language attribute XSD Type for the conditionExpression of a SequnceFlow should be tFormalExpression not tExpression

      The following produces a schema validation exception

      ConditionExpression cEl = modelInstance.newInstance(ConditionExpression.class);            cEl.setLanguage("qscript");
      sequenceFlow.setConditionExpression(cEl);
      

      Solution:
      Change the XSD type in the Semantic.xsd projects
      camunda-bpmn-model
      camunda-engine found at package: org.camunda.bpmn.engine.impl.bpmn.parser

      Example:

      <xsd:element name="sequenceFlow" type="tSequenceFlow" substitutionGroup="flowElement"/>
      <xsd:complexType name="tSequenceFlow">
      	<xsd:complexContent>
      		<xsd:extension base="tFlowElement">
      		      <xsd:sequence>
      				<xsd:element name="conditionExpression"  type="tFormalExpression" minOccurs="0" maxOccurs="1"/>
      			</xsd:sequence>
      			...
      			</xsd:extension>
      		</xsd:complexContent>
      	</xsd:complexType>
      

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Malte Schwenker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: