AnsweredAssumed Answered

Activiti Engine and container-managed entity manager

Question asked by lis on Jun 20, 2011
Latest reply on Aug 23, 2016 by p4w3l
Is it possible to configure Activiti engine to use container-managed entity manager(em) when
I invoke Activiti API in EJB method?

@PersistenceContext(name = "persistence/SKO_EM")
private EntityManager em;

public testEJBMethod() {
//invoke Activiti API - I want Activiti engine to use em injected via annotation @PersistenceContext
// here Activiti engine can update some JPA variable in task listener, for example
….


//invoke some custom logic
TestEntity testEntity = em.find(..);
testEntity.setField(…);


}

Lis

Outcomes