use of com.evolveum.midpoint.web.page.admin.workflow.dto.ApprovalProcessExecutionInformationDto in project midpoint by Evolveum.
the class SwitchableApprovalProcessPreviewsPanel method createApprovalProcessExecutionInformationDto.
@Nullable
private ApprovalProcessExecutionInformationDto createApprovalProcessExecutionInformationDto(PageBase parentPage, boolean wholeProcess) {
Task opTask = parentPage.createSimpleTask(SwitchableApprovalProcessPreviewsPanel.class.getName() + ".createApprovalProcessExecutionInformationDto");
OperationResult result = opTask.getResult();
ApprovalSchemaExecutionInformationType info = approvalExecutionInfoModel.getObject();
ApprovalProcessExecutionInformationDto rv = null;
try {
if (info != null) {
rv = ApprovalProcessExecutionInformationDto.createFrom(info, parentPage.getModelObjectResolver(), wholeProcess, opTask, result);
}
result.computeStatus();
} catch (Throwable t) {
LoggingUtils.logUnexpectedException(LOGGER, "Couldn't create approval process execution information for {}", t, getModelObject());
opTask.getResult().recordFatalError(createStringResource("SwitchableApprovalProcessPreviewsPanel.message.createApprovalProcess.fatalError", t.getMessage()).getString(), t);
}
return rv;
}
Aggregations