CDATA in Sequence Flow Condition [message #1757975] |
Wed, 22 March 2017 13:13  |
Eclipse User |
|
|
|
Hello,
i want to add a conditional expression to a sequence flow. This condition consists of an CDATA element. Unfortunatly the plugin replaces the special chars while generating the source:
<![CDATA[${returnsBooleanValueExpression}]]>
<bpmn2:sequenceFlow id="SequenceFlow_9" name="JA" sourceRef="ExclusiveGateway_2" targetRef="UserTask_3">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="FormalExpression_2" evaluatesToTypeRef="ItemDefinition_1842"><![CDATA[${returnsBooleanValueExpression}]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
Is there any way to avoid that?
Im using
- Eclipse Neon.2
- BPMN2 Modeler: Diagram Editor 1.3.1.Final-v20161006-1425-B58
Kind regards,
Imanuel
|
|
|
Re: CDATA in Sequence Flow Condition [message #1757978 is a reply to message #1757975] |
Wed, 22 March 2017 13:56   |
Eclipse User |
|
|
|
The reason for this is because XML does not allow the special characters '<' and '>' to appear in the text - these are reserved for start & end tags. When the XML is loaded back into the editor, the < and > entities are converted back to < and >.
This should not be a problem unless you are parsing the XML using some text processor instead of loading it with an XML parser.
|
|
|
Re: CDATA in Sequence Flow Condition [message #1757995 is a reply to message #1757975] |
Wed, 22 March 2017 15:44   |
Eclipse User |
|
|
|
Yes. You are right! I thought i had to encapsulate the expression manually within the CDATA block. However that didnt work. The Framework didnt accept it. I think it was the broken CDATA-Tag. So i removed it completely.
Assuming following expression:
${costs > 100 && costs < 200}
In the Source it looks like
${costs > 100 && costs < 200}
Thats weird. The "<"-tag is tanslated but not the ">"-tag...
But after loading the bpmn process everything seems to be ok. So i am fine with that.
Thank yo for the hint.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03556 seconds