When you use an asynchronous adapter such as the filesystem adapter or the MSMQ adapter, you will have to schedule batch tasks to process the messages that are exchanged.
To enable batch processing for asynchronous communication, perform the following steps:
AifGateWayReceiveService
in the Class name field. Also, select the appropriate company account and save the record.AifInboundProcessingService
, AifOutboundProcessingService
, and AifGatewaySendService
classes. Be sure to add them in that sequence.When developing, waiting for a batch to start is not very efficient. The following job processes the asynchronous messages just as the batches do but saves you time because it can be run manually:
static void CVRRunAsycManually(Args _args) { // read the messages new AifGateWayReceiveService().run(); // process inbound messages in queue new AifInboundProcessingService().run(); // process outbound messages in queue new AifOutboundProcessingService().run(); // send messages new AifGateWaySendService().run(); info('done'), }
18.118.139.224