Class BTDataCollectionSheetInstanceExportPdf
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceExportPdfEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceExportPdfEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceExportPdfEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceExportPdf
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceExportPdfEvent.class)
public class BTDataCollectionSheetInstanceExportPdf
extends BTDataCollection<DataCollectionSheetInstanceExportPdfEvent>
Business task in order to exports pdf of the
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceExportPdfEvent is launched
the BT notices the call and exports the pdf of the DataCollectionSheetInstance basing on the event's input. Errors:
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionSheetInstanceExportPdfEvent event, PoolKit poolKit) Exports the data collection sheet instance pdf.protected StringgetFileName(Long sheetId) Returns the file name.protected WebResourceloadPdfTemplate(String pdfFormUUID) Load pdf template.protected DataCollectionSheetInstanceloadSheetInstance(Long sheetId, PoolKit poolKit) Loads the sheet instance.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionSheetInstanceExportPdf
public BTDataCollectionSheetInstanceExportPdf()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetInstanceExportPdfEvent event, PoolKit poolKit) throws DAException, DAValidateException Exports the data collection sheet instance pdf.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceExportPdfEvent>- Parameters:
event- theDataCollectionSheetInstanceExportPdfEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getFileName
Returns the file name.- Parameters:
sheetId- the sheet id- Returns:
- the file name
-
loadPdfTemplate
Load pdf template.- Parameters:
pdfFormUUID- the pdf form UUID- Returns:
- the web resource
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadSheetInstance
protected DataCollectionSheetInstance loadSheetInstance(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads the sheet instance.- Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the data collection sheet instance
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-