Skip to Content
0
Former Member
Nov 14, 2008 at 11:45 AM

BPM

11 Views

Hi all,

My return message structure is somewhat like this

<?xml version="1.0" encoding="UTF-8"?>

<ns1:MT_RESPxmlns:ns1="FileToRFC/CustomerMaster">

<IT_RETURN>

<Row>

<TYPE>S</TYPE>

<ID></ID>

<NUMBER>000</NUMBER>

<MESSAGE>Customer was created </MESSAGE>

<LOG_NO></LOG_NO>

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1></MESSAGE_V1>

<MESSAGE_V2></MESSAGE_V2>

<MESSAGE_V3></MESSAGE_V3>

<MESSAGE_V4></MESSAGE_V4>

<PARAMETER></PARAMETER>

<ROW>0</ROW>

<FIELD></FIELD>

<SYSTEM></SYSTEM>

</Row><Row>

<TYPE>E</TYPE>

<ID></ID>

<NUMBER>000</NUMBER>

<MESSAGE>Validity period is invalid</MESSAGE>

<LOG_NO></LOG_NO>

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1></MESSAGE_V1>

<MESSAGE_V2></MESSAGE_V2>

<MESSAGE_V3></MESSAGE_V3>

<MESSAGE_V4></MESSAGE_V4>

<PARAMETER></PARAMETER>

<ROW>0</ROW>

<FIELD></FIELD>

<SYSTEM></SYSTEM>

</Row></IT_RETURN>

</ns1:MT_RESP>

My BPM has a switch case where i am checking the condition if type = E then exception otherwise Success.

now in this case the XML is going to exception. I wanted to knw is it becos the last value of type is E or automatically loops over all the similar tags

Also, if it doesnt loop, how can i loop over the tag TYPE to find if there is atleast one E in the XML message and what changes to make in BPM??

Regards.