Class PuppeteerRenderReceiptService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.AbstractRenderReceiptService
com.avoka.fc.core.service.LocalProcessRenderReceiptService
com.avoka.fc.core.service.puppeteer.PuppeteerRenderReceiptService
- All Implemented Interfaces:
IRenderReceiptService
,IServiceDefinitionAware
Use Chromium Puppeteer to render a receipt.
- Since:
- 19.05.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
LocalProcessRenderReceiptService.ProcessParams
-
Field Summary
Fields inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
fallbackTimeout, receiptPropertiesJson, subfolder
Fields inherited from class com.avoka.fc.core.service.AbstractRenderReceiptService
CONTENT_TYPE_PDF
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Semaphore
Return the name of the Puppeteer executable file (excluding the .exe file extension on Windows)protected String
Return the system default JSON string containing the receipt properties.protected boolean
populateProcessParams
(LocalProcessRenderReceiptService.ProcessParams params, String workDir) void
setCleanupReceiptFiles
(Boolean value) Set the JSON string containing the receipt properties.void
setPuppeteerExe
(String puppeteerExe) Set the name of the Puppeteer executable file (excluding the .exe file extension on Windows)Methods inherited from class com.avoka.fc.core.service.LocalProcessRenderReceiptService
appendContextDebugInfo, getFallbackTimeout, getReceiptDocument, getReceiptPropertiesJson, rasterize, requiresLiveCycle, setFallbackTimeout, setReceiptPropertiesJson
Methods inherited from class com.avoka.fc.core.service.AbstractRenderReceiptService
getMaxProcesses, getServiceDefinition, renderReceipt, renderReceipt, setMaxProcesses, setServiceDefinition, setTestMode, updateReceiptMode, updateReceiptMode
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Constructor Details
-
PuppeteerRenderReceiptService
public PuppeteerRenderReceiptService()
-
-
Method Details
-
isCleanupReceiptFiles
Return the system default JSON string containing the receipt properties. This can be overridden on the organization and form version level.- Returns:
- the JSON properties
-
setCleanupReceiptFiles
Set the JSON string containing the receipt properties.- Parameters:
value
- the JSON properties
-
getPuppeteerExe
Return the name of the Puppeteer executable file (excluding the .exe file extension on Windows)- Returns:
- the name of the Puppeteer executable file
-
setPuppeteerExe
Set the name of the Puppeteer executable file (excluding the .exe file extension on Windows)- Parameters:
puppeteerExe
- the name of the Puppeteer executable file
-
isDeleteFiles
protected boolean isDeleteFiles()- Specified by:
isDeleteFiles
in classLocalProcessRenderReceiptService
-
getMaxProcessesSemphore
- Specified by:
getMaxProcessesSemphore
in classLocalProcessRenderReceiptService
-
getReceiptSubdirectory
- Specified by:
getReceiptSubdirectory
in classLocalProcessRenderReceiptService
-
populateProcessParams
protected LocalProcessRenderReceiptService.ProcessParams populateProcessParams(LocalProcessRenderReceiptService.ProcessParams params, String workDir) - Specified by:
populateProcessParams
in classLocalProcessRenderReceiptService
-