As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
ConnectionParams.java GroupManager.java GroupManagerFactory.java UserManager.java UserManagerFactory.java
<br>public class MyGroupEntityManager extends GroupManager {<br><br> @Inject<br> private MyIdentityService myIdentityService;<br> <br> @Override<br> public List<Group> findGroupsByUser(String userId) {<br> MyUser user = myIdentityService.findUserByName(userId);<br> List<Group> result = new ArrayList<Group>();<br> for (MyGroup group : user.getGroups()) {<br> result.add(new GroupWrapper(group));<br> }<br> return result;<br> }<br>}<br>
@Override<br> public List<Group> findGroupsByUser(String userLogin) {<br> <br> Group singleGroup = new GroupEntity();<br> singleGroup.setId("INCIDENT1");<br> singleGroup.setName("Incident Name");<br> <br> List<Group> list = new ArrayList<Group>();<br> list.add(singleGroup);<br> return list;<br> }
taskService.createTaskQuery().<br> processInstanceId(processInstanceId)<br> .taskAssignee(userId)<br> .list ()
taskService.createTaskQuery().<br> processInstanceId(processInstanceId)<br> .taskCandidateUser(userId)<br> .list ()
taskService<br> .createTaskQuery()<br> .taskCandidateGroupIn("INCIDENT1")<br> .list();