| author | Rainer Pielmann | 2012-11-30 07:56:07 (EST) |
|---|---|---|
| committer | Stephan Born | 2012-11-30 07:56:07 (EST) |
| commit | 7602eea37166eb3e91293ef635555a572c28a529 (patch) (side-by-side diff) | |
| tree | bab8b2471e46e33550c0c8acfddc103f58eb87f9 | |
| parent | e60464ca4f96e63fd656fa91c0c10a2655e6f3e3 (diff) | |
| download | org.eclipse.stardust.ui.web-7602eea37166eb3e91293ef635555a572c28a529.zip org.eclipse.stardust.ui.web-7602eea37166eb3e91293ef635555a572c28a529.tar.gz org.eclipse.stardust.ui.web-7602eea37166eb3e91293ef635555a572c28a529.tar.bz2 | |
CRNT-27160 Web based modeler: Error thrown while model deployment which has a process with process attachment enabled
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@61270 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java index 8fd9741..08b6b1f 100644 --- a/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java +++ b/web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java @@ -934,11 +934,9 @@ public abstract class ModelElementUnmarshaller implements ModelUnmarshaller for (int n = 0; n < dataPathes.size(); ++n) { + ModelType model = ModelUtils.findContainingModel(processDefinition); JsonObject dataPathJson = dataPathes.get(n).getAsJsonObject(); DataPathType dataPath = getModelBuilderFacade().createDataPath(); - ModelType model = ModelUtils.findContainingModel(processDefinition); - long maxOID = XpdlModelUtils.getMaxUsedOid(model); - dataPath.setElementOid(maxOID); dataPath.setId(getModelBuilderFacade().createIdFromName( dataPathJson.get(ModelerConstants.NAME_PROPERTY).getAsString())); @@ -953,7 +951,8 @@ public abstract class ModelElementUnmarshaller implements ModelUnmarshaller ModelerConstants.DATA_FULL_ID_PROPERTY).getAsString(); DataType data = getModelBuilderFacade().importData(model, dataFullId); - + long maxOID = XpdlModelUtils.getMaxUsedOid(model); + dataPath.setElementOid(++maxOID); dataPath.setData(data); } |

