JBoss Community

Re: In memory TaskClient without Mina or JMS

created by Daniele Ulrich in jBPM - View the full discussion

Hi Franklin

 

 

 

 

 

public

executeEscalatedDeadline(Task task,

Deadline deadline,

EntityManager em,

TaskService service) {

 

if ( deadline == null || deadline.getEscalations() == null

) {

 

;

}

 



 

If I check the references to getEscalations() or setEscalations().... you will not find any except in a test case... even for the Entity "Escalation" itself you won't find references where the object would be created...

 

So it will be up to you to write an EscalationHandler of your own and to register it with this constructor:

 

 

public

 

TaskService(EntityManagerFactory emf, SystemEventListener systemEventListener, EscalatedDeadlineHandler escalationHandler)

 

By the way: we have decided not to use this service anymore. As I said before it is not mature enough, furthermore we have found heavy memory leaks and inefficiencies (if you're using the EventListeners) and the effort to write a similar functionality is very low. Furthermore you can have a better integration in an existing user management.

 

Regards

 

Daniele

Reply to this message by going to Community

Start a new discussion in jBPM at Community