summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-10-24 05:02:04 (EDT)
committerSven Rottstock2012-10-24 05:02:04 (EDT)
commitde6b645fcd84cc2a0efd89d2c37d31656b4726ad (patch)
tree94da0d8aea07e4a950507765959c60b077b66aaf
parent097739abc9bfbf7d3b853512d1c13c0134c9d060 (diff)
downloadorg.eclipse.stardust.ide-de6b645fcd84cc2a0efd89d2c37d31656b4726ad.zip
org.eclipse.stardust.ide-de6b645fcd84cc2a0efd89d2c37d31656b4726ad.tar.gz
org.eclipse.stardust.ide-de6b645fcd84cc2a0efd89d2c37d31656b4726ad.tar.bz2
CRNT-25931 Pepper: All supported default data should displayed under Data node of model.
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@60267 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/defaults/DefaultElementsInitializer.java41
1 files changed, 17 insertions, 24 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/defaults/DefaultElementsInitializer.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/defaults/DefaultElementsInitializer.java
index ca86286..7dd6684 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/defaults/DefaultElementsInitializer.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/defaults/DefaultElementsInitializer.java
@@ -10,11 +10,11 @@
*******************************************************************************/
package org.eclipse.stardust.model.xpdl.builder.defaults;
-import static org.eclipse.stardust.model.xpdl.builder.BpmModelBuilder.newPrimitiveVariable;
-
-import org.eclipse.stardust.engine.api.model.PredefinedConstants;
-import org.eclipse.stardust.model.xpdl.builder.spi.ModelInitializer;
-import org.eclipse.stardust.model.xpdl.carnot.ModelType;
+import org.eclipse.stardust.engine.api.model.PredefinedConstants;
+import org.eclipse.stardust.model.xpdl.builder.spi.ModelInitializer;
+import org.eclipse.stardust.model.xpdl.builder.utils.ModelBuilderFacade;
+import org.eclipse.stardust.model.xpdl.builder.utils.ModelerConstants;
+import org.eclipse.stardust.model.xpdl.carnot.ModelType;
public class DefaultElementsInitializer implements ModelInitializer
@@ -22,25 +22,18 @@ public class DefaultElementsInitializer implements ModelInitializer
public void initializeModel(ModelType model)
{
- /*newRole(model).withId(PredefinedConstants.ADMINISTRATOR_ROLE)
- .withName("Administrator")
- .withDescription("In charge of all workflow administration activities.")
- .build();*/
-
- newPrimitiveVariable(model).withIdAndName(PredefinedConstants.PROCESS_ID,
- "Process OID")
- .ofType(Long.class)
- .build();
-
- newPrimitiveVariable(model).withIdAndName(PredefinedConstants.ROOT_PROCESS_ID,
- "Root Process OID")
- .ofType(Long.class)
- .build();
+ ModelBuilderFacade facade = new ModelBuilderFacade();
- newPrimitiveVariable(model).withIdAndName(PredefinedConstants.PROCESS_PRIORITY,
- "Process Priority")
- .ofType(Integer.class)
- .build();
- }
+ facade.createPrimitiveData(model, PredefinedConstants.PROCESS_ID, "Process OID",
+ ModelerConstants.INTEGER_PRIMITIVE_DATA_TYPE);
+ facade.createPrimitiveData(model, PredefinedConstants.ROOT_PROCESS_ID,
+ "Root Process OID", ModelerConstants.INTEGER_PRIMITIVE_DATA_TYPE);
+ facade.createPrimitiveData(model, PredefinedConstants.PROCESS_PRIORITY,
+ "Process Priority", ModelerConstants.INTEGER_PRIMITIVE_DATA_TYPE);
+ facade.createPrimitiveData(model, PredefinedConstants.CURRENT_LOCALE,
+ "Current Locale", ModelerConstants.STRING_PRIMITIVE_DATA_TYPE);
+ facade.createPrimitiveData(model, PredefinedConstants.CURRENT_DATE, "Current Date",
+ ModelerConstants.DATE_PRIMITIVE_DATA_TYPE);
+ }
}