use of eu.bcvsolutions.idm.core.workflow.model.dto.WorkflowTaskDefinitionDto in project CzechIdMng by bcvsolutions.
the class DefaultWorkflowTaskDefinitionService method searchTaskDefinitions.
@Override
public List<WorkflowTaskDefinitionDto> searchTaskDefinitions(String processDefinitionId) {
List<WorkflowTaskDefinitionDto> taskDefinitions = new ArrayList<>();
BpmnModel model = repositoryService.getBpmnModel(processDefinitionId);
for (FlowElement element : model.getMainProcess().getFlowElements()) {
if (element instanceof UserTask) {
taskDefinitions.add(toResorce((UserTask) element));
}
}
return taskDefinitions;
}
use of eu.bcvsolutions.idm.core.workflow.model.dto.WorkflowTaskDefinitionDto in project CzechIdMng by bcvsolutions.
the class DefaultWorkflowTaskDefinitionService method toResorce.
private WorkflowTaskDefinitionDto toResorce(UserTask task) {
WorkflowTaskDefinitionDto taskDefinitionDto = new WorkflowTaskDefinitionDto();
taskDefinitionDto.setId(task.getId());
taskDefinitionDto.setName(task.getName());
taskDefinitionDto.setAssignee(task.getAssignee());
taskDefinitionDto.setCandicateGroups(task.getCandidateGroups());
taskDefinitionDto.setCandicateUsers(task.getCandidateUsers());
return taskDefinitionDto;
}
Aggregations