added svcapi ui and camunda code
[it/otf.git] / otf-frontend / client / src / app / shared / modules / create-test-form / definition-instance.class.ts
1 /*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
2 #                                                                              #\r
3 #   Licensed under the Apache License, Version 2.0 (the "License");            #\r
4 #   you may not use this file except in compliance with the License.           #\r
5 #   You may obtain a copy of the License at                                    #\r
6 #                                                                              #\r
7 #       http://www.apache.org/licenses/LICENSE-2.0                             #\r
8 #                                                                              #\r
9 #   Unless required by applicable law or agreed to in writing, software        #\r
10 #   distributed under the License is distributed on an "AS IS" BASIS,          #\r
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
12 #   See the License for the specific language governing permissions and        #\r
13 #   limitations under the License.                                             #\r
14 ##############################################################################*/\r
15 \r
16 \r
17 export class DefinitionInstance {\r
18 \r
19     public bpmnFileId: String;\r
20     public bpmnXml: any;\r
21     public resourceFileId: String;\r
22     public resourceFileName: String;\r
23     public isDeployed: Boolean;\r
24     public testHeads: TestHead[];\r
25     public dataTestHeads: DataTestHead[];\r
26     public testDataTemplate: String;\r
27     public testDataTemplateJSON: any;\r
28     public version: String;\r
29     public bpmnHasChanged: Boolean;\r
30     public pflos: Pflo[];\r
31 \r
32     constructor(){\r
33         this.testDataTemplate = '';\r
34         this.version = '';\r
35         this.testHeads = [];\r
36         this.dataTestHeads = [];\r
37         this.pflos = [];\r
38         this.isDeployed = false;\r
39         this.bpmnFileId = null;\r
40         this.resourceFileName = null;\r
41         this.bpmnXml = null;\r
42         this.resourceFileId = null;\r
43         this.bpmnHasChanged = false;\r
44     }\r
45 \r
46 }\r
47 \r
48 interface TestHead {\r
49     bpmnVthTaskId: String;\r
50     testHeadId: String;\r
51 }\r
52 \r
53 interface DataTestHead extends TestHead {\r
54     testHead: any;\r
55 }\r
56 \r
57 interface Pflo {\r
58     bpmnPfloTaskId: String;\r
59     label: String;\r
60 }