Muru, are you using the Mainframe Integration Server for this transaction?
I am making the following assumptions about your integration based on your prior posts:
- You are using FTP to move files.
- You are not having issues in getting the file from the Mainframe (or putting the file to your Integration Server, depending on your perspective).
Once the file is received and processed, you should take the following steps:
-
Parse the file into a webMethods construct (i.e. Record, String, Object, Record List).
-
Build a BRANCH step which evaluates the node containing your action-identifying variable.
-
Create a SEQUENCE step underneath the BRANCH step for each of your possible actions.
-
Label each SEQUENCE step with the action-identifying variable VALUE using the Properties tab. For example, if the action-identifying variable is “purchaseOrder”, then label the SEQUENCE step “purchaseOrder”. You will have unique labels for each of your SEQUENCE steps.
-
Beneath each SEQUENCE step, perform the action to append the String (or Record or Object) to the webMethods construct that was created in Step 1. This may be a multi-step process and may require a new webMethods construct to hold the new value.
Each of the SEQUENCE steps should receive the same input (the webMethods construct created in Step 1) and should produce outputs of the SAME VARIABLE NAME. This is important for the final step.
- After the BRANCH step, there should be a variable in the pipeline which contains the original file from the Mainframe with the newly appended content. This String (or Record, or Object) can be PUT on the Mainframe using the FTP services in the pub.client:ftp service.
Let me know if I can expound upon any of the above steps.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services