From 233b5884f68b813ba5efa4757e108e66e0ba01e6 Mon Sep 17 00:00:00 2001 From: Ferdinando Villa Date: Tue, 12 Nov 2024 21:36:02 +0100 Subject: [PATCH] Notes --- .../runtime/neo4j/AbstractKnowledgeGraph.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/klab.services.runtime/src/main/java/org/integratedmodelling/klab/services/runtime/neo4j/AbstractKnowledgeGraph.java b/klab.services.runtime/src/main/java/org/integratedmodelling/klab/services/runtime/neo4j/AbstractKnowledgeGraph.java index d09c2b72a..8d4b62116 100644 --- a/klab.services.runtime/src/main/java/org/integratedmodelling/klab/services/runtime/neo4j/AbstractKnowledgeGraph.java +++ b/klab.services.runtime/src/main/java/org/integratedmodelling/klab/services/runtime/neo4j/AbstractKnowledgeGraph.java @@ -64,10 +64,14 @@ public class OperationImpl implements Operation { * What should be passed: an agent that will own the activity; the current context scope for graph * operations; the activity type *

- * What can be passed: an activity as the parent of the one we create here; content for the activity - * such as description - * + * What can be passed: another operation so that its activity becomes the parent of the one we create + * here AND the transaction isn't finished upon execution; content for the activity such as description + *

* The store/link methods use the same on the database, under the transaction we opened. + * + * Each ExecutorOperation must include a previously built Operation; only the wrapping one should + * commit/rollback. + * * @param arguments */ public OperationImpl(Object... arguments) { @@ -82,7 +86,6 @@ public OperationImpl(Object... arguments) { // open the transaction for the remaining operations } - @Override public Agent getAgent() { return null;