IntegrityMonitor check before commit 57/24757/1
authorKevin McKiou <km097d@att.com>
Tue, 21 Nov 2017 19:36:04 +0000 (13:36 -0600)
committerKevin McKiou <km097d@att.com>
Tue, 21 Nov 2017 19:36:27 +0000 (13:36 -0600)
commit94dc887dd7e31856a2a1950bd4c210e2139fbfa0
tree4c7ce4f79b49f34de62fb7ec5ba32efc8e4944d9
parente73c82943d4a1e6dffd7712837d50e58c01bef7b
IntegrityMonitor check before commit

Under some conditions the JPA transaction may be already closed
when commit is called in StateManagement. Surround it with a
check to see if the transaction is active, so it will not
generate an error in the log.

Issue-ID: POLICY-484
Change-Id: Id54585e68361a0be9ae8afd7e9ccba2f7eadfe5f
Signed-off-by: Kevin McKiou <km097d@att.com>
integrity-monitor/src/main/java/org/onap/policy/common/im/StateManagement.java