From aefe3914447a6dfd0973a75cb517b338c088e37b Mon Sep 17 00:00:00 2001 From: Arielk Date: Sun, 14 Oct 2018 16:50:17 +0300 Subject: Operation WF association UI Change-Id: Id390261074721966ad85f881ae8c9e39b5022fad Issue-ID: SDC-1814 Signed-off-by: Arielk --- catalog-ui/src/app/models/operation.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'catalog-ui/src/app/models') diff --git a/catalog-ui/src/app/models/operation.ts b/catalog-ui/src/app/models/operation.ts index f15f0b13b5..2aa1332f06 100644 --- a/catalog-ui/src/app/models/operation.ts +++ b/catalog-ui/src/app/models/operation.ts @@ -2,7 +2,7 @@ export class OperationParameter { name: string; - type: string; + type: String; property: string; mandatory: boolean; @@ -20,6 +20,12 @@ export interface IOperationParamsList { listToscaDataDefinition: Array; } +export class WORKFLOW_ASSOCIATION_OPTIONS { + static NONE = 'NONE'; + static NEW = 'NEW'; + static EXISTING = 'EXISTING'; +} + export class OperationModel { operationType: string; description: string; @@ -28,16 +34,20 @@ export class OperationModel { inputParams: IOperationParamsList; outputParams: IOperationParamsList; + workflowAssociationType: string; workflowId: string; workflowVersionId: string; constructor(operation?: any) { if (operation) { + this.operationType = operation.operationType; this.description = operation.description; + this.uniqueId = operation.uniqueId; + this.inputParams = operation.inputParams; - this.operationType = operation.operationType; this.outputParams = operation.outputParams; - this.uniqueId = operation.uniqueId; + + this.workflowAssociationType = operation.workflowAssociationType; this.workflowId = operation.workflowId; this.workflowVersionId = operation.workflowVersionId; } -- cgit 1.2.3-korg