/**
- * Copyright (c) 2017 ZTE Corporation.
+ * Copyright (c) 2017-2018 ZTE Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and the Apache License 2.0 which both accompany this distribution,
export class PlanModel {
public id: string;
+ public uuid: string;
+ public operationId: string;
public name: string;
public version: string;
public description: string;
public getModelData() {
this.activatedRoute.queryParams.subscribe(queryParams => {
- let modelId = queryParams.id;
- this.http.get(InterfaceService.ModelUrl + modelId).subscribe(data => {
+ let modelId = queryParams.hasOwnProperty("id") ? queryParams.id : "";
+ let name = queryParams.hasOwnProperty("name") ? queryParams.name : "";
+ let uuid = queryParams.hasOwnProperty("uuid") ? queryParams.uuid :"";
+ let operationId = queryParams.hasOwnProperty("operationId") ? queryParams.operationId : "";
+
+ this.http.get(InterfaceService.ModelUrl + modelId
+ + "?name=" + name + "&uuid=" + uuid
+ + "&operationId=" + operationId).subscribe(data => {
this.broadcast.broadcast(this.broadcast.initModel, data);
}, error => {
this.translate.get('WORKFLOW.MSG.LOAD_FAIL').subscribe((res: string) => {