func (wh *WorkflowHandler) DescribeWorkflowExecution(
	ctx context.Context,
	request *types.DescribeWorkflowExecutionRequest,
) (resp *types.DescribeWorkflowExecutionResponse, retError error) {
	defer log.CapturePanic(wh.GetLogger(), &retError)

	scope, sw := wh.startRequestProfileWithDomain(ctx, metrics.FrontendDescribeWorkflowExecutionScope, request)
	defer sw.Stop()

	if wh.isShuttingDown() {
		return nil, errShuttingDown
	}

	if err := wh.versionChecker.ClientSupported(ctx, wh.config.EnableClientVersionCheck()); err != nil {
		return nil, wh.error(err, scope)
	}

	if request == nil {
		return nil, wh.error(errRequestNotSet, scope)
	}

	domainName := request.GetDomain()
	wfExecution := request.GetExecution()
	tags := getDomainWfIDRunIDTags(domainName, wfExecution)

	if domainName == "" {
		return nil, wh.error(errDomainNotSet, scope, tags...)
	}

	if ok := wh.allow(true, request); !ok {
		return nil, wh.error(createServiceBusyError(), scope, tags...)
	}

	if err := validateExecution(wfExecution); err != nil {
		return nil, wh.error(err, scope, tags...)
	}

	domainID, err := wh.GetDomainCache().GetDomainID(request.GetDomain())
	if err != nil {
		return nil, wh.error(err, scope, tags...)
	}

	response, err := wh.GetHistoryClient().DescribeWorkflowExecution(ctx, &types.HistoryDescribeWorkflowExecutionRequest{
		DomainUUID: domainID,
		Request:    request,
	})

	if err != nil {
		return nil, wh.error(err, scope, tags...)
	}

	return response, nil
}
// DescribeWorkflowExecution returns information about the specified workflow execution.
DescribeWorkflowExecution returns information about the specified workflow execution.
// DescribeWorkflowExecution returns information about the specified workflow execution .
func (wh *WorkflowHandler) DescribeWorkflowExecution(
	ctx context.Context,
	request *types.DescribeWorkflowExecutionRequest,
) (resp *types.DescribeWorkflowExecutionResponse, retError error) {
	defer log.CapturePanic(wh.GetLogger(), &retError)
	scope, sw := wh.startRequestProfileWithDomain(ctx, metrics.FrontendDescribeWorkflowExecutionScope, request)
	defer sw.Stop()
	if wh.isShuttingDown() {
		return nil, errShuttingDown
	}
	if err := wh.versionChecker.ClientSupported(ctx, wh.config.EnableClientVersionCheck()); err != nil {
		return nil, wh.error(err, scope)
	}
	if request == nil {
		return nil, wh.error(errRequestNotSet, scope)
	}
	domainName := request.GetDomain()
	wfExecution := request.GetExecution()
	tags := getDomainWfIDRunIDTags(domainName, wfExecution)
	if domainName == "" {
		return nil, wh.error(errDomainNotSet, scope, tags...)
	}
	if ok := wh.allow(true, request); !ok {
		return nil, wh.error(createServiceBusyError(), scope, tags...)
	}
	if err := validateExecution(wfExecution); err != nil {
		return nil, wh.error(err, scope, tags...)
	}
	domainID, err := wh.GetDomainCache().GetDomainID(request.GetDomain())
	if err != nil {
		return nil, wh.error(err, scope, tags...)
	}
	response, err := wh.GetHistoryClient().DescribeWorkflowExecution(ctx, &types.HistoryDescribeWorkflowExecutionRequest{
		DomainUUID: domainID,
		Request:    request,
	})
	if err != nil {
		return nil, wh.error(err, scope, tags...)
	}
	return response, nil
}
func ( wh * WorkflowHandler ) DescribeWorkflowExecution ( ctx context . Context , request * types . DescribeWorkflowExecutionRequest , ) ( resp * types . DescribeWorkflowExecutionResponse , retError error ) { defer log . CapturePanic ( wh . GetLogger ( ) , & retError ) scope , sw := wh . startRequestProfileWithDomain ( ctx , metrics . FrontendDescribeWorkflowExecutionScope , request ) defer sw . Stop ( ) if wh . isShuttingDown ( ) { return nil , errShuttingDown } if err := wh . versionChecker . ClientSupported ( ctx , wh . config . EnableClientVersionCheck ( ) ) ; err != nil { return nil , wh . error ( err , scope ) } if request == nil { return nil , wh . error ( errRequestNotSet , scope ) } domainName := request . GetDomain ( ) wfExecution := request . GetExecution ( ) tags := getDomainWfIDRunIDTags ( domainName , wfExecution ) if domainName == " " { return nil , wh . error ( errDomainNotSet , scope , tags ... ) } if ok := wh . allow ( true , request ) ; ! ok { return nil , wh . error ( createServiceBusyError ( ) , scope , tags ... ) } if err := validateExecution ( wfExecution ) ; err != nil { return nil , wh . error ( err , scope , tags ... ) } domainID , err := wh . GetDomainCache ( ) . GetDomainID ( request . GetDomain ( ) ) if err != nil { return nil , wh . error ( err , scope , tags ... ) } response , err := wh . GetHistoryClient ( ) . DescribeWorkflowExecution ( ctx , & types . HistoryDescribeWorkflowExecutionRequest { DomainUUID : domainID , Request : request , } ) if err != nil { return nil , wh . error ( err , scope , tags ... ) } return response , nil }
DescribeWorkflowExecution returns information about the specified workflow execution.
DescribeWorkflowExecution returns information about the specified workflow execution .