From 7236fd92143103e375d8acc3d95afbadfd80922b Mon Sep 17 00:00:00 2001 From: Ferdinando Villa Date: Fri, 15 Nov 2024 21:38:47 +0100 Subject: [PATCH] Moving on --- .../klab/services/runtime/RuntimeService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klab.services.runtime/src/main/java/org/integratedmodelling/klab/services/runtime/RuntimeService.java b/klab.services.runtime/src/main/java/org/integratedmodelling/klab/services/runtime/RuntimeService.java index d555fc4fb..61447cf1e 100644 --- a/klab.services.runtime/src/main/java/org/integratedmodelling/klab/services/runtime/RuntimeService.java +++ b/klab.services.runtime/src/main/java/org/integratedmodelling/klab/services/runtime/RuntimeService.java @@ -282,14 +282,14 @@ public long submit(Observation observation, ContextScope scope) { if (scope instanceof ServiceContextScope serviceContextScope) { var digitalTwin = getDigitalTwin(scope); -// var parentActivity = getInitializationActivity(observation, scope); + var parentActivity = Provenance.getActivity(scope); var agent = getAgent(scope); /* * The initial activity should be in the scope; if not, we're observing at the * root DT level and we get the context initialization activity as parent. */ - var instantiation = digitalTwin.knowledgeGraph().operation(agent, null, + var instantiation = digitalTwin.knowledgeGraph().operation(agent, parentActivity, Activity.Type.INSTANTIATION, observation); try (instantiation) {