Fix to pass transaction id to AAI 89/8389/2
authoranupmarathe <anup.marathe@amdocs.com>
Wed, 23 Aug 2017 05:40:27 +0000 (11:10 +0530)
committeranupmarathe <anup.marathe@amdocs.com>
Thu, 24 Aug 2017 07:25:21 +0000 (12:55 +0530)
commitbba3151adcc8337697a09475cb268c93f27d6748
treed2b56c76aaa200f914b20b0eff401b0bf3d237bb
parentbf69de1b2bb800fe59125746a7aa0ada0c8bd258
Fix to pass transaction id to AAI

When SO is calling AAI REST API in groovy code, it is always passing new
X-TransactionID. As per EELF logging guidelines, this id is used for
tracking transaction across components. This fix checks if there is
already an existing transaction id in MDC, if yes then pass same. If not
found, then create one and set in MDC for use in next API calls in same
transaction.

Change-Id: If6e33b77d9615f4887e1c1fc367de4268eecc340
Issue-ID: SO-78
Signed-off-by: anupmarathe <anup.marathe@amdocs.com>
bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/AaiUtil.groovy
bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/DeleteAAIVfModule.groovy
bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/MsoUtils.groovy
bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/PrepareUpdateAAIVfModule.groovy