validate func(workflowContext historyi.WorkflowContext, ms historyi.MutableState, potentialStaleState bool) error,
potentialStaleState bool,
mutableState, err := wfCtx.LoadMutableState(ctx, e.shardContext)
if err != nil {
return nil, err
}
return mutableState, validate(wfCtx, mutableState, potentialStaleState)
statemachine_environment.go
}