Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7836

Cannot set the language attribute of a SequenceFlow ConditionExpression

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.5.0
    • 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

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

                Created:
                Updated:
                Resolved: