on 11-05-2013 5:14 AM
Hi Folks,
I have a scenario in PI where the business wants the message to be generated only if some conditions are satisfied else the message should not be created at all.
For example
Event
<Header>
<EVTID>
<TRKID>
<EVTDAT>
<EVTTIM>
<MESSAGE>
<SENDERID>
<PARAMETER_NAME>
<PARAMETER_VALUE>
<PARAMETER_INDEX>
Assume the above is my xml structure. I want to validate if <EVITID> has a valid value, <TRKID> is not blank and <EVTDAT> is not blank and <EVTTIM> is not blank then only generate the message else don't generate the message in PI at all.
A quick response is appreciated.
Regards,
Santosh
Hello Santosh,
Assume the above is my xml structure. I want to validate if <EVITID> has a valid value, <TRKID> is not blank and <EVTDAT> is not blank and <EVTTIM> is not blank then only generate the message else don't generate the message in PI at all.
You can use schema validation for this e.g for EVITID you can use xsd:enumeration for the valid values and for TRKID/EVTDAT/EVTTIM, you can use pattern with regex. That way, the message won't reach receiver determination if the validation fails.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
You can use Xpath condition in RD
http://wiki.scn.sap.com/wiki/display/XI/Xpath+Condition+in+Receiver+Determination
Regards,
Karthikeyan S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
U can put conditions in RD and if ur preliminary conditions are getting satisfied then determine receiver and generate ur mapping
/p1:MT_Message***/Event/Header[EVTID="1234" and count(TRKID)>0 and string-length(normalize-space(TRKID))>0 and count(EVTDAT)>0 and string-length(normalize-space(EVTDAT))>0 and count(EVTTIM)>0 and string-length(normalize-space(EVTTIM))>0]
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.