import javax.jcr.RepositoryException;
import javax.jcr.Session;
-import org.argeo.eclipse.ui.Error;
+import org.argeo.eclipse.ui.ErrorFeedback;
import org.argeo.jcr.JcrUtils;
import org.argeo.slc.SlcException;
import org.argeo.slc.client.ui.ClientUiPlugin;
private ExecutionModulesManager modulesManager;
+ private Boolean switchToLog = false;
+
@Override
public void init(IEditorSite site, IEditorInput input)
throws PartInitException {
doSave(null);
try {
// show log
- setActivePage(logPage.getId());
+ if (switchToLog)
+ setActivePage(logPage.getId());
ExecutionProcess process = processController.process(processNode);
Map<String, String> properties = new HashMap<String, String>();
process.getUuid());
modulesManager.registerProcessNotifier(this, properties);
} catch (Exception e) {
- Error.show("Execution of " + processNode + " failed", e);
+ ErrorFeedback.show("Execution of " + processNode + " failed", e);
}
}
Node newNode = JcrUtils.mkdirs(session, destPath,
SlcTypes.SLC_PROCESS);
+ Node rootRealizedFlowNode = newNode.addNode(SLC_FLOW);
// copy node
- JcrUtils.copy(processNode, newNode);
+ JcrUtils.copy(processNode.getNode(SLC_FLOW), rootRealizedFlowNode);
newNode.setProperty(SLC_UUID, uuid);
newNode.setProperty(SLC_STATUS, ExecutionProcess.INITIALIZED);
// reset realized flow status
- Node rootRealizedFlowNode = newNode.getNode(SLC_FLOW);
// we just manage one level for the time being
NodeIterator nit = rootRealizedFlowNode.getNodes(SLC_FLOW);
while (nit.hasNext()) {
builderPage = new ProcessBuilderPage(this, processNode);
addPage(builderPage);
firePropertyChange(PROP_DIRTY);
- logPage = new ProcessLogPage(this);
+ logPage = new ProcessLogPage(this, processNode);
addPage(logPage);
} catch (PartInitException e) {
throw new SlcException("Cannot add pages", e);
}
public void addSteps(ExecutionProcess process, List<ExecutionStep> steps) {
- logPage.addSteps(steps);
+ // logPage.addSteps(steps);
}
/** Expects one session per editor. */