I am not able to access the message properties in the
rule "CREDENTIAL_MGMT_TD_ROUTING_RULE"
when
m : Message()
props : Properties() from m.getProperties()
eval(props.getProperty("Bank").equals("TD"))
xpathMatch expr ".//*[contains(local-name(), 'CredentialSimpleRq')]//*[contains(local-name(), 'CredentialRq')]/cm:IssuerReferenceId/p:ReferenceId[text()='TD_1.0']" use namespaces "soapenv=http://schemas.xmlsoap.org/soap/envelope/,cm=http://schemas.pandora.com/b2b/payment/credential/management/v1,mex=http://schemas.td.com/dxm/mex/v1,p=http://schemas.pandora.com/b2b/payment/mobile/v1"
then
Log : "Routing to TD_BANK.";
System.out.println(props.getProperty("Bank"));
Destination : "destinationTD";
end
whatever changes i make to code, i always get the following exception. Its driving me nuts. Please help.
org.jboss.soa.esb.services.routing.MessageRouterException: Generation raised the following errors: [2] Unable to expand: m : Message ()
[3] Unable to expand: props : Properties() from m.getProperties()
[5] Unable to expand: eval(props.getProperty("Bank").equals("TD"))
[3] Unable to expand: System.out.println(props.getProperty("Bank"))
Do you have imports for those classes? (see quickstarts, for example messagefilter)
I'd suggest starting with one of the quickstarts, getting something simple to work there, and then bringing it over to your project.