From 20aab0c365e87cdefadbb2c5c9325c530761a320 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 6 Mar 2014 16:46:11 +0100 Subject: New ModuleFactory - not finished yet. Can collect module info but not export. Contents collection to be added. Pretty-printed XML - an example module should be easy to read. --- .../resources/boot/CA/CompositeActivityFactory.xml | 129 ++++---- .../boot/CA/ElementaryActivityFactory.xml | 130 ++++---- src/main/resources/boot/CA/ItemDescriptionWf.xml | 2 +- src/main/resources/boot/CA/ModuleDevWorkflow.xml | 358 +++++++++++++++++++++ src/main/resources/boot/CA/ModuleFactory.xml | 104 ++++++ src/main/resources/boot/CA/ScriptFactoryWf.xml | 235 +++++++------- src/main/resources/boot/EA/CreateItem.xml | 41 +-- .../resources/boot/EA/CreateNewLocalObjectDef.xml | 34 +- src/main/resources/boot/EA/EditModuleAgents.xml | 17 + .../resources/boot/EA/EditModuleConfiguration.xml | 17 + .../resources/boot/EA/EditPropertyDescription.xml | 36 ++- src/main/resources/boot/EA/ExportModule.xml | 17 + src/main/resources/boot/EA/SetInstanceWorkflow.xml | 36 ++- src/main/resources/boot/OD/ChooseWorkflow.xsd | 10 +- src/main/resources/boot/OD/ItemCanvas.xsd | 17 +- src/main/resources/boot/OD/ModuleAgents.xsd | 39 +++ src/main/resources/boot/OD/ModuleExportPath.xsd | 12 + src/main/resources/boot/OD/ModuleProperties.xsd | 72 +++++ src/main/resources/boot/OD/New.xsd | 3 +- src/main/resources/boot/OD/NewDevObjectDef.xsd | 15 +- src/main/resources/boot/OD/NewLocalObjectDef.xsd | 12 +- src/main/resources/boot/SC/InstantiateItem.xml | 33 +- .../resources/boot/SC/LocalObjectDefCreator.xml | 2 +- src/main/resources/boot/SC/New.xml | 2 +- src/main/resources/boot/SC/SetWorkflow.xml | 2 +- src/main/resources/boot/property/CAProp.xml | 9 +- src/main/resources/boot/property/DescProp.xml | 6 +- src/main/resources/boot/property/EAProp.xml | 9 +- src/main/resources/boot/property/ModuleProp.xml | 10 + src/main/resources/boot/property/ODProp.xml | 9 +- src/main/resources/boot/property/SCProp.xml | 6 +- src/main/resources/module.xml | 54 +++- 32 files changed, 1103 insertions(+), 375 deletions(-) create mode 100644 src/main/resources/boot/CA/ModuleDevWorkflow.xml create mode 100644 src/main/resources/boot/CA/ModuleFactory.xml create mode 100644 src/main/resources/boot/EA/EditModuleAgents.xml create mode 100644 src/main/resources/boot/EA/EditModuleConfiguration.xml create mode 100644 src/main/resources/boot/EA/ExportModule.xml create mode 100644 src/main/resources/boot/OD/ModuleAgents.xsd create mode 100644 src/main/resources/boot/OD/ModuleExportPath.xsd create mode 100644 src/main/resources/boot/OD/ModuleProperties.xsd create mode 100644 src/main/resources/boot/property/ModuleProp.xml diff --git a/src/main/resources/boot/CA/CompositeActivityFactory.xml b/src/main/resources/boot/CA/CompositeActivityFactory.xml index f94c729..c917a33 100644 --- a/src/main/resources/boot/CA/CompositeActivityFactory.xml +++ b/src/main/resources/boot/CA/CompositeActivityFactory.xml @@ -1,106 +1,113 @@ - + - - - - - - - + + + + + + + 9 - + - - - - - - + + + + + + 7 12 - + - - - - - - + + + + + + 13 7 9 - - + + - - - - - - + + + + + + 12 13 - + - + CreateNewLocalObjectDef - - + + - + - - + + - + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + CreateNewLocalObjectDef diff --git a/src/main/resources/boot/CA/ElementaryActivityFactory.xml b/src/main/resources/boot/CA/ElementaryActivityFactory.xml index 796f473..ab736ea 100644 --- a/src/main/resources/boot/CA/ElementaryActivityFactory.xml +++ b/src/main/resources/boot/CA/ElementaryActivityFactory.xml @@ -1,105 +1,113 @@ - + - - - - - - - + + + + + + + 9 - + - - - - - - + + + + + + 7 12 - + - - - - - - + + + + + + 13 7 9 - - + + - - - - - - + + + + + + 12 13 - - + + CreateNewLocalObjectDef - - + + - + - - + + - + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + CreateNewLocalObjectDef diff --git a/src/main/resources/boot/CA/ItemDescriptionWf.xml b/src/main/resources/boot/CA/ItemDescriptionWf.xml index 2e69e60..34e38c7 100644 --- a/src/main/resources/boot/CA/ItemDescriptionWf.xml +++ b/src/main/resources/boot/CA/ItemDescriptionWf.xml @@ -177,7 +177,7 @@ - + SetInstanceWorkflow diff --git a/src/main/resources/boot/CA/ModuleDevWorkflow.xml b/src/main/resources/boot/CA/ModuleDevWorkflow.xml new file mode 100644 index 0000000..ddc74d3 --- /dev/null +++ b/src/main/resources/boot/CA/ModuleDevWorkflow.xml @@ -0,0 +1,358 @@ + + + + + + + + + + 32 + 33 + 34 + + + + + + + + + + + 30 + 31 + + + + + ExportModule + + + + + + + + 28 + 29 + + + + + + EditModuleAgents + + + + + + + + 25 + 27 + + + + + + EditModuleConfiguration + + + + + + + + 27 + 32 + 35 + + + + + + + + + + + + + 31 + 34 + 37 + + + + + + + + + + + + + 17 + 36 + 28 + + + + + + + + + + + 29 + 33 + 36 + + + + + + + + + + + + + 16 + 35 + 25 + + + + + + + + + + + 15 + 16 + 17 + 18 + + + + + + + + + + + + 6 + 7 + 15 + + + + + + + + + + + 4 + 7 + + + + + EditModuleAgents + + + + + + + + 18 + 37 + 30 + + + + + + + + + + + 3 + 6 + + + + + EditModuleConfiguration + + + + + + + + 3 + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/boot/CA/ModuleFactory.xml b/src/main/resources/boot/CA/ModuleFactory.xml new file mode 100644 index 0000000..cf3b371 --- /dev/null +++ b/src/main/resources/boot/CA/ModuleFactory.xml @@ -0,0 +1,104 @@ + + + + + + + + + + 6 + 7 + + + + + + + CreateItem + + + + + + + + 7 + 8 + 9 + + + + + + + + + + + + + 9 + + + + + + + + + + + 8 + 6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/boot/CA/ScriptFactoryWf.xml b/src/main/resources/boot/CA/ScriptFactoryWf.xml index d5a02cc..0eb7cb6 100644 --- a/src/main/resources/boot/CA/ScriptFactoryWf.xml +++ b/src/main/resources/boot/CA/ScriptFactoryWf.xml @@ -1,198 +1,207 @@ - + - - - - - - + + + + + + 20 23 21 - + - - - - - - + + + + + + 9 24 - + - - - - - - + + + + + + 19 20 - + - - - - - - + + + + + + 7 19 12 - + - - - - - - + + + + + + 13 7 9 - - + + - - - - - - + + + + + + 12 13 - - - - - + + + + + CreateNewLocalObjectDef - - - - - - + + + + + + 21 22 - - + + EditScriptDefinition - - - - - - + + + + + + 22 23 24 - - - + + + - - + + - + - - + + - + - - - + + + - - - + + + - - - + + + - - + + - - + + - - - + + + - - + + - - + + - - + + - + - - + + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/boot/EA/CreateItem.xml b/src/main/resources/boot/EA/CreateItem.xml index d54cd4d..a3133bd 100644 --- a/src/main/resources/boot/EA/CreateItem.xml +++ b/src/main/resources/boot/EA/CreateItem.xml @@ -1,20 +1,25 @@ - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + \ No newline at end of file diff --git a/src/main/resources/boot/EA/CreateNewLocalObjectDef.xml b/src/main/resources/boot/EA/CreateNewLocalObjectDef.xml index 840c32d..bb36588 100644 --- a/src/main/resources/boot/EA/CreateNewLocalObjectDef.xml +++ b/src/main/resources/boot/EA/CreateNewLocalObjectDef.xml @@ -1,19 +1,21 @@ - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/src/main/resources/boot/EA/EditModuleAgents.xml b/src/main/resources/boot/EA/EditModuleAgents.xml new file mode 100644 index 0000000..6f2aa3f --- /dev/null +++ b/src/main/resources/boot/EA/EditModuleAgents.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/boot/EA/EditModuleConfiguration.xml b/src/main/resources/boot/EA/EditModuleConfiguration.xml new file mode 100644 index 0000000..98b1fcb --- /dev/null +++ b/src/main/resources/boot/EA/EditModuleConfiguration.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/boot/EA/EditPropertyDescription.xml b/src/main/resources/boot/EA/EditPropertyDescription.xml index 2cbf763..ea4d1bf 100644 --- a/src/main/resources/boot/EA/EditPropertyDescription.xml +++ b/src/main/resources/boot/EA/EditPropertyDescription.xml @@ -1,20 +1,22 @@ - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/src/main/resources/boot/EA/ExportModule.xml b/src/main/resources/boot/EA/ExportModule.xml new file mode 100644 index 0000000..e7cc037 --- /dev/null +++ b/src/main/resources/boot/EA/ExportModule.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/boot/EA/SetInstanceWorkflow.xml b/src/main/resources/boot/EA/SetInstanceWorkflow.xml index a9e7d7b..c589a74 100644 --- a/src/main/resources/boot/EA/SetInstanceWorkflow.xml +++ b/src/main/resources/boot/EA/SetInstanceWorkflow.xml @@ -1,20 +1,22 @@ - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/src/main/resources/boot/OD/ChooseWorkflow.xsd b/src/main/resources/boot/OD/ChooseWorkflow.xsd index 1fb6238..fa9ac1f 100644 --- a/src/main/resources/boot/OD/ChooseWorkflow.xsd +++ b/src/main/resources/boot/OD/ChooseWorkflow.xsd @@ -1,16 +1,20 @@ - + - Give the name of the composite activity description that you would like new instance of this description to run. + Give the name of the composite activity + description that you would like new instance of this description + to run. - Give the version of this activity that you would like to use. + Give the version of this activity that you would + like to use. diff --git a/src/main/resources/boot/OD/ItemCanvas.xsd b/src/main/resources/boot/OD/ItemCanvas.xsd index 12aefaf..e5fd454 100644 --- a/src/main/resources/boot/OD/ItemCanvas.xsd +++ b/src/main/resources/boot/OD/ItemCanvas.xsd @@ -1,5 +1,6 @@ - + @@ -12,21 +13,21 @@ - - + + - - - + + + - - + + diff --git a/src/main/resources/boot/OD/ModuleAgents.xsd b/src/main/resources/boot/OD/ModuleAgents.xsd new file mode 100644 index 0000000..81481d4 --- /dev/null +++ b/src/main/resources/boot/OD/ModuleAgents.xsd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/boot/OD/ModuleExportPath.xsd b/src/main/resources/boot/OD/ModuleExportPath.xsd new file mode 100644 index 0000000..00bc3b0 --- /dev/null +++ b/src/main/resources/boot/OD/ModuleExportPath.xsd @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/src/main/resources/boot/OD/ModuleProperties.xsd b/src/main/resources/boot/OD/ModuleProperties.xsd new file mode 100644 index 0000000..b79f49d --- /dev/null +++ b/src/main/resources/boot/OD/ModuleProperties.xsd @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + Configuration parameters to add to the Cristal + VM on launch. May target either client or server processes. + + + + + + + + + + + + + + + + + + + + + + + + + + + Prefix for module components + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/boot/OD/New.xsd b/src/main/resources/boot/OD/New.xsd index 4c5f783..4428f3a 100644 --- a/src/main/resources/boot/OD/New.xsd +++ b/src/main/resources/boot/OD/New.xsd @@ -1,3 +1,4 @@ - + diff --git a/src/main/resources/boot/OD/NewDevObjectDef.xsd b/src/main/resources/boot/OD/NewDevObjectDef.xsd index 637581e..2176828 100644 --- a/src/main/resources/boot/OD/NewDevObjectDef.xsd +++ b/src/main/resources/boot/OD/NewDevObjectDef.xsd @@ -1,20 +1,23 @@ - - - + + - Please give a name for your new object. + Please give a name for your new object. + - If you want to store your object in a subfolder, give the subpath here. + If you want to store your object in a subfolder, + give the subpath here. - + \ No newline at end of file diff --git a/src/main/resources/boot/OD/NewLocalObjectDef.xsd b/src/main/resources/boot/OD/NewLocalObjectDef.xsd index 0186872..2df4037 100644 --- a/src/main/resources/boot/OD/NewLocalObjectDef.xsd +++ b/src/main/resources/boot/OD/NewLocalObjectDef.xsd @@ -1,17 +1,21 @@ - - + + - Please give a name for your new object. + Please give a name for your new object. + - If you want to store your object in a subfolder, give the subpath here. + If you want to store your object in a subfolder, + give the subpath here. diff --git a/src/main/resources/boot/SC/InstantiateItem.xml b/src/main/resources/boot/SC/InstantiateItem.xml index 1ad7b6c..d4920f4 100644 --- a/src/main/resources/boot/SC/InstantiateItem.xml +++ b/src/main/resources/boot/SC/InstantiateItem.xml @@ -1,14 +1,15 @@ - - - - - + + // If this script is running in the Cristal GUI, open the new item. + //try { + // Packages.com.c2kernel.gui.MainFrame.treeBrowser.push(new DomainPath(domPath+"/"+name)); + //} catch (e) { } + + ]]> + \ No newline at end of file diff --git a/src/main/resources/boot/SC/LocalObjectDefCreator.xml b/src/main/resources/boot/SC/LocalObjectDefCreator.xml index d47789d..de082dc 100644 --- a/src/main/resources/boot/SC/LocalObjectDefCreator.xml +++ b/src/main/resources/boot/SC/LocalObjectDefCreator.xml @@ -1,6 +1,6 @@ - + diff --git a/src/main/resources/boot/SC/SetWorkflow.xml b/src/main/resources/boot/SC/SetWorkflow.xml index 684b813..704d732 100644 --- a/src/main/resources/boot/SC/SetWorkflow.xml +++ b/src/main/resources/boot/SC/SetWorkflow.xml @@ -1,6 +1,6 @@ - +