Skip to content

Commit

Permalink
[JBPM-10187] Adding traces for process instance info
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Aug 21, 2023
1 parent 7e5cbb8 commit 4a2eb20
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
public class JpaProcessPersistenceContext extends JpaPersistenceContext
implements
ProcessPersistenceContext {


public JpaProcessPersistenceContext(EntityManager em, TransactionManager txm) {
super( em, txm );
Expand All @@ -66,7 +67,10 @@ public PersistentProcessInstance findProcessInstanceInfo(Long processId) {
if( this.pessimisticLocking ) {
return em.find( ProcessInstanceInfo.class, processId, lockMode );
}
return em.find( ProcessInstanceInfo.class, processId );
logger.trace("Reading process instance info {} with em {}", processId, em);
ProcessInstanceInfo pi = em.find(ProcessInstanceInfo.class, processId);
logger.trace("Process instance info read {}", pi);
return pi;
}

public void remove(PersistentProcessInstance processInstanceInfo) {
Expand Down

0 comments on commit 4a2eb20

Please sign in to comment.