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

Cannot set the language attribute of a SequenceFlow ConditionExpression

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Won't Fix
    • L3 - Default
    • None
    • 7.5.0
    • bpmn model api, engine
    • None

    Description

      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>
      

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce