summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-11-30 07:56:07 (EST)
committerStephan Born2012-11-30 07:56:07 (EST)
commitd64065d668598ce08e57cc9d146061657ae5a63e (patch)
tree2c9f40866c5b7f9a60927f9ae019b6d1cc5fa109
parent6c3114301898315ecbceff49200bd64e20192cda (diff)
downloadorg.eclipse.stardust.ide-d64065d668598ce08e57cc9d146061657ae5a63e.zip
org.eclipse.stardust.ide-d64065d668598ce08e57cc9d146061657ae5a63e.tar.gz
org.eclipse.stardust.ide-d64065d668598ce08e57cc9d146061657ae5a63e.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/ide@61270 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
index ba42956..b6087ba 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
@@ -3082,11 +3082,12 @@ public class ModelBuilderFacade
DataTypeType dataTypeType = (DataTypeType) ModelUtils.findIdentifiableElement(
model.getDataType(), DmsConstants.DATA_TYPE_DMS_DOCUMENT_LIST);
DataType data = CarnotWorkflowModelFactory.eINSTANCE.createDataType();
+ long maxOID = XpdlModelUtils.getMaxUsedOid(model);
data.setId(DmsConstants.DATA_ID_ATTACHMENTS);
data.setName("Process Attachments"); //$NON-NLS-1$
data.setType(dataTypeType);
- data.setElementOid(ModelUtils.getElementOid(data, model));
-
+ //data.setElementOid(ModelUtils.getElementOid(data, model));
+ data.setElementOid(++maxOID);
model.getData().add(data);
AttributeUtil.setAttribute(data, PredefinedConstants.CLASS_NAME_ATT,