From 5400312250ddc5eb3b8c6af2272eb7e60624a7a2 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Mon, 18 Nov 2013 09:55:20 +0100 Subject: Remove unneeded activity properties for future compatibility. Stop using old StateMachine constants for 3.0 compatibility (should actually use new PredefinedStep constants in 3.0 scripts) --- .../resources/boot/CA/CompositeActivityFactory.xml | 4 +- .../boot/CA/ElementaryActivityFactory.xml | 3 - .../resources/boot/CA/ItemDescriptionFactoryWf.xml | 3 +- src/main/resources/boot/CA/ItemDescriptionWf.xml | 315 ++++++++++++++++++++- .../boot/CA/ReadOnlyItemDescriptionWf.xml | 107 ++++++- src/main/resources/boot/CA/SchemaFactoryWf.xml | 205 +++++++++++++- src/main/resources/boot/CA/ScriptFactoryWf.xml | 6 +- .../resources/boot/SC/LocalObjectDefCreator.xml | 3 +- 8 files changed, 629 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/main/resources/boot/CA/CompositeActivityFactory.xml b/src/main/resources/boot/CA/CompositeActivityFactory.xml index 1a963cb..f94c729 100644 --- a/src/main/resources/boot/CA/CompositeActivityFactory.xml +++ b/src/main/resources/boot/CA/CompositeActivityFactory.xml @@ -35,7 +35,6 @@ 9 - @@ -48,9 +47,8 @@ 12 13 - - + CreateNewLocalObjectDef diff --git a/src/main/resources/boot/CA/ElementaryActivityFactory.xml b/src/main/resources/boot/CA/ElementaryActivityFactory.xml index bf14607..796f473 100644 --- a/src/main/resources/boot/CA/ElementaryActivityFactory.xml +++ b/src/main/resources/boot/CA/ElementaryActivityFactory.xml @@ -35,7 +35,6 @@ 9 - @@ -48,8 +47,6 @@ 12 13 - - diff --git a/src/main/resources/boot/CA/ItemDescriptionFactoryWf.xml b/src/main/resources/boot/CA/ItemDescriptionFactoryWf.xml index 270c473..56ab47f 100644 --- a/src/main/resources/boot/CA/ItemDescriptionFactoryWf.xml +++ b/src/main/resources/boot/CA/ItemDescriptionFactoryWf.xml @@ -29,7 +29,6 @@ - 13 - + CreateItem diff --git a/src/main/resources/boot/CA/ItemDescriptionWf.xml b/src/main/resources/boot/CA/ItemDescriptionWf.xml index e8c294f..e216df0 100644 --- a/src/main/resources/boot/CA/ItemDescriptionWf.xml +++ b/src/main/resources/boot/CA/ItemDescriptionWf.xml @@ -1 +1,314 @@ -3536CreateItem3629322528311232352728292427301131221030212225SetInstanceWorkflow2124EditPropertyDescription13101112213SetInstanceWorkflow2EditPropertyDescription \ No newline at end of file + + + + + + + + + + 35 + 36 + + + + + CreateItem + + + + + + + + 36 + 29 + 32 + + + + + + + + + + + + 25 + 28 + 31 + + + + + + + + + + + + 12 + 32 + 35 + + + + + + + + + + + 27 + 28 + 29 + + + + + + + + + + + 24 + 27 + 30 + + + + + + + + + + + + 11 + 31 + 22 + + + + + + + + + + + 10 + 30 + 21 + + + + + + + + + + + 22 + 25 + + + + + SetInstanceWorkflow + + + + + + + + 21 + 24 + + + + + EditPropertyDescription + + + + + + + + 13 + 10 + 11 + 12 + + + + + + + + + + + 2 + 13 + + + + + SetInstanceWorkflow + + + + + + + + 2 + + + + + EditPropertyDescription + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/boot/CA/ReadOnlyItemDescriptionWf.xml b/src/main/resources/boot/CA/ReadOnlyItemDescriptionWf.xml index b91cbd4..7ca7ce9 100644 --- a/src/main/resources/boot/CA/ReadOnlyItemDescriptionWf.xml +++ b/src/main/resources/boot/CA/ReadOnlyItemDescriptionWf.xml @@ -1 +1,106 @@ -3536CreateItem362932323529 \ No newline at end of file + + + + + + + + + + 35 + 36 + + + + + CreateItem + + + + + + + + 36 + 29 + 32 + + + + + + + + + + + + 32 + 35 + + + + + + + + + + + 29 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/boot/CA/SchemaFactoryWf.xml b/src/main/resources/boot/CA/SchemaFactoryWf.xml index 0eabac0..9b709fd 100644 --- a/src/main/resources/boot/CA/SchemaFactoryWf.xml +++ b/src/main/resources/boot/CA/SchemaFactoryWf.xml @@ -1 +1,204 @@ -9221619716122021EditSchema13791213CreateNewLocalObjectDef212223192320 \ No newline at end of file + + + + + + + + + + 9 + 22 + + + + + + + + + + + 16 + 19 + + + + + + + + + + + 7 + 16 + 12 + + + + + + + + + + + 20 + 21 + + + + + EditSchema + + + + + + + + 13 + 7 + 9 + + + + + + + + + + + + 12 + 13 + + + + + + CreateNewLocalObjectDef + + + + + + + + 21 + 22 + 23 + + + + + + + + + + + + 19 + 23 + 20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 20a0715..d5a02cc 100644 --- a/src/main/resources/boot/CA/ScriptFactoryWf.xml +++ b/src/main/resources/boot/CA/ScriptFactoryWf.xml @@ -36,7 +36,6 @@ 20 - @@ -64,7 +63,6 @@ - @@ -80,7 +78,7 @@ - + CreateNewLocalObjectDef @@ -94,7 +92,7 @@ 22 - + EditScriptDefinition diff --git a/src/main/resources/boot/SC/LocalObjectDefCreator.xml b/src/main/resources/boot/SC/LocalObjectDefCreator.xml index 6ed88e6..e05ee9a 100644 --- a/src/main/resources/boot/SC/LocalObjectDefCreator.xml +++ b/src/main/resources/boot/SC/LocalObjectDefCreator.xml @@ -7,7 +7,6 @@ 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"); @@ -44,7 +43,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", Transitions.DONE, newObj); + newItem.requestAction(agent.getSystemKey(), "workflow/domain/EditDefinition", 0, newObj); // If this script is running in the Cristal GUI, open the new item. try { -- cgit v1.2.3