The usual way for the AIF to run is using the batch processing framework, where you setup an interval for the inbound and outbound processing to run. This minute or so can feel like an age when you are in the middle of developing:
AIF batch processing
So use a custom job to have the AIF run instantly at the click of a button, here is an example of the receive job:
Code Snippet
- static void runAIFReceive(Args _args)
- {
- AifGatewayReceiveService aifGatewayReceiveService;
- AifInboundProcessingService aifInboundProcessingService;
- ;
- aifGatewayReceiveService = new AifGatewayReceiveService();
- aifGatewayReceiveService.run();
- aifInboundProcessingService = new AifInboundProcessingService();
- aifInboundProcessingService.run(true); // pass true for debug mode
- }