RoleMapping roleMapping = ha.getRole().getMapping(instance, ha.getTracingTag());
String[] taskIds = new String[roleMapping.size()];
int idx = 0;
do{
taskIds[idx++] = worklist.reserveWorkItem(roleMapping.getEndpoint(), parameters, instance.getProcessTransactionContext());
}while(roleMapping.next());
StringBuffer taskId = new StringBuffer();
if (taskIds != null) {
for (int j = 0; j < taskIds.length; j++) {