use of org.jbpm.casemgmt.api.model.CaseRole in project jbpm by kiegroup.
the class CommentNotificationEventListenerTest method buildCaseFile.
protected CaseFileInstance buildCaseFile(List<String> mentionedRoles) {
CaseFileInstanceImpl caseFile = new CaseFileInstanceImpl("CASE-00001", "dummy", new HashMap<>());
List<CaseRole> roles = mentionedRoles.stream().map(roleName -> new CaseRoleImpl(roleName)).collect(Collectors.toList());
caseFile.setupRoles(roles);
caseFile.assignUser("owner", "john");
caseFile.assignUser("manager", "mary");
return caseFile;
}
Aggregations