aboutsummaryrefslogtreecommitdiffstats
path: root/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model
diff options
context:
space:
mode:
authorvempo <vitaliy.emporopulo@amdocs.com>2018-07-24 17:34:04 +0300
committervempo <vitaliy.emporopulo@amdocs.com>2018-07-25 11:39:10 +0300
commita52d50e788792a63e97a9176ab319d53db7a2853 (patch)
treeb1c2222cacf4b8192aea16d1e0315b1f005c5347 /deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model
parent3c2665debb400aef7f0ed9e235698d2ff9f859db (diff)
Replaced old implementation at root
Old project files and directories has been moved under 'deprecated-workflow-designer'. The old project is not built by the CI anymore, but can be still built manually. New modules/directories have been moved up and integrated with the CI system. Change-Id: I1528c792bcbcce9e50bfc294a1328a20e72c91cf Issue-ID: SDC-1559 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model')
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/model.ts16
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts16
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts17
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts24
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts14
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice.ts19
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-model.ts24
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts19
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/rest-config.ts17
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts18
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger.ts259
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts18
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-object.ts15
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts22
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts20
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts15
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts18
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts15
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts17
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts27
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts21
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts15
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts20
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts29
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts17
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts22
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts19
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts17
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts15
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts20
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts18
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts17
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts22
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts14
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts14
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts31
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts34
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts13
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts21
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts38
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts25
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts22
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts14
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts25
44 files changed, 1113 insertions, 0 deletions
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/model.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/model.ts
new file mode 100644
index 00000000..bd3c2c64
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/model.ts
@@ -0,0 +1,16 @@
+/**
+ * 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/workflow-node';
+export class Model {
+ public nodes: WorkflowNode[] = [];
+ public configs: any = {};
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts
new file mode 100644
index 00000000..2aee4ac2
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts
@@ -0,0 +1,16 @@
+/**
+ * Copyright (c) 2018 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
+ */
+
+export class DisplayName {
+ public zh_CN: string;
+ public en_US: string;
+} \ No newline at end of file
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts
new file mode 100644
index 00000000..cba2ca15
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts
@@ -0,0 +1,17 @@
+/**
+ * Copyright (c) 2018 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
+ */
+
+export class Icon {
+ public name: string;
+ public width: number;
+ public height: number;
+} \ No newline at end of file
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts
new file mode 100644
index 00000000..2e938022
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts
@@ -0,0 +1,24 @@
+/**
+ * Copyright (c) 2018 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 { DisplayName } from "./display-name";
+import { Icon } from "./icon";
+import { SwaggerSchema } from "../workflow/swagger/swagger-schema";
+
+export interface NodeDataType {
+ id: string;
+ displayName?: DisplayName;
+ description?: DisplayName;
+ type: string;
+ icon: Icon;
+ content: any;
+ definitions: any;
+} \ No newline at end of file
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts
new file mode 100644
index 00000000..417f79cc
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice-type.enum.ts
@@ -0,0 +1,14 @@
+/*******************************************************************************
+ * 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
+ *******************************************************************************/
+export enum NoticeType {
+ success, info, warning, danger
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice.ts
new file mode 100644
index 00000000..7f49aafb
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/notice.ts
@@ -0,0 +1,19 @@
+/**
+ * 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 { NoticeType } from './notice-type.enum';
+
+export class Notice {
+ constructor(public type: NoticeType,
+ public content: string,
+ public timeout: number = 0) {
+ }
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-model.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-model.ts
new file mode 100644
index 00000000..afe05f72
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-model.ts
@@ -0,0 +1,24 @@
+/**
+ * Copyright (c) 2017-2018 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/workflow-node';
+import { Model } from './model';
+
+export class PlanModel {
+ public id: string;
+ public uuid: string;
+ public operationId: string;
+ public name: string;
+ public version: string;
+ public description: string;
+ public scene: string;
+ public data = new Model();
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts
new file mode 100644
index 00000000..aa3f81b5
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/plan-treeview-item.ts
@@ -0,0 +1,19 @@
+/**
+ * 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
+ */
+
+export class PlanTreeviewItem {
+ constructor(public name: string,
+ public value: string,
+ public children: PlanTreeviewItem[],
+ public canSelect = true) {
+ }
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/rest-config.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/rest-config.ts
new file mode 100644
index 00000000..cace1c48
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/rest-config.ts
@@ -0,0 +1,17 @@
+/**
+ * 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 { Swagger } from './swagger';
+
+export class RestConfig {
+ constructor(public id: string, public name: string, public version: string, public url: string,
+ public swagger?: Swagger) { }
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts
new file mode 100644
index 00000000..41e30fd1
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger-setting.ts
@@ -0,0 +1,18 @@
+/**
+ * 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 { Swagger } from './swagger';
+
+export class SwaggerSetting {
+ constructor(public name: string, public version: string, public url: string, public path: string,
+ public swagger?: Swagger) {
+ }
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger.ts
new file mode 100644
index 00000000..18867086
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/swagger.ts
@@ -0,0 +1,259 @@
+/*******************************************************************************
+ * 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
+ *******************************************************************************/
+
+export class SwaggerParameterClass {
+ public description: string;
+ public position: string; // in path, query, header, body, form
+ public name: string;
+ public required: boolean;
+ public type: string;
+ public enum: any[];
+
+ // if position is body
+ public schema: SwaggerSchemaObject;
+
+ constructor(options: any) {
+ this.description = options.description;
+ this.position = options.in;
+ this.name = options.name;
+ this.required = options.required;
+ this.type = options.type;
+ this.enum = options.enum;
+ if (this.position === 'body') {
+ this.schema = getSchemaObject(options.schema);
+ }
+ }
+}
+
+export class SwaggerHeader {
+ public description: string;
+
+ constructor(options: any) {
+ this.description = options.description;
+ }
+}
+
+export class SwaggerResponseClass {
+ public description: string;
+ public schema: SwaggerSchemaObject;
+ public headers: any;
+
+ constructor({description, schema, headers}) {
+ this.description = description;
+
+ if (schema) {
+ this.schema = getSchemaObject(schema);
+ }
+
+ if (headers) {
+ this.headers = {};
+ for (const key in headers) {
+ this.headers[key] = new SwaggerHeader(headers[key]);
+ }
+ }
+ }
+}
+
+export class SwaggerMethod {
+ public consumes: string[];
+ public description: string;
+ public operationId: string;
+ public parameters: SwaggerParameterClass[];
+ public produces: string[];
+ public responses: any;
+ public summary: string;
+ public tags: string[];
+
+ constructor({ consumes, description, operationId, parameters, produces, responses, summary, tags }) {
+ this.consumes = consumes;
+ this.description = description;
+ this.operationId = operationId;
+ this.parameters = parameters.map(param => new SwaggerParameterClass(param));
+ this.produces = produces;
+ this.responses = this.initResponses(responses);
+ this.summary = summary;
+ this.tags = tags;
+ }
+
+ private initResponses(responses: any): any {
+ const responseObjs = {};
+ for (const key in responses) {
+ responseObjs[key] = new SwaggerResponseClass(responses[key]);
+ }
+
+ return responseObjs;
+ }
+}
+
+export class SwaggerInfo {
+ public title: string;
+ public version: string;
+
+ constructor({ title, version }) {
+ this.title = title;
+ this.version = version;
+ }
+}
+
+export class SwaggerTag {
+ public name: string;
+
+ constructor({name}) {
+ this.name = name;
+ }
+}
+
+export class Swagger {
+ public basePath: string;
+ public definitions: any;
+ public info: SwaggerInfo;
+ public paths: any;
+ public swagger: string;
+ public tags: SwaggerTag[];
+
+ constructor({basePath, definitions, info, paths, swagger, tags}) {
+ this.basePath = basePath;
+ this.definitions = this.initDefinitions(definitions);
+ this.info = new SwaggerInfo(info);
+ this.paths = this.initPaths(paths);
+ this.swagger = swagger;
+ if(tags) {
+ this.tags = tags.map(tag => new SwaggerTag(tag));
+ }
+ }
+
+ private initPaths(paths: any): any {
+ const pathObjs = {};
+ for (const key in paths) {
+ pathObjs[key] = this.initPath(paths[key]);
+ }
+ return pathObjs;
+ }
+
+ private initPath(path: any): any {
+ const pathObj = {};
+
+ for (const key in path) {
+ pathObj[key] = new SwaggerMethod(path[key]);
+ }
+
+ return pathObj;
+ }
+
+ private initDefinitions(definitions: any): any {
+ const definitionObjs = {};
+ for (const key in definitions) {
+ definitionObjs[key] = getSchemaObject(definitions[key]);
+ }
+ return definitionObjs;
+ }
+}
+
+export function getSchemaObject(definition: any) {
+ if (definition.$ref) {
+ return new SwaggerReferenceObject(definition);
+ } else if (definition.type === 'array') {
+ return new SwaggerModelArray(definition);
+ } else if (definition.type === 'object') {
+ if (definition.properties) {
+ return new SwaggerModelSimple(definition);
+ } else if (definition.additionalProperties) {
+ return new SwaggerModelMap(definition);
+ } else {
+ return new SwaggerModel();
+ }
+ } else {
+ return new SwaggerPrimitiveObject(definition);
+ }
+}
+
+export class SwaggerSchemaObject {
+
+}
+
+export class SwaggerReferenceObject extends SwaggerSchemaObject {
+ public $ref: string;
+
+ constructor({ $ref }) {
+ super();
+ this.$ref = $ref;
+ }
+}
+
+export class SwaggerPrimitiveObject extends SwaggerSchemaObject {
+ public collectionFormat: string;
+ public default: any;
+ public enumValues: any[];
+ public exclusiveMaximum: boolean;
+ public exclusiveMinimum: boolean;
+ public format: string;
+ public maximum: number;
+ public maxLength: number;
+ public minimum: number;
+ public minLength: number;
+ public multipleOf: number;
+ public pattern: string;
+ public type: string;
+
+ constructor(options: any) {
+ super();
+ this.collectionFormat = options.collectionFormat;
+ this.default = options.default;
+ this.enumValues = options.enum;
+ this.exclusiveMaximum = options.exclusiveMaximum;
+ this.exclusiveMinimum = options.exclusiveMinimum;
+ this.format = options.format;
+ this.maximum = options.maximum;
+ this.maxLength = options.maxLength;
+ this.minimum = options.minimum;
+ this.minLength = options.minLength;
+ this.multipleOf = options.multipleOf;
+ this.pattern = options.pattern;
+ this.type = options.type;
+ }
+}
+
+export class SwaggerModel extends SwaggerSchemaObject {
+ public type = 'object';
+}
+
+export class SwaggerModelSimple extends SwaggerModel {
+ public properties = {};
+ public required = [];
+
+ constructor(options: any) {
+ super();
+ this.required = options.required;
+ for (const key in options.properties) {
+ this.properties[key] = getSchemaObject(options.properties[key]);
+ }
+ }
+}
+
+export class SwaggerModelMap extends SwaggerModel {
+ public additionalProperties: SwaggerSchemaObject;
+
+ constructor(options: any) {
+ super();
+ this.additionalProperties = getSchemaObject(options.additionalProperties);
+ }
+}
+
+export class SwaggerModelArray extends SwaggerSchemaObject {
+ public type = 'array';
+ public items: SwaggerSchemaObject;
+
+ constructor(options: any) {
+ super();
+ this.items = getSchemaObject(options.items);
+ }
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts
new file mode 100644
index 00000000..07ebc42e
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/topology/node-template.ts
@@ -0,0 +1,18 @@
+/**
+ * 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
+ */
+
+export class NodeTemplate {
+ public id: string;
+ public name: string;
+ public type: string;
+ public namespace: string;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-object.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-object.ts
new file mode 100644
index 00000000..0a079a8d
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-object.ts
@@ -0,0 +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
+ *******************************************************************************/
+export interface ValueObject {
+ value?: any;
+ valueSource: string;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts
new file mode 100644
index 00000000..720185a5
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-source.enum.ts
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * 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
+ *******************************************************************************/
+
+export enum ValueSource {
+ integer,
+ number,
+ boolean,
+ string,
+ Plan,
+ Topology,
+ Variable,
+ Definition,
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts
new file mode 100644
index 00000000..d3056968
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/value-type.enum.ts
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * 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
+ *******************************************************************************/
+
+export enum ValueType {
+ integer,
+ number,
+ boolean,
+ string,
+ array,
+ object
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts
new file mode 100644
index 00000000..e3fbcad3
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts
@@ -0,0 +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 {WorkflowNode} from './workflow-node';
+
+export interface EndEvent extends WorkflowNode {
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts
new file mode 100644
index 00000000..96ba0e7d
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts
@@ -0,0 +1,18 @@
+/**
+ * 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 { ValueSource } from '../value-source.enum';
+import { Parameter } from './parameter';
+import { WorkflowNode } from './workflow-node';
+
+export interface ErrorEvent extends WorkflowNode {
+ parameter?: Parameter;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts
new file mode 100644
index 00000000..6db7bcfd
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts
@@ -0,0 +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 {WorkflowNode} from './workflow-node';
+
+export interface ExclusiveGateway extends WorkflowNode {
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts
new file mode 100644
index 00000000..653e627f
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts
@@ -0,0 +1,17 @@
+/**
+ * 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 { TimerEventDefinition, TimerEventDefinitionType } from './timer-event-definition';
+import { WorkflowNode } from './workflow-node';
+
+export interface IntermediateCatchEvent extends WorkflowNode {
+ timerEventDefinition?: TimerEventDefinition;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts
new file mode 100644
index 00000000..c02816e8
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * 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
+ *******************************************************************************/
+
+export enum NodeType {
+ startEvent,
+ endEvent,
+ errorStartEvent,
+ errorEndEvent,
+ intermediateCatchEvent,
+ toscaNodeManagementTask,
+ serviceTask,
+ scriptTask,
+ restTask,
+ exclusiveGateway,
+ parallelGateway,
+ subProcess,
+ callActivity
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts
new file mode 100644
index 00000000..7a904005
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts
@@ -0,0 +1,21 @@
+/**
+ * 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 { ValueSource } from '../value-source.enum';
+import { ValueType } from '../value-type.enum';
+
+export class Parameter {
+ constructor(public name: string, public value: any, public valueSource: string,
+ public type = ValueType[ValueType.string], public required = false,
+ public show = true, public errorMsg = '') {
+ }
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts
new file mode 100644
index 00000000..8ec4ed56
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts
@@ -0,0 +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
+ */
+
+export class Position {
+ constructor(public left: number, public top: number, public width = 56, public height = 56) { }
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts
new file mode 100644
index 00000000..a7e4eeea
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts
@@ -0,0 +1,20 @@
+/**
+ * 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 { Parameter } from './parameter';
+import { WorkflowNode } from './workflow-node';
+
+export class RestParameter extends Parameter {
+ constructor(name: string, value: string, valueSource: string, type: string,
+ public position: string, public schema: any, public required: boolean) {
+ super(name, value, valueSource, type, required);
+ }
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
new file mode 100644
index 00000000..1235a479
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts
@@ -0,0 +1,29 @@
+/**
+ * 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 { SwaggerResponseClass } from "../swagger";
+import { RestParameter } from './rest-parameter';
+import { WorkflowNode } from './workflow-node';
+import { SwaggerBaseParameter } from "./swagger/swagger-base-parameter";
+
+export interface RestTask extends WorkflowNode {
+ restConfigId?: string;
+ baseUrl?: string;
+ serviceName?: string;
+ serviceVersion?: string;
+ path?: string;
+ method?: string;
+ operationId?: string;
+ produces?: string[]; // do not support non json MIME types, maybe use this later.
+ consumes?: string[];
+ parameters?: any[];
+ responses?: SwaggerResponseClass[];
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts
new file mode 100644
index 00000000..75d86f5a
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts
@@ -0,0 +1,17 @@
+/**
+ * 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 ScriptTask extends WorkflowNode {
+ scriptFormat: string;
+ script: string;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts
new file mode 100644
index 00000000..53c09a31
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts
@@ -0,0 +1,22 @@
+/**
+ * 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 { WorkflowElement } from './workflow-element';
+import { Position } from './position';
+
+export interface SequenceFlow extends WorkflowElement {
+ sourceRef: string;
+ // sourcePosition: Position;
+ targetRef: string;
+ // targetPosition: Position;
+ name?: string;
+ condition?: string;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts
new file mode 100644
index 00000000..c0ce6412
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts
@@ -0,0 +1,19 @@
+/**
+ * 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';
+import { Parameter } from './parameter';
+
+export interface ServiceTask extends WorkflowNode {
+ className: string;
+ inputs: Parameter[];
+ outputs: Parameter[];
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts
new file mode 100644
index 00000000..a8f6444c
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts
@@ -0,0 +1,17 @@
+/**
+ * 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 { Parameter } from './parameter';
+import { WorkflowNode } from './workflow-node';
+
+export interface StartEvent extends WorkflowNode {
+ parameters?: Parameter[];
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts
new file mode 100644
index 00000000..e000ed25
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts
@@ -0,0 +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 { WorkflowNode } from './workflow-node';
+export interface SubProcess extends WorkflowNode {
+ children?: WorkflowNode[];
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts
new file mode 100644
index 00000000..82103458
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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
+ *******************************************************************************/
+export interface SwaggerBaseParameter {
+ name: string;
+ in: string; //SwaggerIn
+ description?: string;
+ required?: boolean;//default value is false
+ show?: boolean;//default value is true;
+ value?: string;
+ valueSource?: string;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts
new file mode 100644
index 00000000..f676b83d
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts
@@ -0,0 +1,18 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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 { SwaggerBaseParameter } from "./swagger-base-parameter";
+import { SwaggerSchema } from "./swagger-schema";
+
+export interface SwaggerBodyParameter extends SwaggerBaseParameter {
+ $ref: string;
+ schema: SwaggerSchema;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts
new file mode 100644
index 00000000..f8df2536
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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
+ *******************************************************************************/
+export enum SwaggerCollectionFormat {
+ csv,//comma separated values foo,bar.
+ ssv,//space separated values foo bar.
+ tsv,//tab separated values foo\tbar.
+ pipes//pipe separated values foo|bar.
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts
new file mode 100644
index 00000000..d8eaaa76
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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
+ *******************************************************************************/
+export enum SwaggerDataFormat {
+ int32,
+ int64,
+ float,
+ double,
+ byte,
+ binary,
+ date,
+ 'date-time',
+ password
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts
new file mode 100644
index 00000000..54634901
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts
@@ -0,0 +1,14 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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
+ *******************************************************************************/
+export enum SwaggerDataType {
+ integer, number, string, boolean
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts
new file mode 100644
index 00000000..dc695da6
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts
@@ -0,0 +1,14 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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
+ *******************************************************************************/
+export enum SwaggerIn {
+ query, header, path, formData, body
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts
new file mode 100644
index 00000000..0661d034
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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
+ *******************************************************************************/
+export interface SwaggerItems {
+ $ref?: string;
+ type?: string;
+ format?: string;
+ items?: SwaggerItems;
+ collectionFormat?: string;//Default value is csv
+ default?: any;
+ maximum?: number;
+ exclusiveMaximum?: boolean;
+ minimum?: number;
+ exclusiveMinimum?: boolean;
+ maxLength?: number;//integer
+ minLength?: number;//integer
+ pattern?: string;
+ maxItems?: number;//integer
+ minItems?: number;//integer
+ uniqueItems?: boolean;
+ enum?: any[];
+ multipleOf?: number;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts
new file mode 100644
index 00000000..3c28803b
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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 { SwaggerBaseParameter } from "./swagger-base-parameter";
+import { SwaggerItems } from "./swagger-items";
+
+export interface SwaggerNormalParameter extends SwaggerBaseParameter {
+ type: string;//"string", "number", "integer", "boolean", "array" or "file"
+ format?: string;//https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#dataTypeFormat
+ allowEmptyValue?: boolean;
+ items?: SwaggerItems;
+ collectionFormat?: string;
+ default?: any;
+ maximum?: number;
+ exclusiveMaximum?: boolean;
+ minimum?: number;
+ exclusiveMinimum?: boolean;
+ maxLength?: number;//integer;
+ minLength?: number;//integer;
+ pattern?: string;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
+ maxItems?: number;//integer;
+ minItems?: number;//integer;
+ uniqueItems?: boolean;
+ enum?: any[];
+ multipleOf?: number;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.1.
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts
new file mode 100644
index 00000000..a87d4bf3
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts
@@ -0,0 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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
+ *******************************************************************************/
+export interface SwaggerParameter {
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts
new file mode 100644
index 00000000..5896905d
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts
@@ -0,0 +1,21 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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 { SwaggerSchema } from "./swagger-schema";
+
+export interface SwaggerResponse {
+ description: string;
+ schema?: SwaggerSchema;
+ headers?: any;//todo: add define object
+ examples?: any;//todo: add define
+ $ref?: string;
+ name?: string;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts
new file mode 100644
index 00000000..c152830c
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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
+ *******************************************************************************/
+export interface SwaggerSchema {
+ $ref?: string;
+ format?: string;
+ title?: string;
+ description?: string;
+ default?: any;
+ multipleOf?: number;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.1.
+ maximum?: number;
+ exclusiveMaximum?: boolean;
+ minimum?: number;
+ exclusiveMinimum?: boolean;
+ maxLength?: number;//integer;
+ minLength?: number;//integer;
+ pattern?: string;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
+ maxItems?: number;//integer;
+ minItems?: number;//integer;
+ uniqueItems?: boolean;
+ maxProperties?: number;//integer;
+ minPropertiesnumber?: number;//integer;
+ required?: boolean | string[];
+ enum?: any[];
+ type?: string;
+ items?: SwaggerSchema | SwaggerSchema[];
+ allOf?: any;//every property is a SwaggerSchema;
+ properties?: any;//every property is a SwaggerSchema;
+ additionalProperties?: any;//every property is a SwaggerSchema;//boolean | SwaggerSchema;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts
new file mode 100644
index 00000000..101ef46c
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts
@@ -0,0 +1,25 @@
+/**
+ * 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 enum TimerEventDefinitionType {
+ timeDate,
+ timeDuration,
+ timeCycle,
+}
+
+export interface TimerEventDefinition extends WorkflowNode {
+ type: string; // 'timeDate', 'timeCycle', 'timeDuration'
+ timeDate?: string; // 2007-04-05T12:30-02:00
+ timeDuration?: string; // ISO 8601 P1Y3M5DT6H7M30S
+ timeCycle?: string; // ISO 8601 R5/P1Y2M10DT2H30M
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts
new file mode 100644
index 00000000..7767b640
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts
@@ -0,0 +1,22 @@
+/**
+ * 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 { NodeTemplate } from '../topology/node-template';
+import { Parameter } from './parameter';
+import { WorkflowNode } from './workflow-node';
+
+export interface ToscaNodeTask extends WorkflowNode {
+ input?: Parameter[];
+ output?: Parameter[];
+ nodeInterface?: string;
+ operation?: string;
+ template?: NodeTemplate;
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts
new file mode 100644
index 00000000..e41fc93a
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts
@@ -0,0 +1,14 @@
+/**
+ * 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
+ */
+
+export interface WorkflowElement {
+}
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts
new file mode 100644
index 00000000..f278d188
--- /dev/null
+++ b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts
@@ -0,0 +1,25 @@
+/**
+ * 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 { WorkflowElement } from './workflow-element';
+import { Position } from './position';
+import { SequenceFlow } from './sequence-flow';
+
+export interface WorkflowNode extends WorkflowElement {
+ connection: SequenceFlow[];
+ id: string;
+ name: string;
+ icon?: string;
+ parentId: string;
+ position: Position;
+ type: string;
+ typeId?: string;
+}