diff options
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/model/workflow')
-rw-r--r-- | sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts (renamed from sdc-workflow-designer-ui/src/app/model/workflow/configs.ts) | 36 | ||||
-rw-r--r-- | sdc-workflow-designer-ui/src/app/model/workflow/microservice.ts | 21 | ||||
-rw-r--r-- | sdc-workflow-designer-ui/src/app/model/workflow/plan-model.ts | 23 | ||||
-rw-r--r-- | sdc-workflow-designer-ui/src/app/model/workflow/position.ts | 8 | ||||
-rw-r--r-- | sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts | 12 |
5 files changed, 25 insertions, 75 deletions
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/configs.ts b/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts index 9a5a08f2..6db7bcfd 100644 --- a/sdc-workflow-designer-ui/src/app/model/workflow/configs.ts +++ b/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts @@ -1,21 +1,15 @@ -/**
- * 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 { Microservice } from "./microservice";
-
-/**
- * Configs
- */
-export class Configs {
- constructor(public microservices:Microservice[]) {}
-}
+/** + * 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 {WorkflowNode} from './workflow-node'; + +export interface ExclusiveGateway extends WorkflowNode { +} diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/microservice.ts b/sdc-workflow-designer-ui/src/app/model/workflow/microservice.ts deleted file mode 100644 index c0cb2586..00000000 --- a/sdc-workflow-designer-ui/src/app/model/workflow/microservice.ts +++ /dev/null @@ -1,21 +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 { Swagger } from "../swagger";
-
-/**
- * Microservice
- */
-export class Microservice {
- constructor(public name: string, public version: string, public swaggerJson: string, public definition: string) {}
-}
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 deleted file mode 100644 index 764bae71..00000000 --- a/sdc-workflow-designer-ui/src/app/model/workflow/plan-model.ts +++ /dev/null @@ -1,23 +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";
-
-/**
- * PlanModel
- */
-export class PlanModel {
- public nodes: WorkflowNode[] = [];
- public configs: any = {};
-}
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/position.ts b/sdc-workflow-designer-ui/src/app/model/workflow/position.ts index 7f3fe6fb..7593b70d 100644 --- a/sdc-workflow-designer-ui/src/app/model/workflow/position.ts +++ b/sdc-workflow-designer-ui/src/app/model/workflow/position.ts @@ -10,12 +10,6 @@ * ZTE - initial API and implementation and/or initial documentation
*/
-import { Injectable } from '@angular/core';
-
-/**
- * Position
- * Workflow node position
- */
export class Position {
- constructor(public top: number, public left: number, public width: number = 200, public height: number = 100) { }
+ constructor(public left: number, public top: number, public width = 56, public height = 56) { }
}
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts b/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts index 492cc84d..53c09a31 100644 --- a/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts +++ b/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts @@ -9,8 +9,14 @@ * Contributors: * ZTE - initial API and implementation and/or initial documentation */ +import { WorkflowElement } from './workflow-element'; +import { Position } from './position'; -export class SequenceFlow { - - constructor(public sourceRef: string, public targetRef: string, public name?: string, public condition?:string) { } +export interface SequenceFlow extends WorkflowElement { + sourceRef: string; + // sourcePosition: Position; + targetRef: string; + // targetPosition: Position; + name?: string; + condition?: string; } |