6037
}
6038
6040
return nil, errBatchAPINotAllowed
6041
}
6042
6044
>
WorkflowId: request.GetJobId(),
6045
>
RunId: "",
6046
>
}
6047
>
resp, err := wh.DescribeWorkflowExecution(ctx, &workflowservice.DescribeWorkflowExecutionRequest{
6048
>
Namespace: request.GetNamespace(),
6049
>
Execution: execution,
6050
>
})
6051
>
if err != nil {
6052
return nil, err
6053
}
6054
6056
>
operationState := getBatchOperationState(executionInfo.GetStatus())
6057
>
memo := executionInfo.GetMemo().GetFields()
6058
>
operationReason := memo[batcher.BatchReasonMemo]
6059
>
var reason string
6060
>
err = payload.Decode(operationReason, &reason)
6061
>
if err != nil {
6062
return nil, err
6063
}
6065
>
encodedBatcherIdentity := executionInfo.GetSearchAttributes().GetIndexedFields()[sadefs.BatcherUser]
6066
>
err = payload.Decode(encodedBatcherIdentity, &identity)
6067
>
if err != nil {
6068
return nil, err
6069
}