[jboss-user] [JBoss Seam] - Re: Seam jBPM: use annotation or pages.xml to get next task?

gavin.king@jboss.com do-not-reply at jboss.com
Tue Mar 20 19:40:00 EDT 2007


"bsmithjj" wrote : "gavin.king at jboss.com" wrote : Of course, if you created it yourself via some other mechanism, *you* will have to associate it will the conversation using BusinessProcess.instance().setProcessId( processInstance.getId() ).
  |   | 
  |   | Seam isn't magic. Seam only knows about processes it creates or retrieves. If you get it yourself, by going to jBPM APIs directly, then it is up to you to do the job of associating it with the conversation.
  | 
  |  I realize what you're saying above about Seam - I'm attempting to use the EL as you showed earlier to have an ActionHandler invoke a Seam component instead of having to implement an ActionHandler which you claim I should never have to do ;-).   Anyway, now we're coming to why I suggested earlier the possibility of creating a Seam-jBPM interceptor that fires around the execute(...) method in an ActionHandler, DecisionHandler, etc...
  | 
  | 

Yes, well, I happen to agree with you on this one. Two reasons:

(1) It is needed for the problem of jBPM async events and timers, for me to set up my Seam contexts.
(2) I would be able to transparently associate the processinstance, and save you from doing that explicitly.

Currently, AFAIK, jBPM does not provide the hooks I need for this, but I have asked Tom for them. Not sure the status there.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030058#4030058

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030058



More information about the jboss-user mailing list