diff --git a/services/workflowService.go b/services/workflowService.go
index 9cb026d..5f0e17c 100644
--- a/services/workflowService.go
+++ b/services/workflowService.go
@@ -59,3 +59,15 @@ func CreateWorkflow(topicName string, functionName string, sinkURL string) (pers
newWorkflow.LastModified = last_modified
return newWorkflow, nil
}
+
+func GetAvaliableWorkflowFunctions() []string {
+ keys := make([]string, len(persistence.FUNC_MAP))
+
+ i := 0
+ for f := range persistence.FUNC_MAP {
+ keys[i] = f
+ i++
+ }
+
+ return keys
+}
diff --git a/web/static/webcomponents/pages/workflows/workflows-home/workflows-home.js b/web/static/webcomponents/pages/workflows/workflows-home/workflows-home.js
index bc2ff19..c40b1cf 100644
--- a/web/static/webcomponents/pages/workflows/workflows-home/workflows-home.js
+++ b/web/static/webcomponents/pages/workflows/workflows-home/workflows-home.js
@@ -11,6 +11,8 @@ class WorkflowsHome extends HTMLElement {
super()
this.shawdow = this.attachShadow({mode: "open"})
this.shawdow.append(jobsHomeTemplate.content.cloneNode(true))
+ this.workflowfunctions = []
+ this.topicNames = []
}
newWorkflow(e) {
@@ -48,14 +50,17 @@ class WorkflowsHome extends HTMLElement {
}
newWorkflowAction() {
+ const functionOptions = this.workflowfunctions.map((func) => {return ``})
+ const topicOptions = this.topicNames.map((topic) => {return ``})
+
const modalMarkup = `
Create New Workflow