<property name="cndFiles">
<list>
<value>/org/argeo/slc/jcr/slc.cnd</value>
- <value>/org/argeo/slc/repo/repo.cnd</value>
+<!-- <value>/org/argeo/slc/repo/repo.cnd</value> -->
</list>
</property>
<property name="repository" ref="nodeRepository" />
/** JCR related constants used across SLC */
public interface SlcJcrConstants {
public final static String PROPERTY_PATH = "argeo.slc.jcr.path";
- public final static String PROCESSES_BASE_PATH = "/slc/processes";
- public final static String AGENTS_BASE_PATH = "/slc/agents";
- public final static String RESULTS_BASE_PATH = "/slc/results";
- public final static String VM_AGENT_FACTORY_PATH = AGENTS_BASE_PATH + "/vm";
+ public final static String SLC_BASE_PATH = "/slc:system";
+ public final static String PROCESSES_BASE_PATH = SLC_BASE_PATH
+ + "/slc:processes";
+ public final static String AGENTS_BASE_PATH = SLC_BASE_PATH + "/slc:agents";
+ public final static String RESULTS_BASE_PATH = SLC_BASE_PATH
+ + "/slc:results";
+ public final static String VM_AGENT_FACTORY_PATH = AGENTS_BASE_PATH
+ + "/slc:vm";
}
if (executionModules != null) {
Node agentNode = session.getNode(agent.getNodePath());
for (String executionModule : executionModules.split(",")) {
- for (ModuleDescriptor moduleDescriptor : moduleDescriptors) {
+ allModules: for (ModuleDescriptor moduleDescriptor : moduleDescriptors) {
String moduleNodeName = SlcJcrUtils
.getModuleNodeName(moduleDescriptor);
if (moduleDescriptor.getName().equals(
Property.JCR_DESCRIPTION,
moduleDescriptor.getDescription());
moduleNode.setProperty(SLC_STARTED, false);
+ break allModules;
}
}
}
- session.save();
+ if (session.hasPendingChanges())
+ session.save();
}
}
} catch (RepositoryException e) {
// skip
continue steps;
- String relPath = SLC_LOG + '/' + step.getThread() + '/'
+ String relPath = SLC_LOG + '/'
+ + step.getThread().replace('/', '_') + '/'
+ step.getLocation().replace('.', '/');
String path = node.getPath() + '/' + relPath;
// clean special character
// TODO factorize in JcrUtils
- path = path.replace('@', '_').replace('/', '_')
- .replace(':', '_');
+ path = path.replace('@', '_').replace(':', '_');
Node location = JcrUtils.mkdirs(node.getSession(), path);
Node logEntry = location.addNode(Long.toString(nextLogLine),
String path = executionFlow.getPath();
String name = executionFlow.getName();
if (path == null && name.indexOf('/') >= 0) {
- path = name.substring(0, name.lastIndexOf('/') - 1);
+ path = name.substring(0, name.lastIndexOf('/'));
name = name.substring(name.lastIndexOf('/'));
}