450
// Communicate the result to parent execution if this is Child Workflow execution
451
if replyToParentWorkflow {
453
>
NamespaceId: parentNamespaceID,
454
>
ParentExecution: &commonpb.WorkflowExecution{
455
>
WorkflowId: parentWorkflowID,
456
>
RunId: parentRunID,
457
>
},
458
>
ParentInitiatedId: parentInitiatedID,
459
>
ParentInitiatedVersion: parentInitiatedVersion,
460
>
ChildExecution: &workflowExecution,
461
>
Clock: parentClock,
462
>
CompletionEvent: completionEvent,
463
>
ChildFirstExecutionRunId: firstRunID,
464
>
})
465
>
switch err.(type) {
466
>
case nil:
467
// noop
468
case *serviceerror.NotFound, *serviceerror.NamespaceNotFound: