145
updateMask *fieldmaskpb.FieldMask,
146
identity string,
147
>
) (*workflowpb.WorkflowExecutionOptions, bool, error) {
api.go
148
>
// Merge the requested options mentioned in the field mask with the current options in the mutable state
149
>
mergedOpts, optionsToReapply, err := mergeWorkflowExecutionOptions(
150
>
getOptionsFromMutableState(ms),
151
>
opts,
152
>
updateMask,
153
>
)
154
>
if err != nil {
155
return nil, false, serviceerror.NewInvalidArgumentf("error applying update_options: %v", err)
156
}
157
158
>
hasChanges := !proto.Equal(mergedOpts, getOptionsFromMutableState(ms)) || optionsToReapply.hasChanges()
api.go
159
>
if !hasChanges {
160
return mergedOpts, false, nil
161
}