summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-09-14 03:09:17 (EDT)
committer Stephan Born2012-09-14 03:09:17 (EDT)
commite5352dff09a211441219e94b950557fa39c0a217 (patch)
tree4efac105f929506b42857d49c783aab55e7c3dec
parent70706b79725dea7710abad7cce164aa715b7cef1 (diff)
downloadorg.eclipse.stardust.ide-e5352dff09a211441219e94b950557fa39c0a217.zip
org.eclipse.stardust.ide-e5352dff09a211441219e94b950557fa39c0a217.tar.gz
org.eclipse.stardust.ide-e5352dff09a211441219e94b950557fa39c0a217.tar.bz2
CRNT-26125 Pepper: ModelBuilder API - Create accesspoints for MTA / UI Mashup (Create correct ApplicationMetaTypes)
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@59197 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/variable/MessageTransformationApplicationBuilder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/variable/MessageTransformationApplicationBuilder.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/variable/MessageTransformationApplicationBuilder.java
index 95fa3ec..06922ef 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/variable/MessageTransformationApplicationBuilder.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/variable/MessageTransformationApplicationBuilder.java
@@ -35,10 +35,14 @@ public class MessageTransformationApplicationBuilder extends AbstractModelElemen
model.getApplicationType(), ModelerConstants.MESSAGE_TRANSFORMATION_APPLICATION_TYPE_ID);
if (null == applicationMetaType)
{
+
applicationMetaType = AbstractElementBuilder.F_CWM.createApplicationTypeType();
applicationMetaType.setId(ModelerConstants.MESSAGE_TRANSFORMATION_APPLICATION_TYPE_ID);
applicationMetaType.setName("Message Transformation Bean");
applicationMetaType.setIsPredefined(true);
+ AttributeUtil.setAttribute(applicationMetaType, "carnot:engine:applicationInstance", "org.eclipse.stardust.engine.extensions.transformation.runtime.transformation.MessageTransformationApplicationInstance");
+ AttributeUtil.setAttribute(applicationMetaType, "carnot:engine:validator", "org.eclipse.stardust.engine.extensions.transformation.runtime.transformation.MessageProcessingValidator");
+
long maxElementOid = XpdlModelUtils.getMaxUsedOid(model);
applicationMetaType.setElementOid(++maxElementOid);
model.getApplicationType().add(applicationMetaType);