Skip to content

Commit

Permalink
MOSIP-7820 : Enable/disable proxy postal service implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Monobikash Das authored and Monobikash Das committed Jun 18, 2020
1 parent 75ee84a commit 1331d44
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public class PrintStage extends MosipVerticleAPIManager {
@Value("${vertx.cluster.configuration}")
private String clusterManagerUrl;

/** Enable proxy postal service response. */
@Value("${registration.processor.enable.proxy.postalservice}")
private boolean isProxyAbisEnabled;

/** The core audit request builder. */
@Autowired
private AuditLogRequestBuilder auditLogRequestBuilder;
Expand Down Expand Up @@ -315,7 +319,9 @@ public MessageDTO process(MessageDTO object) {
regProcLogger.info(LoggerFileConstant.SESSIONID.toString(), LoggerFileConstant.REGISTRATIONID.toString(),
regId, description.getMessage());
registrationStatusDto.setUpdatedBy(USER);
printPostService.generatePrintandPostal(regId, queue, mosipQueueManager);

if (isProxyAbisEnabled)
printPostService.generatePrintandPostal(regId, queue, mosipQueueManager);

} catch (PDFGeneratorException e) {
regProcLogger.error(LoggerFileConstant.SESSIONID.toString(), LoggerFileConstant.REGISTRATIONID.toString(),
Expand Down

0 comments on commit 1331d44

Please sign in to comment.