Handling Inbound Asynchronous Request/Response Transactions

Implement the OnNotify method in the PS_PT application package, located in the Integration subpackage, to handle inbound asynchronous request/response transactions.

import PS_PT:Integration:INotificationHandler;
class FLIGHTDATA_RETURN implements PS_PT:Integration:INotificationHandler
   method FLIGHTDATA_RETURN();
   method OnNotify(&MSG As Message);
end-class;
/* constructor */
method FLIGHTDATA_RETURN
end-method;
method OnNotify
   /+ &_MSG as Message +/
   /+ Extends/implements PS_PT:Integration:INotificationHandler.OnNotify +/
   /* Variable Declaration */
   Local string &str, &value;
   Local Rowset &rs;
   Local integer #
   Local Message &MSG, &MSG_resp;
   Local Record &FLIGHTDATA, &REC;
   &rs = &MSG.GetPartRowset(1);
  /* process request rowset */
   &MSG_resp = CreateMessage(Operation.FLIGHTPLAN_ARR, %IntBroker_Response);
   &rs = &MSG_resp.GetPartRowset(1);
   /* populate response rowset */
   &MSG_resp.IBInfo.WSA_MessageID = &MSG.IBInfo.WSA_MessageID;
   &MSG_resp.IBInfo.WSA_ReplyTo = &MSG.IBInfo.WSA_ReplyTo;
   &MSG_resp.IBInfo.WS_RequestAliasName = &MSG.IBInfo.WS_RequestAliasName;
   %IntBroker.Publish(&MSG_resp);
end-method;