ReportBurster Bursting Lifecycle — Sample Scripts

Complete reference of hook points and available scripts

Lifecycle Hook Scripts

Hook Point Description Sample Scripts
startBursting Runs once before bursting begins fetch_distribution_details_from_database.groovy
fetch_distribution_details_from_csv_file.groovy
skip_current_file_distribution_if.groovy
endExtractDocument Runs after EACH burst document is extracted add_and_format_page_numbers.groovy, exec_pdftk_background.groovy, overlay.groovy, merge_with_external_files.groovy, encrypt.groovy, zip.groovy, curl_payslip2portal.groovy, curl_invoice2portal.groovy, curl_paystub2portal.groovy
endDistributeDocument Runs after EACH document is distributed curl_ftp.groovy, curl_sftp.groovy, rclone_sync_cloud.groovy, copy_shared_folder.groovy, batch_pdf_print.groovy, print.groovy, email_html_cid_embedded_images.groovy
endBursting Runs once after all documents processed (User-created summary/notification scripts)

Document Manipulation (Post-Extraction)

Script What It Does Example Use Case
add_and_format_page_numbers.groovyAdds page numbers to PDF"Page 1 of 3" footer on payslips
exec_pdftk_background.groovyApplies background templateCompany letterhead on all invoices
overlay.groovyOverlays images/text"CONFIDENTIAL" watermark on sensitive docs
merge_with_external_files.groovyMerges with other PDFsAttach terms & conditions to contracts
encrypt.groovyPassword-protects PDFEmail payslips with SSN as password
zip.groovyCompresses to ZIPBundle all documents for one customer

File Transfer & Upload (Post-Distribution)

Script Protocol Use Case
curl_ftp.groovyFTPUpload to legacy FTP server
curl_sftp.groovySFTP/SSHSecure upload to partner servers
rclone_sync_cloud.groovyCloud (S3, GDrive, Dropbox)Archive to cloud storage
copy_shared_folder.groovyNetwork shareCopy to department folder
ant_ftp.groovyFTP (Ant-based)Legacy FTP uploads
ant_scp_sftp.groovySCP/SFTP (Ant-based)Legacy secure transfers

Portal Publishing (Post-Extraction)

Script Target Auto-Creates User?
curl_payslip2portal.groovyWordPress (payslip CPT) Yes
curl_invoice2portal.groovyWordPress (invoice CPT) Yes
curl_paystub2portal.groovyWordPress (paystub CPT) Yes

Email & Printing (Post-Distribution)

Script Purpose
email_html_cid_embedded_images.groovyEmbed images directly in HTML emails (no external attachments)
ant_mail.groovySend emails via SMTP (Ant-based)
batch_pdf_print.groovyPrint multiple documents at once
print.groovyPrint individual documents

Dynamic Data Fetching (Pre-Bursting)

Script Source Use Case
fetch_distribution_details_from_database.groovyDatabase (JDBC)Fetch email recipients from customer table
fetch_distribution_details_from_csv_file.groovyCSV fileRead distribution list from external file
skip_current_file_distribution_if.groovyCustom conditionSkip distribution for inactive customers