6537
}
6538
6540
>
Name: ci.WorkflowTypeName,
6541
>
}
6542
>
6543
>
event := ms.hBuilder.AddChildWorkflowExecutionCompletedEvent(
6544
>
ci.InitiatedEventId,
6545
>
ci.StartedEventId,
6546
>
namespace.Name(ci.Namespace),
6547
>
namespace.ID(ci.NamespaceId),
6548
>
childExecution,
6549
>
workflowType,
6550
>
attributes.Result,
6551
>
)
6552
>
if err := ms.ApplyChildWorkflowExecutionCompletedEvent(event); err != nil {
6553
return nil, err
6554
}
6556
}
6557
6558
func (ms *MutableStateImpl) ApplyChildWorkflowExecutionCompletedEvent(
6559
event *historypb.HistoryEvent,
6561
>
attributes := event.GetChildWorkflowExecutionCompletedEventAttributes()
6562
>
initiatedID := attributes.GetInitiatedEventId()
6563
>
6564
>
return ms.DeletePendingChildExecution(initiatedID)
6565
>
}
6566
6567
func (ms *MutableStateImpl) AddChildWorkflowExecutionFailedEvent(