Skip to content

Commit

Permalink
Moving on
Browse files Browse the repository at this point in the history
  • Loading branch information
fvilla committed Nov 15, 2024
1 parent 8c12d3e commit 7236fd9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7236fd9

Please sign in to comment.