use of org.opendatakit.briefcase.model.FormStatus.TransferType.EXPORT in project briefcase by opendatakit.
the class ExportPanel method export.
private void export() {
form.disableUI();
terminationFuture.reset();
forms.getSelectedForms().parallelStream().peek(FormStatus::clearStatusHistory).forEach(form -> {
String formId = form.getFormDefinition().getFormId();
ExportConfiguration configuration = forms.getConfiguration(formId);
if (configuration.resolvePullBefore())
forms.getTransferSettings(formId).ifPresent(sci -> NewTransferAction.transferServerToBriefcase(sci, terminationFuture, Collections.singletonList(form)));
ExportAction.export((BriefcaseFormDefinition) form.getFormDefinition(), configuration, terminationFuture);
});
form.enableUI();
}
Aggregations