summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2012-07-30 22:02:20 +0200
committerAndrew Branson <andrew.branson@cern.ch>2012-07-30 22:02:20 +0200
commitce633a2dc86f663fb35fd7ec4efb679c81ae138b (patch)
treee1438dbee55b9502047e057d1817533c90c35fdb
parentb90d45b164fa1e9263f2349307c6567542611ffe (diff)
Introduce Module.debug property to enable editing workflows on module
resources.
-rw-r--r--src/main/java/com/c2kernel/process/Bootstrap.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/process/Bootstrap.java b/src/main/java/com/c2kernel/process/Bootstrap.java
index 507be7e..371d476 100644
--- a/src/main/java/com/c2kernel/process/Bootstrap.java
+++ b/src/main/java/com/c2kernel/process/Bootstrap.java
@@ -161,9 +161,8 @@ public class Bootstrap
props.list.add(new Property(propName, propVal));
}
- // HACK: this gives all module resources a workflow. Maybe have a 'debug' flag in the module xml or server config to do this. Normally module resources should be read-only, as they would be reset at next boot.
CompositeActivity ca = new CompositeActivity();
- if (ns!=null) {
+ if (ns!=null && Gateway.getProperty("Module.debug", "false").equals("true")) {
String wf;
if (itemType.equals("CA")) wf = "ManageCompositeActDef";
else if (itemType.equals("EA")) wf = "ManageElementaryActDef";