summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-11-07 08:39:51 (EST)
committerSven Rottstock2012-11-14 09:20:51 (EST)
commit3e11a7bdaf5efd131741455b195d5c760dda348c (patch)
treeb5477825adbda1b82677038c154a83ce74418d24
parentef4e464e7495e9657be59fe219f5feadf25092b3 (diff)
downloadorg.eclipse.stardust.ui.web-3e11a7bdaf5efd131741455b195d5c760dda348c.zip
org.eclipse.stardust.ui.web-3e11a7bdaf5efd131741455b195d5c760dda348c.tar.gz
org.eclipse.stardust.ui.web-3e11a7bdaf5efd131741455b195d5c760dda348c.tar.bz2
CRNT-25759 Support implementation of data paths
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@60634 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/java/org/eclipse/stardust/ui/web/modeler/marshaling/ModelElementUnmarshaller.java42
1 files changed, 22 insertions, 20 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 5f50b2d..22ffccd 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
@@ -31,25 +31,6 @@ import javax.xml.namespace.QName;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.FeatureMapUtil;
-import org.eclipse.xsd.XSDComplexTypeContent;
-import org.eclipse.xsd.XSDComplexTypeDefinition;
-import org.eclipse.xsd.XSDCompositor;
-import org.eclipse.xsd.XSDConstrainingFacet;
-import org.eclipse.xsd.XSDElementDeclaration;
-import org.eclipse.xsd.XSDFactory;
-import org.eclipse.xsd.XSDImport;
-import org.eclipse.xsd.XSDModelGroup;
-import org.eclipse.xsd.XSDParticle;
-import org.eclipse.xsd.XSDSchema;
-import org.eclipse.xsd.XSDSimpleTypeDefinition;
-import org.eclipse.xsd.XSDTerm;
-import org.eclipse.xsd.XSDTypeDefinition;
-import org.eclipse.xsd.impl.XSDSchemaImpl;
-
-import com.google.gson.JsonArray;
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-
import org.eclipse.stardust.common.StringUtils;
import org.eclipse.stardust.engine.api.runtime.DmsUtils;
import org.eclipse.stardust.engine.api.runtime.Document;
@@ -72,6 +53,7 @@ import org.eclipse.stardust.model.xpdl.carnot.ApplicationType;
import org.eclipse.stardust.model.xpdl.carnot.CarnotWorkflowModelFactory;
import org.eclipse.stardust.model.xpdl.carnot.CarnotWorkflowModelPackage;
import org.eclipse.stardust.model.xpdl.carnot.ConditionalPerformerType;
+import org.eclipse.stardust.model.xpdl.carnot.ContextType;
import org.eclipse.stardust.model.xpdl.carnot.DataMappingConnectionType;
import org.eclipse.stardust.model.xpdl.carnot.DataMappingType;
import org.eclipse.stardust.model.xpdl.carnot.DataPathType;
@@ -106,6 +88,24 @@ import org.eclipse.stardust.model.xpdl.xpdl2.TypeDeclarationType;
import org.eclipse.stardust.model.xpdl.xpdl2.XpdlPackage;
import org.eclipse.stardust.model.xpdl.xpdl2.util.TypeDeclarationUtils;
import org.eclipse.stardust.ui.web.viewscommon.utils.MimeTypesHelper;
+import org.eclipse.xsd.XSDComplexTypeContent;
+import org.eclipse.xsd.XSDComplexTypeDefinition;
+import org.eclipse.xsd.XSDCompositor;
+import org.eclipse.xsd.XSDConstrainingFacet;
+import org.eclipse.xsd.XSDElementDeclaration;
+import org.eclipse.xsd.XSDFactory;
+import org.eclipse.xsd.XSDImport;
+import org.eclipse.xsd.XSDModelGroup;
+import org.eclipse.xsd.XSDParticle;
+import org.eclipse.xsd.XSDSchema;
+import org.eclipse.xsd.XSDSimpleTypeDefinition;
+import org.eclipse.xsd.XSDTerm;
+import org.eclipse.xsd.XSDTypeDefinition;
+import org.eclipse.xsd.impl.XSDSchemaImpl;
+
+import com.google.gson.JsonArray;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
/**
*
@@ -1108,7 +1108,7 @@ public abstract class ModelElementUnmarshaller implements ModelUnmarshaller
if (startEventJson.has(ModelerConstants.EVENT_CLASS_PROPERTY))
{
System.out.println("Setting eventClass to " + startEventJson.get(ModelerConstants.EVENT_CLASS_PROPERTY).getAsString());
-
+
getModelBuilderFacade().setAttribute(startEventSymbol.getModelElement(), "stardust::engine:eventClass",
startEventJson.get(ModelerConstants.EVENT_CLASS_PROPERTY).getAsString());
}
@@ -1195,6 +1195,8 @@ public abstract class ModelElementUnmarshaller implements ModelUnmarshaller
// TODO Facade methods do not support interactive contexts yet
if ( !contextId.equals(ModelerConstants.APPLICATION_CONTEXT_KEY))
{
+ //As contexts are removed from the application they have to be re-created - maybe here?
+ ContextType contextType = getModelBuilderFacade().createApplicationContext(application, contextId);
continue;
}