Example of setting workflow for role criticality:
Configuration properties for worflows:
import eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto; List<IdmIdentityDto> candidates = new ArrayList<IdmIdentityDto>(); candidates.add(identityService.getByUsername("user_for_approval")); return candidates;
The script must return List of IdmIdentityDto.