diff options
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/model/workflow')
6 files changed, 37 insertions, 9 deletions
diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts b/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts index 22170c16..c02816e8 100644 --- a/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts +++ b/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts @@ -15,11 +15,13 @@ export enum NodeType { endEvent, errorStartEvent, errorEndEvent, + intermediateCatchEvent, toscaNodeManagementTask, + serviceTask, + scriptTask, restTask, exclusiveGateway, parallelGateway, subProcess, - intermediateCatchEvent, - scriptTask + callActivity } diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts b/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts index 67ca7f3f..7a904005 100644 --- a/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts +++ b/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts @@ -14,7 +14,8 @@ import { ValueSource } from '../value-source.enum'; import { ValueType } from '../value-type.enum'; export class Parameter { - constructor(public name: string, public value: string, public valueSource: string, - public type: string = ValueType[ValueType.String], public required: boolean = false) { + 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/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts b/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts index 12637d01..1235a479 100644 --- a/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts +++ b/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts @@ -9,17 +9,21 @@ * Contributors: * ZTE - initial API and implementation and/or initial documentation */ -import { SwaggerResponse } from "../swagger"; +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[]; + produces?: string[]; // do not support non json MIME types, maybe use this later. consumes?: string[]; - parameters?: RestParameter[]; - responses?: SwaggerResponse[]; + parameters?: any[]; + responses?: SwaggerResponseClass[]; } diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts b/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts index 880f38a0..75d86f5a 100644 --- a/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts +++ b/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts @@ -13,5 +13,5 @@ import { WorkflowNode } from './workflow-node'; export interface ScriptTask extends WorkflowNode { scriptFormat: string; - script?: string; + script: string; } diff --git a/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts b/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts new file mode 100644 index 00000000..c0ce6412 --- /dev/null +++ b/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/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts b/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts index 628148a4..f278d188 100644 --- a/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts +++ b/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts @@ -17,7 +17,9 @@ export interface WorkflowNode extends WorkflowElement { connection: SequenceFlow[]; id: string; name: string; + icon?: string; parentId: string; position: Position; type: string; + typeId?: string; } |