From 2356116cdf19843ba11bc0e781577b5a539ba712 Mon Sep 17 00:00:00 2001 From: Lvbo163 Date: Tue, 9 Jan 2018 16:15:28 +0800 Subject: remove plan name from plan definition change workflow structure Issue-ID: SDC-889 Change-Id: I8ddb053361960d741920c7fe6fff628eb29fbf0c Signed-off-by: Lvbo163 --- .../src/app/model/workflow/plan-model.ts | 23 ++++++++++++++++++++++ .../src/app/model/workflow/workflow.ts | 22 --------------------- 2 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 sdc-workflow-designer-ui/src/app/model/workflow/plan-model.ts delete mode 100644 sdc-workflow-designer-ui/src/app/model/workflow/workflow.ts (limited to 'sdc-workflow-designer-ui/src/app/model') diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/plan-model.ts b/sdc-workflow-designer-ui/src/app/model/workflow/plan-model.ts new file mode 100644 index 00000000..764bae71 --- /dev/null +++ b/sdc-workflow-designer-ui/src/app/model/workflow/plan-model.ts @@ -0,0 +1,23 @@ +/** + * Copyright (c) 2017 ZTE Corporation. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and the Apache License 2.0 which both accompany this distribution, + * and are available at http://www.eclipse.org/legal/epl-v10.html + * and http://www.apache.org/licenses/LICENSE-2.0 + * + * Contributors: + * ZTE - initial API and implementation and/or initial documentation + */ + +import { Injectable } from '@angular/core'; +import { WorkflowNode } from "./workflow-node"; +import { Configs } from "./configs"; + +/** + * PlanModel + */ +export class PlanModel { + public nodes: WorkflowNode[] = []; + public configs: any = {}; +} diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/workflow.ts b/sdc-workflow-designer-ui/src/app/model/workflow/workflow.ts deleted file mode 100644 index 4ab15446..00000000 --- a/sdc-workflow-designer-ui/src/app/model/workflow/workflow.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2017 ZTE Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and the Apache License 2.0 which both accompany this distribution, - * and are available at http://www.eclipse.org/legal/epl-v10.html - * and http://www.apache.org/licenses/LICENSE-2.0 - * - * Contributors: - * ZTE - initial API and implementation and/or initial documentation - */ - -import { Injectable } from '@angular/core'; -import { WorkflowNode } from "./workflow-node"; -import { Configs } from "./configs"; - -/** - * Workflow - */ -export class Workflow { - constructor(public id: string, public name: string, public nodes: WorkflowNode[], public configs: Configs) {} -} -- cgit