Skip to content

Commit

Permalink
Implement missing method in WorkflowHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamer Eldeeb committed Dec 20, 2016
1 parent 983b8d7 commit ceb716b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions service/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ package service
import (
"log"

"code.uber.internal/devexp/minions/.gen/go/minions"
gen "code.uber.internal/devexp/minions/.gen/go/shared"
"code.uber.internal/devexp/minions/workflow"
"github.com/uber/tchannel-go/thrift"
)

var _ minions.TChanWorkflowService = (*WorkflowHandler)(nil)

// WorkflowHandler - Thrift handler inteface for workflow service
type WorkflowHandler struct {
engine workflow.Engine
Expand Down Expand Up @@ -81,3 +84,10 @@ func (wh *WorkflowHandler) StartWorkflowExecution(
RunId: wf.RunId,
}, err
}

// GetWorkflowExecutionHistory - retrieves the hisotry of workflow execution
func (wh *WorkflowHandler) GetWorkflowExecutionHistory(
ctx thrift.Context,
getRequest *gen.GetWorkflowExecutionHistoryRequest) (*gen.GetWorkflowExecutionHistoryResponse, error) {
return wh.engine.GetWorkflowExecutionHistory(getRequest)
}

0 comments on commit ceb716b

Please sign in to comment.