02-01-2013 10:29 AM
ConnectionParams.java
GroupManager.java
GroupManagerFactory.java
UserManager.java
UserManagerFactory.java
02-01-2013 12:22 PM
02-02-2013 02:58 PM
public class MyGroupEntityManager extends GroupManager {
@Inject
private MyIdentityService myIdentityService;
@Override
public List<Group> findGroupsByUser(String userId) {
MyUser user = myIdentityService.findUserByName(userId);
List<Group> result = new ArrayList<Group>();
for (MyGroup group : user.getGroups()) {
result.add(new GroupWrapper(group));
}
return result;
}
}
And then add a SessionFactory for this GroupManager in your ProcessEngineConfiguration.
02-04-2013 06:29 AM
@Override
public List<Group> findGroupsByUser(String userLogin) {
Group singleGroup = new GroupEntity();
singleGroup.setId("INCIDENT1");
singleGroup.setName("Incident Name");
List<Group> list = new ArrayList<Group>();
list.add(singleGroup);
return list;
}
taskService.createTaskQuery().
processInstanceId(processInstanceId)
.taskAssignee(userId)
.list ()
The above does not give me any tasks.taskService.createTaskQuery().
processInstanceId(processInstanceId)
.taskCandidateUser(userId)
.list ()
02-04-2013 07:55 AM
taskService
.createTaskQuery()
.taskCandidateGroupIn("INCIDENT1")
.list();
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.