[jbpm-dev] [Design of JBoss jBPM] - Recent changes to the TaskService API

heiko.braun@jboss.com do-not-reply at jboss.com
Mon Mar 30 09:34:34 EDT 2009


I did some changes to the TaskService interface:

* Added query methods by participation, i.e. 
  List findTasksByParticipation(String participation, UserRef user);

* Use IdentityRef (UserRef, GroupRef) where appropriate, i.e.
   void assignTask(long taskDbid, UserRef user);

* changed Participant to Participation, i.e.
   Participation.getType() = 'candidate'

It looks a little cumbersome in the beginning, but the distinction between user and group references
was necessary. I.e. assignTask(long taskDbid, UserRef user) now makes clear that task can only be assigned to users, not groups. The previous signature 'void assignTask(long taskDbid, String id)' didn't reveil that intention.

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

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



More information about the jbpm-dev mailing list