func getWorkflow(hd *hood.Hood, id int64) *master.Workflow { wfs := master.GetWorkflows(hd) for _, wf := range wfs { if int64(wf.Id) == id { return wf } } return nil }
func main() { hd := master.GetDbConnection() workflows := master.GetWorkflows(hd) for _, w := range workflows { client.Debug("--------------------------Begin--------------------------") client.Debug("Workflow ID:", w.Id) client.Debug(workflow.WorkflowToString(hd, w)) client.Debug("---------------------------End---------------------------") } }