aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/services/workflow.service.ts
diff options
context:
space:
mode:
authorArielk <Ariel.Kenan@amdocs.com>2019-02-28 16:37:57 +0200
committerArielk <Ariel.Kenan@amdocs.com>2019-02-28 16:45:22 +0200
commite0c98681f9fcbae59eab32822784ae95c4768d40 (patch)
treeb34640753dcc0f2f622555406ae241bb33eed7c0 /catalog-ui/src/app/ng2/services/workflow.service.ts
parent1ca0cce9f4e2397b9fe33c906003a4dba51a934c (diff)
fix artifact delivery id implementation
Change-Id: Ib2dc33852ff86ec0fd789b74e6a1fd7d9a50e798 Issue-ID: SDC-2084 Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
Diffstat (limited to 'catalog-ui/src/app/ng2/services/workflow.service.ts')
-rw-r--r--catalog-ui/src/app/ng2/services/workflow.service.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/catalog-ui/src/app/ng2/services/workflow.service.ts b/catalog-ui/src/app/ng2/services/workflow.service.ts
index 36d56d6fa7..81a2ea3b7f 100644
--- a/catalog-ui/src/app/ng2/services/workflow.service.ts
+++ b/catalog-ui/src/app/ng2/services/workflow.service.ts
@@ -3,7 +3,7 @@ import { Response } from "@angular/http";
import { Observable } from "rxjs/Observable";
import { HttpService } from "./http.service";
import { SdcConfigToken, ISdcConfig } from "../config/sdc-config.config";
-import { Component, CreateOperationResponse } from "app/models";
+import { Component, OperationModel } from "app/models";
interface WorkflowOutputParameter {
name: string,
@@ -30,9 +30,9 @@ export class WorkflowServiceNg2 {
this.catalogBaseUrl = sdcConfig.api.POST_workflow_artifact;
}
- public associateWorkflowArtifact(component: Component, operation: CreateOperationResponse): Observable<any> {
+ public associateWorkflowArtifact(component: Component, operation: OperationModel): Observable<any> {
return this.http.post(this.baseUrl + '/workflows/' + operation.workflowId + '/versions/' + operation.workflowVersionId + '/artifact-deliveries', {
- endpoint: this.catalogBaseUrl + '/' + component.getTypeUrl() + component.uuid + '/interfaces/' + operation.interfaceId + '/operations/' + operation.uniqueId + '/artifacts/' + operation.artifactUUID,
+ endpoint: this.catalogBaseUrl + '/' + component.getTypeUrl() + component.uuid + '/interfaces/' + operation.interfaceId + '/operations/' + operation.uniqueId + '/artifacts/' + operation.implementation.artifactUUID,
method: 'POST'
})
.map((res:Response) => {