summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-05-09 05:25:37 (EDT)
committer Manik Kishore2012-05-16 00:56:11 (EDT)
commitca23148570896107319f7e0048549cdff00de0fa (patch)
tree51a845f812d3bc4eebdb5f87957ae43904a0a547
parentc2c0636c3fae8ab4fede0d5c75282ead36b279b6 (diff)
downloadorg.eclipse.stardust.ide-ca23148570896107319f7e0048549cdff00de0fa.zip
org.eclipse.stardust.ide-ca23148570896107319f7e0048549cdff00de0fa.tar.gz
org.eclipse.stardust.ide-ca23148570896107319f7e0048549cdff00de0fa.tar.bz2
Jira-ID: CRNT-24717
Inconsistent Model Transformation Property causes crash at runtime git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@56185 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java
index fa07e17..953acbb 100644
--- a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java
+++ b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/MessageTransformationController.java
@@ -326,6 +326,8 @@ public class MessageTransformationController {
FieldMapping fm = k.next();
if (fm != null && fieldPathExists(fm.getFieldPath())) {
fieldMappings.put(fm.getFieldPath(), fm);
+ } else {
+ System.out.println();
}
}
refreshJavaScriptContext();
@@ -340,6 +342,8 @@ public class MessageTransformationController {
if (messageType instanceof StructAccessPointType) {
realfieldPath = realfieldPath.substring(realfieldPath.indexOf("/") + 1, realfieldPath.length()); //$NON-NLS-1$
isContained = ((StructAccessPointType)messageType).getXPathMap().containsXPath(realfieldPath);
+ String firstSegment = fieldPath.substring(0, fieldPath.indexOf("/"));
+ isContained = isContained && (firstSegment.equalsIgnoreCase(messageType.getId()));
//It may be possible that this is an Attribute type - check this
if (!isContained) {
String lastSegment = realfieldPath.substring(realfieldPath.lastIndexOf("/") + 1); //$NON-NLS-1$