summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/services
diff options
context:
space:
mode:
authorYuanHu <yuan.hu1@zte.com.cn>2018-04-12 11:29:50 +0800
committerYuanHu <yuan.hu1@zte.com.cn>2018-04-12 11:29:50 +0800
commitda8c367fc069efd35d3e8e0aabeea8fc78c8036c (patch)
tree04fa3146341a2f49bf00b955c956bcad2168cb2f /sdc-workflow-designer-ui/src/app/services
parent6f94812a870cbc5c4398086eebcfca001b7e1611 (diff)
Parse uuid & operationId from url
Parse uuid & operationId from url Issue-ID: SDC-1209 Change-Id: I96cd05711f83cae3825a445c630f7b92b4c2a4e5 Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/services')
-rw-r--r--sdc-workflow-designer-ui/src/app/services/interface.service.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/sdc-workflow-designer-ui/src/app/services/interface.service.ts b/sdc-workflow-designer-ui/src/app/services/interface.service.ts
index c9ef87d8..9dcafe96 100644
--- a/sdc-workflow-designer-ui/src/app/services/interface.service.ts
+++ b/sdc-workflow-designer-ui/src/app/services/interface.service.ts
@@ -30,8 +30,14 @@ export class InterfaceService {
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) => {