"root": "/sdc1/feProxy/rest",
"no_proxy_root": "/sdc1/rest",
"workflow_root": "/sdc1/feProxy/wf",
- "POST_workflow_artifact": "/v1/catalog",
+ "POST_workflow_artifact": "sdc/v1/catalog",
"PUT_service": "/v1/catalog/services/:id/metadata",
"GET_download_artifact": "/v1/catalog/",
"GET_SDC_Version": "/version",
"root": "/sdc1/feProxy/rest",
"no_proxy_root": "/sdc1/rest",
"workflow_root": "/sdc1/feProxy/wf",
- "POST_workflow_artifact": "/v1/catalog",
+ "POST_workflow_artifact": "sdc/v1/catalog",
"PUT_service": "/v1/catalog/services/:id/metadata",
"GET_download_artifact": "/v1/catalog/",
"GET_SDC_Version": "/version",
private createOperation = (operation: OperationModel): any => {
this.ComponentServiceNg2.createInterfaceOperation(this.component, operation).subscribe((response: CreateOperationResponse) => {
this.openOperation = null;
-
+ this.operationList.push(new OperationModel(response));
if (response.workflowId) {
const resourceId = this.component.uuid;
const operationId = response.uniqueId;
const workflowId = response.workflowId;
const versionId = response.workflowVersionId;
const artifactId = response.artifactUUID;
-
- this.WorkflowServiceNg2.associateWorkflowArtifact(resourceId, operationId, workflowId, versionId, artifactId);
+ this.WorkflowServiceNg2.associateWorkflowArtifact(resourceId, operationId, workflowId, versionId, artifactId).subscribe();
}
});
}
public updateWorkflowVersion(workflowId: string, versionId: string, payload: any): Observable<any> {
return this.http.put(this.baseUrl + '/workflows/' + workflowId + '/versions/' + versionId, payload)
.map((res:Response) => {
- return res;
+ return res.json();
});
}
public associateWorkflowArtifact(resourceUuid, operationId, workflowId, workflowVersionId, artifactUuid): Observable<any> {
- return this.http.post(this.baseUrl + '/workflows/' + workflowId + '/versions/' + workflowVersionId + '/artifact-deliveries',
- {
+ return this.http.post(this.baseUrl + '/workflows/' + workflowId + '/versions/' + workflowVersionId + '/artifact-deliveries', {
endpoint: this.catalogBaseUrl + '/resources/' + resourceUuid + '/interfaces/' + operationId + '/artifacts/' + artifactUuid,
method: 'POST'
})