assign.setUserDescription(selectedUser.getDescription());
}
}
}
if (!found && selectedUser != null) {
ProcessInstanceUserAssignment assign = new ProcessInstanceUserAssignment();
assign.setUserLogin(selectedUser.getLogin());
assign.setUserDescription(selectedUser.getDescription());
assign.setBpmLogin(selectedUser.getBpmLogin());
assign.setRole(roleInProcess);
assign.setKey(roleInProcess);
pi.addAttribute(assign);
}
}