use of org.kie.server.api.model.cases.CaseAdHocFragment in project droolsjbpm-integration by kiegroup.
the class CaseManagementRuntimeDataServiceBase method getAdHocFragments.
public CaseAdHocFragmentList getAdHocFragments(String containerId, String caseId) {
Collection<AdHocFragment> caseAdHocFragments = caseRuntimeDataService.getAdHocFragmentsForCase(caseId);
List<CaseAdHocFragment> caseAdHoc = caseAdHocFragments.stream().map(adf -> CaseAdHocFragment.builder().name(adf.getName()).type(adf.getType()).build()).collect(toList());
CaseAdHocFragmentList adHocFragmentList = new CaseAdHocFragmentList(caseAdHoc);
return adHocFragmentList;
}
Aggregations