The practice I follow is for each action that needs a transaction boundary, I create separate FLOW service. In this case, I’d create 3. Each would have the form:
SEQUENCE (exit on success)
…SEQUENCE (exit on failure)
…startTransaction
…
…commitTransaction
…SEQUENCE (exit on done)
…getLastError
…
…rollback
…
Then in your “main” FLOW service, call each of these services. Wrap this in a try/catch if desired.
This approach keeps the services from being too cluttered with a bunch of sequences.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services