From 5487b976a1d9899a92937e80cbe9aeb92a68c1e2 Mon Sep 17 00:00:00 2001
From: VijayalakshmiSF4471
<164475295+VijayalakshmirSF4471@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:31:00 +0530
Subject: [PATCH 1/2] feature(405222): integrate add API to workflow designer
---
src/app/api/workflowDesignerAPI.ts | 2 +
.../workflow-diagram.component.html | 2 +-
.../workflow-diagram.component.ts | 4 +-
.../workflow-sidebar.component.ts | 54 +++++++++++++------
src/app/models/appModel.ts | 25 ++++++---
src/app/services/workflow.service.ts | 8 ++-
6 files changed, 70 insertions(+), 25 deletions(-)
diff --git a/src/app/api/workflowDesignerAPI.ts b/src/app/api/workflowDesignerAPI.ts
index 789b5eb..bde24c5 100644
--- a/src/app/api/workflowDesignerAPI.ts
+++ b/src/app/api/workflowDesignerAPI.ts
@@ -1,11 +1,13 @@
export interface WorkflowListPathsType {
readonly updateWorkflowRules: string;
readonly deleteWorkflowRules: string;
+ readonly addWorkflowRules: string;
}
const apiPaths: WorkflowListPathsType = {
updateWorkflowRules: `{baseUrl}/{workflowId}/rules/{ruleId}/update`,
deleteWorkflowRules: `{baseUrl}/{ruleId}/rules`,
+ addWorkflowRules: `{baseUrl}`
}
export const WorkflowApiPaths: WorkflowListPathsType = apiPaths;
\ No newline at end of file
diff --git a/src/app/components/workflow-diagram/workflow-diagram.component.html b/src/app/components/workflow-diagram/workflow-diagram.component.html
index e0dfbfa..3e5b318 100644
--- a/src/app/components/workflow-diagram/workflow-diagram.component.html
+++ b/src/app/components/workflow-diagram/workflow-diagram.component.html
@@ -135,7 +135,7 @@
-
+