838
updateFn func(chasm.MutableContext, chasm.Component) error,
839
options chasm.TransitionOptions,
841
>
executionRef.RunID = primitives.NewUUID().String()
842
>
843
>
executionKey := executionRef.ExecutionKey
844
>
nsRegistry := shardContext.GetNamespaceRegistry()
845
>
nsEntry, err := nsRegistry.GetNamespaceByID(namespace.ID(executionKey.NamespaceID))
846
>
if err != nil {
847
return newExecutionParams{}, err
848
}
849
851
>
shardContext,
852
>
shardContext.GetEventsCache(),
853
>
shardContext.GetLogger(),
854
>
nsEntry,
855
>
executionKey.BusinessID,
856
>
executionKey.RunID,
857
>
shardContext.GetTimeSource().Now(),
858
>
)
859
>
mutableState.AttachRequestID(options.RequestID, enumspb.EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, 0)
860
>
861
>
chasmTree, ok := mutableState.ChasmTree().(*chasm.Node)
862
>
if !ok {
863
return newExecutionParams{}, serviceerror.NewInternalf(
864
"CHASM tree implementation not properly wired up, encountered type: %T, expected type: %T",