X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fotf.git;a=blobdiff_plain;f=otf-frontend%2Fclient%2Fsrc%2Fapp%2Fshared%2Fmodules%2Fcreate-test-form%2Fdefinition-instance.class.ts;fp=otf-frontend%2Fclient%2Fsrc%2Fapp%2Fshared%2Fmodules%2Fcreate-test-form%2Fdefinition-instance.class.ts;h=d73e48a361c63ec3afde6d0407aa753a26182932;hp=0000000000000000000000000000000000000000;hb=14f6f95c84a4a1fa8774190db4a03fd0214ec55f;hpb=f49bd1efeaaddd4891c1f329b18d8cfb28b3e75b diff --git a/otf-frontend/client/src/app/shared/modules/create-test-form/definition-instance.class.ts b/otf-frontend/client/src/app/shared/modules/create-test-form/definition-instance.class.ts new file mode 100644 index 0000000..d73e48a --- /dev/null +++ b/otf-frontend/client/src/app/shared/modules/create-test-form/definition-instance.class.ts @@ -0,0 +1,60 @@ +/* Copyright (c) 2019 AT&T Intellectual Property. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +##############################################################################*/ + + +export class DefinitionInstance { + + public bpmnFileId: String; + public bpmnXml: any; + public resourceFileId: String; + public resourceFileName: String; + public isDeployed: Boolean; + public testHeads: TestHead[]; + public dataTestHeads: DataTestHead[]; + public testDataTemplate: String; + public testDataTemplateJSON: any; + public version: String; + public bpmnHasChanged: Boolean; + public pflos: Pflo[]; + + constructor(){ + this.testDataTemplate = ''; + this.version = ''; + this.testHeads = []; + this.dataTestHeads = []; + this.pflos = []; + this.isDeployed = false; + this.bpmnFileId = null; + this.resourceFileName = null; + this.bpmnXml = null; + this.resourceFileId = null; + this.bpmnHasChanged = false; + } + +} + +interface TestHead { + bpmnVthTaskId: String; + testHeadId: String; +} + +interface DataTestHead extends TestHead { + testHead: any; +} + +interface Pflo { + bpmnPfloTaskId: String; + label: String; +} \ No newline at end of file