cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting fields in a file

Former Member
0 Kudos

hii,

I am sending the message with the below structure. The below structure acts as an Envelope.

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

<ns0:Z_MESSAGE xmlns:ns0="http://nlg.net/CopyFile">
   <ID/>
   <CORRELATIONID/>
   <TRANSACTIONID/>
   <SERVICE/>
   <AGENT/>
   <ROUTES/>
   <TASKNAME/>
   <DEPRECATIONDATE/>
   <COMMENTS/>
   <HEADER/>
   <TITLE/>
   <XMSDESTINATION/>
   <XMSDELIVERYMODE/>
   <XMSPRIORITY/>
   <XMSEXPIRATION/>
   <XMSREPLYTO/>
   <XMSTYPE/>
   <XMSREDELIVERED/>
   <XMSPROPERTIES/>
   <XMSUSERID/>
   <XMSAPPID/>
   <XMSDELIVERYCOUNT/>
   <XMSGROUPID/>
   <XMSGROUPSEQ/>
   <XMSPRODUCERTXID/>
   <XMSCONSUMERTXID/>
   <XMSRECEIVETIMESTAMP/>
   <XMSSTATE/>
   <BODY>Success/Failure</BODY>
   <Message>
      <Method>Copyfile</Method>
      <Source>Source_file.xml</Source>
      <Target>Target_file.xml</Target>
   </Message>
</ns0:Z_MESSAGE>

I want to Extract Source_file and Target_file. And Copyfile is another Scenario which copies the source file (which has different structure) from one location to another location.

How do I acheive this. I want to Extract Source_file and Target_file.

In the Result structure, I should get the status in the Body field as Success or Failure.

Regards,

Varun

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Ur requirement is not very clear. But I ll answer as far as I understood.

I want to Extract Source_file and Target_file. And Copyfile

U may use varaible substitution to extract the payload field value in communication channel.

And Copyfile is another Scenario which copies the source file (which has different structure) from one location to another location.

For this new scenario, u may require another receive step. Now using BPM, u may check for the value in switch and if it is successful, use receive step. Ur required structure could be achieved using transform step merging or splitting files as per requirement.

Regards,

Prateek