summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models
diff options
context:
space:
mode:
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;
}