diff options
author | 2019-01-27 16:30:57 +0200 | |
---|---|---|
committer | 2019-01-28 15:01:13 +0000 | |
commit | afd5f9573dfd0c89758ea3f0c0b02a838888ef90 (patch) | |
tree | 2ed98ba275fc50bf7bc44e5c0bf680f081ebf05a /catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts | |
parent | 431ea6573f40fca7415cc189604226c396cd60ed (diff) |
Map operation outputs to input properties
Change-Id: Iedf41e429c87ac9e15c8ff520e3ce7d69e44293d
Issue-ID: SDC-2084
Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts index e746c6d6fe..fd9e1cf5a8 100644 --- a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts +++ b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts @@ -73,6 +73,7 @@ export class OperationCreatorComponent { assignOutputParameters: { [key: string]: { [key: string]: Array<OperationParameter>; }; } = {}; tableParameters: Array<OperationParameter> = []; + operationOutputs: Array<OperationModel> = []; associationOptions: Array<DropdownValue> = []; workflowAssociationType: string; @@ -134,6 +135,17 @@ export class OperationCreatorComponent { this.onSelectInterface(new DropDownOption(this.operation.interfaceType)); this.validityChanged(); + this.operationOutputs = _.reduce( + this.interfaces, + (acc: Array<OperationModel>, interf) => [ + ...acc, + ..._.filter( + interf.operations, + op => op.uniqueId !== this.operation.uniqueId + ), + ], + []); + if (this.enableWorkflowAssociation) { this.isLoading = true; this.workflowServiceNg2.getWorkflows().subscribe(workflows => { |