use of org.kie.workbench.common.stunner.bpmn.definition.property.assignee.Actors in project kie-wb-common by kiegroup.
the class UserTaskPropertyReader method getActors.
public Actors getActors() {
// get the user task actors
List<ResourceRole> roles = task.getResources();
List<String> users = new ArrayList<>();
for (ResourceRole role : roles) {
if (role instanceof PotentialOwner) {
FormalExpression fe = (FormalExpression) role.getResourceAssignmentExpression().getExpression();
users.add(fe.getBody());
}
}
return new Actors(renderActors(users));
}
Aggregations