summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-11-19 03:59:45 (EST)
committer Sven Rottstock2012-11-19 03:59:45 (EST)
commitbfe4a9721c5e147be4535f4297f5455eba1752d0 (patch)
tree541a9312fa1573818cf1731b2298e0cd8995ab58
parent281f54ea1e560459f5e451b207cb8b9e51574f41 (diff)
downloadorg.eclipse.stardust.ide-bfe4a9721c5e147be4535f4297f5455eba1752d0.zip
org.eclipse.stardust.ide-bfe4a9721c5e147be4535f4297f5455eba1752d0.tar.gz
org.eclipse.stardust.ide-bfe4a9721c5e147be4535f4297f5455eba1752d0.tar.bz2
CRNT-26978
Creation of Parameter Mapping needed for Start Trigger git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@60916 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.java22
1 files changed, 19 insertions, 3 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 18e8039..56f1655 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
@@ -90,6 +90,7 @@ import org.eclipse.stardust.model.xpdl.carnot.LaneSymbol;
import org.eclipse.stardust.model.xpdl.carnot.ModelType;
import org.eclipse.stardust.model.xpdl.carnot.OrganizationType;
import org.eclipse.stardust.model.xpdl.carnot.OrientationType;
+import org.eclipse.stardust.model.xpdl.carnot.ParameterMappingType;
import org.eclipse.stardust.model.xpdl.carnot.ParticipantType;
import org.eclipse.stardust.model.xpdl.carnot.PoolSymbol;
import org.eclipse.stardust.model.xpdl.carnot.ProcessDefinitionType;
@@ -97,6 +98,7 @@ import org.eclipse.stardust.model.xpdl.carnot.RoleType;
import org.eclipse.stardust.model.xpdl.carnot.StartEventSymbol;
import org.eclipse.stardust.model.xpdl.carnot.TextType;
import org.eclipse.stardust.model.xpdl.carnot.TransitionConnectionType;
+import org.eclipse.stardust.model.xpdl.carnot.TriggerType;
import org.eclipse.stardust.model.xpdl.carnot.extensions.ExtensionsFactory;
import org.eclipse.stardust.model.xpdl.carnot.extensions.FormalParameterMappingsType;
import org.eclipse.stardust.model.xpdl.carnot.merge.MergeUtils;
@@ -432,12 +434,12 @@ public class ModelBuilderFacade
if(clazz == null)
{
clazz = "java.util.Map";
- }
-
+ }
+
return JavaDataTypeUtils.createIntrinsicAccessPoint(id, name, clazz, direction, browsable,
characteristics);
}
-
+
public AccessPointType createPrimitiveAccessPoint(IAccessPointOwner application,
String id, String name, String primaryDataTypeID, String direction)
{
@@ -3004,4 +3006,18 @@ public class ModelBuilderFacade
return data;
}
+
+ public ParameterMappingType createParameterMapping(TriggerType trigger,
+ String dataFullID, String dataPath)
+ {
+ ModelType model = ModelUtils.findContainingModel(trigger);
+ long maxOID = XpdlModelUtils.getMaxUsedOid(model);
+ ParameterMappingType mappingType = CarnotWorkflowModelFactory.eINSTANCE
+ .createParameterMappingType();
+ mappingType.setData(findData(dataFullID));
+ mappingType.setDataPath(dataPath);
+ mappingType.setElementOid(++maxOID);
+ trigger.getParameterMapping().add(mappingType);
+ return mappingType;
+ }
} \ No newline at end of file