Your flow should do the following:
getFile (as bytes)
bytesToString
stringToDocument
DocumentToRecord
You will then have something meaningful for flow logic. Assuming an XML structure of /root/operation, you should end up with a boundNode (record structure) containing a record called root containing a string called operation.
Add a Branch operation (switch variable /boundnode/root/operation) and then set up operations under the branch for add, multiple, divide, etc. The labels of these operations (set on the properties tab for each operation) should equal the value you want Branch to find. So, your final flow should look something like:
getFile
bytesToString
stringToDocument
documentToRecord
BRANCH on /boundnode/root/operation
- add: addFloats
- multiple: multiplyFloats
- subtract: subtractFloats
and so on.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods