private ProcessController processController;
private ProcessBuilderPage builderPage;
- private ProcessLogPage logPage;
+ //private ProcessLogPage logPage;
private ExecutionModulesManager modulesManager;
- private Boolean switchToLog = false;
+ //private Boolean switchToLog = false;
@Override
public void init(IEditorSite site, IEditorInput input)
doSave(null);
try {
// show log
- if (switchToLog)
- setActivePage(logPage.getId());
+// if (switchToLog)
+// setActivePage(logPage.getId());
ExecutionProcess process = processController.process(processNode);
Map<String, String> properties = new HashMap<String, String>();
builderPage = new ProcessBuilderPage(this, processNode);
addPage(builderPage);
firePropertyChange(PROP_DIRTY);
- logPage = new ProcessLogPage(this, processNode);
- addPage(logPage);
+// logPage = new ProcessLogPage(this, processNode);
+// addPage(logPage);
} catch (PartInitException e) {
throw new SlcException("Cannot add pages", e);
}
* optimization field: we compute once the length of the path to slc:log so
* that we can easily substring the relative path of logs.
*/
- private Integer logPathLength;
+ //private Integer logPathLength;
public ProcessLogPage(FormEditor editor, Node processNode) {
super(editor, ID, "Log");
try {
String logBasePath = processNode.getPath() + '/' + SlcNames.SLC_LOG;
- logPathLength = logBasePath.length();
+ //logPathLength = logBasePath.length();
Workspace ws = processNode.getSession().getWorkspace();
protected void appendLogEntry(StringBuffer buf, Node logEntry)
throws RepositoryException {
// +1 in order to remove the first slash
- String relPath = logEntry.getPath().substring(logPathLength + 1);
+// String relPath = logEntry.getPath().substring(logPathLength + 1);
//System.out.println("relPath=" + relPath);
- int firstSlashIndex = relPath.indexOf('/');
- int lastSlashIndex = relPath.lastIndexOf('/');
- String thread = relPath.substring(0, firstSlashIndex);
- String location = relPath.substring(firstSlashIndex, lastSlashIndex);
+// int firstSlashIndex = relPath.indexOf('/');
+// int lastSlashIndex = relPath.lastIndexOf('/');
+// String thread = relPath.substring(0, firstSlashIndex);
+// String location = relPath.substring(firstSlashIndex, lastSlashIndex);
// String date = dateFormat.format(logEntry
// .getProperty(SlcNames.SLC_TIMESTAMP).getDate().getTime());
<bean id="bundlesManager" class="org.argeo.slc.osgi.BundlesManager" />\r
\r
<!-- Logging -->\r
- <bean id="log4Notification" class="org.argeo.slc.log4j.SlcExecutionAppender"\r
- init-method="init" destroy-method="destroy">\r
- <property name="disabled" value="${slc.agent.log4Notification.disabled}" />\r
- <property name="level" value="${slc.agent.log4Notification.level}" />\r
- <property name="onlyExecutionThread"\r
- value="${slc.agent.log4Notification.onlyExecutionThread}" />\r
- </bean>\r
+<!-- <bean id="log4Notification" class="org.argeo.slc.log4j.SlcExecutionAppender" -->\r
+<!-- init-method="init" destroy-method="destroy"> -->\r
+<!-- <property name="disabled" value="${slc.agent.log4Notification.disabled}" /> -->\r
+<!-- <property name="level" value="${slc.agent.log4Notification.level}" /> -->\r
+<!-- <property name="onlyExecutionThread" -->\r
+<!-- value="${slc.agent.log4Notification.onlyExecutionThread}" /> -->\r
+<!-- </bean> -->\r
\r
\r
</beans>
\ No newline at end of file