From 160f610b24ee3802a109bcd32e00bfa2dde31ec2 Mon Sep 17 00:00:00 2001 From: abranson Date: Tue, 13 Mar 2012 15:31:25 +0100 Subject: Added Description Factory --- build.xml | 7 ++- cristaldev.jar | Bin 48384 -> 34031 bytes factory.rar | Bin 0 -> 1203 bytes resources/boot/CA/ItemDescriptionFactoryWf.xml | 1 + resources/boot/CA/ItemDescriptionWf.xml | 1 + resources/boot/EA/CreateItem.xml | 1 + resources/boot/EA/CreateNewLocalObjectDef.xml | 2 +- resources/boot/EA/EditProperties.xml | 20 --------- resources/boot/EA/EditPropertyDescription.xml | 1 + resources/boot/EA/SetInstanceWorkflow.xml | 1 + resources/boot/OD/ChooseWorkflow.xsd | 14 ++++++ resources/boot/OD/NewDevObjectDef.xsd | 20 +++++++++ resources/boot/SC/InstantiateItem.xml | 30 +++++++++++++ resources/boot/SC/LocalObjectDefCreator.xml | 4 +- resources/boot/SC/SetWorkflow.xml | 47 +++++++++++++++++++++ resources/boot/factory/CA.xml | 8 ---- resources/boot/factory/EA.xml | 8 ---- resources/boot/factory/OD.xml | 8 ---- resources/boot/factory/SC.xml | 8 ---- resources/boot/property/DescProp.xml | 2 + resources/images/typeicons/factory_16.png | Bin 0 -> 916 bytes resources/images/typeicons/factory_32.png | Bin 0 -> 2084 bytes resources/images/typeicons/itemdescription_16.png | Bin 0 -> 722 bytes resources/images/typeicons/itemdescription_32.png | Bin 0 -> 1782 bytes .../images/typeicons/localobjectfactory_16.png | Bin 916 -> 0 bytes .../images/typeicons/localobjectfactory_32.png | Bin 2084 -> 0 bytes src/module.xml | 36 ++++++++++++---- 27 files changed, 155 insertions(+), 64 deletions(-) create mode 100644 factory.rar create mode 100644 resources/boot/CA/ItemDescriptionFactoryWf.xml create mode 100644 resources/boot/CA/ItemDescriptionWf.xml create mode 100644 resources/boot/EA/CreateItem.xml delete mode 100644 resources/boot/EA/EditProperties.xml create mode 100644 resources/boot/EA/EditPropertyDescription.xml create mode 100644 resources/boot/EA/SetInstanceWorkflow.xml create mode 100644 resources/boot/OD/ChooseWorkflow.xsd create mode 100644 resources/boot/OD/NewDevObjectDef.xsd create mode 100644 resources/boot/SC/InstantiateItem.xml create mode 100644 resources/boot/SC/SetWorkflow.xml delete mode 100644 resources/boot/factory/CA.xml delete mode 100644 resources/boot/factory/EA.xml delete mode 100644 resources/boot/factory/OD.xml delete mode 100644 resources/boot/factory/SC.xml create mode 100644 resources/boot/property/DescProp.xml create mode 100644 resources/images/typeicons/factory_16.png create mode 100644 resources/images/typeicons/factory_32.png create mode 100644 resources/images/typeicons/itemdescription_16.png create mode 100644 resources/images/typeicons/itemdescription_32.png delete mode 100644 resources/images/typeicons/localobjectfactory_16.png delete mode 100644 resources/images/typeicons/localobjectfactory_32.png diff --git a/build.xml b/build.xml index 74b0711..0fc492b 100644 --- a/build.xml +++ b/build.xml @@ -47,7 +47,7 @@ - + @@ -61,6 +61,11 @@ + + + + + diff --git a/cristaldev.jar b/cristaldev.jar index 4806ada..928fb7a 100644 Binary files a/cristaldev.jar and b/cristaldev.jar differ diff --git a/factory.rar b/factory.rar new file mode 100644 index 0000000..b11875e Binary files /dev/null and b/factory.rar differ diff --git a/resources/boot/CA/ItemDescriptionFactoryWf.xml b/resources/boot/CA/ItemDescriptionFactoryWf.xml new file mode 100644 index 0000000..43cdfc1 --- /dev/null +++ b/resources/boot/CA/ItemDescriptionFactoryWf.xml @@ -0,0 +1 @@ +713671213CreateItem612 \ No newline at end of file diff --git a/resources/boot/CA/ItemDescriptionWf.xml b/resources/boot/CA/ItemDescriptionWf.xml new file mode 100644 index 0000000..e8c294f --- /dev/null +++ b/resources/boot/CA/ItemDescriptionWf.xml @@ -0,0 +1 @@ +3536CreateItem3629322528311232352728292427301131221030212225SetInstanceWorkflow2124EditPropertyDescription13101112213SetInstanceWorkflow2EditPropertyDescription \ No newline at end of file diff --git a/resources/boot/EA/CreateItem.xml b/resources/boot/EA/CreateItem.xml new file mode 100644 index 0000000..6facb82 --- /dev/null +++ b/resources/boot/EA/CreateItem.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/boot/EA/CreateNewLocalObjectDef.xml b/resources/boot/EA/CreateNewLocalObjectDef.xml index e4a9426..8c8c9c1 100644 --- a/resources/boot/EA/CreateNewLocalObjectDef.xml +++ b/resources/boot/EA/CreateNewLocalObjectDef.xml @@ -10,7 +10,7 @@ - + diff --git a/resources/boot/EA/EditProperties.xml b/resources/boot/EA/EditProperties.xml deleted file mode 100644 index 15d51b8..0000000 --- a/resources/boot/EA/EditProperties.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/resources/boot/EA/EditPropertyDescription.xml b/resources/boot/EA/EditPropertyDescription.xml new file mode 100644 index 0000000..f560988 --- /dev/null +++ b/resources/boot/EA/EditPropertyDescription.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/boot/EA/SetInstanceWorkflow.xml b/resources/boot/EA/SetInstanceWorkflow.xml new file mode 100644 index 0000000..63f07ea --- /dev/null +++ b/resources/boot/EA/SetInstanceWorkflow.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/boot/OD/ChooseWorkflow.xsd b/resources/boot/OD/ChooseWorkflow.xsd new file mode 100644 index 0000000..9927231 --- /dev/null +++ b/resources/boot/OD/ChooseWorkflow.xsd @@ -0,0 +1,14 @@ + + + + + + + + Give the name of the composite activity description that you would like new instance of this description to run. + + + + + + diff --git a/resources/boot/OD/NewDevObjectDef.xsd b/resources/boot/OD/NewDevObjectDef.xsd new file mode 100644 index 0000000..637581e --- /dev/null +++ b/resources/boot/OD/NewDevObjectDef.xsd @@ -0,0 +1,20 @@ + + + + + + + + + Please give a name for your new object. + + + + + If you want to store your object in a subfolder, give the subpath here. + + + + + + diff --git a/resources/boot/SC/InstantiateItem.xml b/resources/boot/SC/InstantiateItem.xml new file mode 100644 index 0000000..4cd84b5 --- /dev/null +++ b/resources/boot/SC/InstantiateItem.xml @@ -0,0 +1,30 @@ + + + + + diff --git a/resources/boot/SC/LocalObjectDefCreator.xml b/resources/boot/SC/LocalObjectDefCreator.xml index c70ee72..cce559e 100644 --- a/resources/boot/SC/LocalObjectDefCreator.xml +++ b/resources/boot/SC/LocalObjectDefCreator.xml @@ -42,8 +42,8 @@ newObj = CastorXMLUtility.marshall(newAct); } else { - var fileType = type.equals("OD")?"xsd":"xml"; - newObj = Resource.getTextResource("dev", "boot/"+type+"/New."+fileType); + var fileType = type.equals("OD")?"Schema":"Script"; + newObj = item.getObject("/ViewPoint/"+fileType+"/last").getOutcome().getData(); } var newPath = new Packages.com.c2kernel.lookup.DomainPath(domPath+"/"+name); var newItem = agent.getItem(newPath); diff --git a/resources/boot/SC/SetWorkflow.xml b/resources/boot/SC/SetWorkflow.xml new file mode 100644 index 0000000..0fb2a30 --- /dev/null +++ b/resources/boot/SC/SetWorkflow.xml @@ -0,0 +1,47 @@ + + + + + diff --git a/resources/boot/factory/CA.xml b/resources/boot/factory/CA.xml deleted file mode 100644 index 908647a..0000000 --- a/resources/boot/factory/CA.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/resources/boot/factory/EA.xml b/resources/boot/factory/EA.xml deleted file mode 100644 index 1185f10..0000000 --- a/resources/boot/factory/EA.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/resources/boot/factory/OD.xml b/resources/boot/factory/OD.xml deleted file mode 100644 index 275048b..0000000 --- a/resources/boot/factory/OD.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/resources/boot/factory/SC.xml b/resources/boot/factory/SC.xml deleted file mode 100644 index 7f3f97e..0000000 --- a/resources/boot/factory/SC.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/resources/boot/property/DescProp.xml b/resources/boot/property/DescProp.xml new file mode 100644 index 0000000..95a41c9 --- /dev/null +++ b/resources/boot/property/DescProp.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/resources/images/typeicons/factory_16.png b/resources/images/typeicons/factory_16.png new file mode 100644 index 0000000..9979ee7 Binary files /dev/null and b/resources/images/typeicons/factory_16.png differ diff --git a/resources/images/typeicons/factory_32.png b/resources/images/typeicons/factory_32.png new file mode 100644 index 0000000..f43f44f Binary files /dev/null and b/resources/images/typeicons/factory_32.png differ diff --git a/resources/images/typeicons/itemdescription_16.png b/resources/images/typeicons/itemdescription_16.png new file mode 100644 index 0000000..7c80fd6 Binary files /dev/null and b/resources/images/typeicons/itemdescription_16.png differ diff --git a/resources/images/typeicons/itemdescription_32.png b/resources/images/typeicons/itemdescription_32.png new file mode 100644 index 0000000..d0afc4d Binary files /dev/null and b/resources/images/typeicons/itemdescription_32.png differ diff --git a/resources/images/typeicons/localobjectfactory_16.png b/resources/images/typeicons/localobjectfactory_16.png deleted file mode 100644 index 9979ee7..0000000 Binary files a/resources/images/typeicons/localobjectfactory_16.png and /dev/null differ diff --git a/resources/images/typeicons/localobjectfactory_32.png b/resources/images/typeicons/localobjectfactory_32.png deleted file mode 100644 index f43f44f..0000000 Binary files a/resources/images/typeicons/localobjectfactory_32.png and /dev/null differ diff --git a/src/module.xml b/src/module.xml index 7d56649..bbf7109 100644 --- a/src/module.xml +++ b/src/module.xml @@ -1,18 +1,22 @@ - + - CRISTAL Development Items, such as resource factories and workflows + CRISTAL Development Items, such as resource factories and workflows. Also includes a demonstrative description factory 0.1 ch/cern/cristaldev/resources/ boot/OD/NewLocalObjectDef.xsd + boot/OD/NewDevObjectDef.xsd + boot/OD/ChooseWorkflow.xsd boot/EA/AssignNewVersionFromLast.xml boot/EA/CreateNewLocalObjectDef.xml boot/EA/EditActivityDef.xml - boot/EA/EditProperties.xml + boot/EA/EditPropertyDescription.xml boot/EA/EditSchema.xml boot/EA/EditScriptDefinition.xml + boot/EA/CreateItem.xml + boot/EA/SetInstanceWorkflow.xml boot/CA/CompositeActivityFactory.xml boot/CA/ElementaryActivityFactory.xml boot/CA/ManageCompositeActDef.xml @@ -21,19 +25,24 @@ boot/CA/ManageScript.xml boot/CA/SchemaFactoryWf.xml boot/CA/ScriptFactoryWf.xml + boot/CA/ItemDescriptionWf.xml + boot/CA/ItemDescriptionFactoryWf.xml boot/SC/CreateNewNumberedVersionFromLast.xml boot/SC/LocalObjectDefCreator.xml + boot/SC/InstantiateItem.xml + boot/SC/SetWorkflow.xml Script - LocalObjectFactory + Factory boot/property/SCProp.xml + boot/SC/New.xml /desc/ActivityDesc/system/dev/ManageScript ElementaryActivityDef - LocalObjectFactory + Factory boot/property/EAProp.xml /desc/ActivityDesc/system/dev/ManageElementaryActDef @@ -41,7 +50,7 @@ CompositeActivityDef - LocalObjectFactory + Factory boot/property/CAProp.xml /desc/ActivityDesc/system/dev/ManageCompositeActDef @@ -49,13 +58,24 @@ Schema - LocalObjectFactory + Factory boot/property/ODProp.xml + boot/OD/New.xsd /desc/ActivityDesc/system/dev/ManageSchema - + + Factory + boot/property/DescProp.xml + + /desc/ActivityDesc/system/dev/ItemDescriptionWf + + + /desc/dev/CompositeActivityDefFactory + + + Admin -- cgit v1.2.3