--- /dev/null
+/* Copyright (c) 2019 AT&T Intellectual Property. #\r
+# #\r
+# Licensed under the Apache License, Version 2.0 (the "License"); #\r
+# you may not use this file except in compliance with the License. #\r
+# You may obtain a copy of the License at #\r
+# #\r
+# http://www.apache.org/licenses/LICENSE-2.0 #\r
+# #\r
+# Unless required by applicable law or agreed to in writing, software #\r
+# distributed under the License is distributed on an "AS IS" BASIS, #\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #\r
+# See the License for the specific language governing permissions and #\r
+# limitations under the License. #\r
+##############################################################################*/\r
+\r
+\r
+import { Component, OnInit, Inject, HostListener } from '@angular/core';\r
+import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';\r
+import { TestHeadModalComponent } from '../test-head-modal/test-head-modal.component';\r
+import { BpmnFactoryService } from 'app/shared/factories/bpmn-factory.service';\r
+\r
+\r
+@Component({\r
+ selector: 'app-view-workflow-modal',\r
+ templateUrl: './view-workflow-modal.component.pug',\r
+ styleUrls: ['./view-workflow-modal.component.scss']\r
+})\r
+export class ViewWorkflowModalComponent implements OnInit {\r
+\r
+ public viewer;\r
+\r
+ constructor(\r
+ public dialogRef: MatDialogRef<TestHeadModalComponent>, \r
+ private bpmnFactory: BpmnFactoryService,\r
+ @Inject(MAT_DIALOG_DATA) public input_data\r
+ ) { }\r
+\r
+ async ngOnInit() {\r
+\r
+ this.viewer = await this.bpmnFactory.setup({\r
+ mode: 'viewer',\r
+ options: {\r
+ container: '#canvas'\r
+ },\r
+ xml: this.input_data.xml,\r
+ fileId: this.input_data.fileId,\r
+ testDefinitionId: this.input_data.testDefinitionId,\r
+ version: this.input_data.version\r
+ });\r
+\r
+ }\r
+\r
+}\r