[jboss-user] [jBPM] - Re: In memory TaskClient without Mina or JMS

Daniele Ulrich do-not-reply at jboss.com
Wed Aug 3 14:44:32 EDT 2011

Daniele Ulrich [http://community.jboss.org/people/daniele.ulrich] created the discussion

"Re: In memory TaskClient without Mina or JMS"

To view the discussion, visit: http://community.jboss.org/message/619242#619242

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:

 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.



Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110803/403fb9a2/attachment-0001.html 

More information about the jboss-user mailing list