From bd5764a27d81057d245b1cd70ae0fde1fab5c3b4 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 24 Jul 2012 11:35:55 +0200 Subject: Enable default 'New' schema and script to be edited in the factory. Fix transition in LocalObjectDefCreator for removal of Autostart --- pom.xml | 2 +- src/main/resources/boot/CA/SchemaFactoryWf.xml | 109 +----------- src/main/resources/boot/CA/ScriptFactoryWf.xml | 192 +++++++++++++++------ .../resources/boot/SC/LocalObjectDefCreator.xml | 3 +- src/main/resources/module.xml | 2 +- 5 files changed, 147 insertions(+), 161 deletions(-) diff --git a/pom.xml b/pom.xml index 384611f..590b705 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 cristal cristal-dev - 0.3 + 0.4 Cristal Development Module diff --git a/src/main/resources/boot/CA/SchemaFactoryWf.xml b/src/main/resources/boot/CA/SchemaFactoryWf.xml index a6496f3..0eabac0 100644 --- a/src/main/resources/boot/CA/SchemaFactoryWf.xml +++ b/src/main/resources/boot/CA/SchemaFactoryWf.xml @@ -1,108 +1 @@ - - - - - - - - - - 9 - - - - - - - - - - - 7 - 12 - - - - - - - - - - - 13 - 7 - 9 - - - - - - - - - - - - - 12 - 13 - - - - - - - CreateNewLocalObjectDef - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CreateNewLocalObjectDef - +9221619716122021EditSchema13791213CreateNewLocalObjectDef212223192320 \ 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 5f51f9d..20a0715 100644 --- a/src/main/resources/boot/CA/ScriptFactoryWf.xml +++ b/src/main/resources/boot/CA/ScriptFactoryWf.xml @@ -1,108 +1,200 @@ - + + + + + + + + 20 + 23 + 21 + + + + - - - - - + + + + + 9 + 24 + + + + + + + 19 + 20 + + + + + - - - - - + + + + + 7 + 19 12 - - - - - + + + + + 13 7 9 - + - - - - - + + + + + 12 13 - + + CreateNewLocalObjectDef - - - + + + + + + + 21 + 22 - + + + + EditScriptDefinition + + + + + + + + 22 + 23 + 24 + + + + + + + + + + + - - - + + + - + + + + + + + + + + + + + + + + - - + + - + + + + + + - - + + - + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + - CreateNewLocalObjectDef - + \ 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 d6a6762..4e253f8 100644 --- a/src/main/resources/boot/SC/LocalObjectDefCreator.xml +++ b/src/main/resources/boot/SC/LocalObjectDefCreator.xml @@ -7,6 +7,7 @@ importClass(Packages.com.c2kernel.process.Bootstrap); importClass(Packages.com.c2kernel.lifecycle.CompositeActivityDef); importClass(Packages.com.c2kernel.lifecycle.ActivityDef); + importClass(Packages.com.c2kernel.lifecycle.instance.stateMachine.Transitions); var type = job.getActPropString("NewType"); var name = job.getOutcome().getField("ObjectName"); @@ -43,7 +44,7 @@ // Store the new object with the 'EditDefinition' activity var newPath = new Packages.com.c2kernel.lookup.DomainPath(domPath+"/"+name); var newItem = agent.getItem(newPath); - newItem.requestAction(agent.getSystemKey(), "workflow/domain/EditDefinition", 4, newObj); + newItem.requestAction(agent.getSystemKey(), "workflow/domain/EditDefinition", Transitions.DONE, newObj); // If this script is running in the Cristal GUI, open the new item. var tree = Packages.com.c2kernel.gui.MainFrame.treeBrowser; diff --git a/src/main/resources/module.xml b/src/main/resources/module.xml index 12a2142..4754c7d 100644 --- a/src/main/resources/module.xml +++ b/src/main/resources/module.xml @@ -1,7 +1,7 @@ CRISTAL Development Items, such as resource factories and workflows. Also includes a demonstrative description factory - 0.2 + 0.4 ac/uk/uwe/cristaldev/resources/ -- cgit v1.2.3