]
Thomas Diesler resolved JBPM-410.
---------------------------------
Resolution: Out of Date
taskInstance.setPooledActors() doesn't set actorID to null
----------------------------------------------------------
Key: JBPM-410
URL:
http://jira.jboss.com/jira/browse/JBPM-410
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.0 alpha 1, jBPM 3.0, jBPM 3.0 alpha 2, jBPM 3.0 alpha 3, jBPM
3.0 alpha 4, jBPM 3.0 beta 2, jBPM 3.0 beta 3, jBPM 3.0 alpha 5, jBPM 3.0 beta 1, jBPM 3.0
beta 4, jBPM 3.0.1
Reporter: Thijs Terlouw
Assigned To: Tom Baeyens
Priority: Minor
Original Estimate: 5 minutes
Remaining Estimate: 5 minutes
TaskMgmtSession.findPooledTaskInstancesByActorId() requires the TaskInstance.actorId to
be set to <null> to be able to retrieve the pooled actors.
[TaskInstance.java]
public void setPooledActors(String[] actorIds) {
this.pooledActors = PooledActor.createPool(actorIds);
}
PROBLEM:
This does not reset the actorId to null, so this has to happen in the client code.
Client code looks like this:
String[] pooledactors;
taskInstance.setActorId(null);
taskInstance.setPooledActors(pooledactors);
SOLUTION:
[TaskInstance.java]
public void setPooledActors(String[] actorIds) {
this.actorId = null;
this.pooledActors = PooledActor.createPool(actorIds);
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: