I am new in webmethods, and am working in webmethods developer.
I created a service that reads data from a text delimited flat file, then it filters the data.
I created a flat file dictionary for the record definition and then I mapped it to a flat file schema to get the document type.
I created my service and it worked well.
Inside a LOOP in the input array property I paste the path of the record I want to read from the file, and then I compare (using branch) between a value the user input and the value of a selected field in the file. All the previous steps are hard coded.
Is there a way I can let the user input the field name and the value then getting results by using only one branch instead of using multiple branches for all fields?
Eg. If the service prompt the user to input the field name “fieldName” and the value “fieldValue”.
If I loop through the record and Inside my branch I set it to Evaluate Label =true. Could I write this statement inside my label in the step flow? %fieldValue% == %docParent/recordWithNoID/%fieldName%%.
or could I do the following in the loop:
1. set a value in a pipline tmpStr = docParent/recordWithNoID/
2. set input array of a LOOP to %tmpStr%