Hi jesse,
I think we are exactly on the same page ;-)
I'm doing the RMI through a Stateless EJB bean at the moment.  I took this 
approach versus Stateful as I may want to expose these as webservices at some 
point in the future.

As far as LazyInitializationExceptions, what you said regarding calling a 
transistion without the TaskInstance is exactly what I'm running into.  

As of this writing, I'm making a serializable DTO to capture all that nessary 
information first before sending it over RMI to avoid this exception. I'm still 
determining what I may need, but so far this is the template I'm working on:

  |     long id = tasks.get(0).getId();
  |     String name = tasks.get(0).getName();
  |     String desc = tasks.get(0).getDescription();
  |     java.util.Date duedate = tasks.get(0).getDueDate();
  |     Date startdate = tasks.get(0).getStart();
  |     int priority = tasks.get(0).getPriority();
  |     String assignedto = tasks.get(0).getActorId();
  |     String processdef = 
tasks.get(0).getToken().getProcessInstance().getProcessDefinition().getName();
  | 

The RMI api is client-centric, as in the person logging in will be the actor. A 
seperate 'manager' api will probably be used, but for now I just need something 
to work for a user to handle the human-intervention task nodes.

The methods I'm looking to expose include:
*Logged in user's awaiting tasks.

*Logged in user's pool(s) and the pool(s) awaiting tasks (pull assignment).

*Replicate the webapp's taskFormParameter and extend it for working on the 
actual task (I saw someone working on an XForms implementation of extending, 
although I haven't seen if it's open source -- my use case is for Eclipse RCP 
but will have no eclipsisms in this DTO). Use the taskId from the awaiting 
tasks list to get the 'taskFormParameter'.

*Submitting the completed taskFormParameter to signal the next step in the 
workflow.

As you can see, I'm not trying to over-complicate anything ;-)

-D



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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to