918
shardContext historyi.ShardContext,
919
newExecutionParams newExecutionParams,
921
>
err := newExecutionParams.executionContext.CreateWorkflowExecution(
922
>
ctx,
923
>
shardContext,
924
>
persistence.CreateWorkflowModeBrandNew,
925
>
"", // previousRunID
926
>
0, // prevlastWriteVersion
927
>
newExecutionParams.mutableState,
928
>
newExecutionParams.snapshot,
929
>
newExecutionParams.events,
930
>
historyi.TransactionPolicyActive,
931
>
)
932
>
if err == nil {
933
return currentExecutionInfo{}, false, nil
934
}