From 33a3fb77f33c42d84f223d20dc7f2d3561bcf4d5 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti Date: Thu, 17 Aug 2023 09:40:32 +0200 Subject: [PATCH] [JBPM-10187] Adding traces for process instance info --- .../org/jbpm/persistence/JpaProcessPersistenceContext.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jbpm-persistence/jbpm-persistence-jpa/src/main/java/org/jbpm/persistence/JpaProcessPersistenceContext.java b/jbpm-persistence/jbpm-persistence-jpa/src/main/java/org/jbpm/persistence/JpaProcessPersistenceContext.java index 52c60ded03..02eb9c4f38 100644 --- a/jbpm-persistence/jbpm-persistence-jpa/src/main/java/org/jbpm/persistence/JpaProcessPersistenceContext.java +++ b/jbpm-persistence/jbpm-persistence-jpa/src/main/java/org/jbpm/persistence/JpaProcessPersistenceContext.java @@ -37,10 +37,13 @@ import org.jbpm.process.instance.ProcessInstance; import org.jbpm.process.instance.ProcessInstanceManager; import org.kie.internal.process.CorrelationKey; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class JpaProcessPersistenceContext extends JpaPersistenceContext implements ProcessPersistenceContext { + public JpaProcessPersistenceContext(EntityManager em, TransactionManager txm) { super( em, txm ); @@ -66,6 +69,7 @@ public PersistentProcessInstance findProcessInstanceInfo(Long processId) { if( this.pessimisticLocking ) { return em.find( ProcessInstanceInfo.class, processId, lockMode ); } + logger.trace("Reading process instance info {}, processId"); return em.find( ProcessInstanceInfo.class, processId ); }