aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/services/workflow.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/services/workflow.service.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/services/workflow.service.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/sdc-workflow-designer-ui/src/app/services/workflow.service.ts b/sdc-workflow-designer-ui/src/app/services/workflow.service.ts
index 75382269..6aedd97a 100644
--- a/sdc-workflow-designer-ui/src/app/services/workflow.service.ts
+++ b/sdc-workflow-designer-ui/src/app/services/workflow.service.ts
@@ -50,6 +50,16 @@ export class WorkflowService {
return this.dataAccessService.catalogService.saveWorkflow(this.planName, this.planModel);
}
+ public getPlanName(planId: number): string {
+ const planInfo = this.workflows.get(planId);
+ return planInfo ? planInfo.planName: null;
+ }
+
+ public getPlanModel(planId: number): PlanModel {
+ const planInfo = this.workflows.get(planId);
+ return planInfo ? planInfo.plan: null;
+ }
+
public getWorkflows(): Map<number, any> {
return this.workflows;