[jboss-user] [JBoss jBPM] - StartersProcess - task assigned to null, null

jstachera do-not-reply at jboss.com
Sun Oct 22 10:33:42 EDT 2006


I deployed the StartersProcess from jBPM Getting Started and after the state 'Receive Return' I got a message:

anonymous wrote : New tasks have been assigned to: null, null.

(the next step in the process is fork node).

My question is why I don't have information about next users which were assigned to the task (bert, ernie) ?

I have looked into the code and I found that next assigned user is retrieved by: taskAssignLog.getActorId()

if (assignmentLogs.size() > 1) {
  |       String msg = "New tasks have been assigned to: ";
  |       Iterator iter = assignmentLogs.iterator();
  |       while (iter.hasNext()) {
  |         TaskAssignLog taskAssignLog = (TaskAssignLog) iter.next();
  |         msg += taskAssignLog.getActorId();
  |         if (iter.hasNext())
  |           msg += ", ";
  |       }

unfortunatelly that method returns null, but if I use getTaskNewActorId() instead, it would be ok: 

so another question is what is the difference between following methods:

taskAssignLog.getActorId()
  | taskAssignLog.getTaskNewActorId()
  | taskAssignLog.getTaskOldActorId()

??

BR,
Jurek

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

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



More information about the jboss-user mailing list