summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models
diff options
context:
space:
mode:
authorArielk <Ariel.Kenan@amdocs.com>2018-10-14 16:50:17 +0300
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-10-16 07:35:59 +0000
commitaefe3914447a6dfd0973a75cb517b338c088e37b (patch)
tree51e7a019a65fb596f5165b13a8bde32450ef45f2 /catalog-ui/src/app/models
parent2c68d1753250178027ea577df394b2ae0ed76f4f (diff)
Operation WF association UI
Change-Id: Id390261074721966ad85f881ae8c9e39b5022fad Issue-ID: SDC-1814 Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
Diffstat (limited to 'catalog-ui/src/app/models')
-rw-r--r--catalog-ui/src/app/models/operation.ts16
1 files changed, 13 insertions, 3 deletions
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<OperationParameter>;
}
+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;
}