cancel
Showing results for 
Search instead for 
Did you mean: 

Message / TransportableMessage Access through NWDI

rosh
Participant
0 Kudos

Hello Community,

In my ongoing struggle to apply NWDI to PI developments I'm stuck with a PI 7.1 Adapter module:

To process the PI Message I'd like to use getPrincipalData on the ModuleData-Object:

	/* (non-Javadoc)
	 * @see com.sap.aii.af.lib.mp.module.Module#process(
com.sap.aii.af.lib.mp.module.ModuleContext, com.sap.aii.af.lib.mp.module.ModuleData)
	 */
	public ModuleData process(ModuleContext arg0, ModuleData arg1) 
throws ModuleException {
		Object principalData = arg1.getPrincipalData();
	}

What I know is that the principalData uses to be of type

com.sap.engine.interfaces.messaging.spi.TransportableMessage

and

com.sap.engine.interfaces.messaging.api.Message

To cast to one of those I think I need a dependency to sap.com/MESSAGING/com.sap.aii.af.ms.ifc.facade. The problem is that that component (I've imported 7.10 SP6) only grants access permission to sap.com/LMPLUGINS, so that's of no use to me.

Can somebody give a hint how to proceed?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

rosh
Participant
0 Kudos

Hello,

the solution is to refer to SAP_XIAF instead of MESSAGING. I've elaborated the details [here|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13870] [original link is broken] [original link is broken] [original link is broken];.