Adding an exposed method for apiWorkflowExecution

This commit is contained in:
Aleksandr Melnikov
2020-03-25 11:07:45 -07:00
parent 1412d2907b
commit 1ffdcf4a3d

View File

@@ -22,6 +22,10 @@ func NewWorkflowServer() *WorkflowServer {
return &WorkflowServer{}
}
func GenApiWorkflowExecution(wf *v1.WorkflowExecution) (workflow *api.WorkflowExecution) {
return apiWorkflowExecution(wf)
}
func apiWorkflowExecution(wf *v1.WorkflowExecution) (workflow *api.WorkflowExecution) {
workflow = &api.WorkflowExecution{
CreatedAt: wf.CreatedAt.Format(time.RFC3339),