Groovy Performance and Web Services

Fusion Application web services are designed for integration with external applications. As such, using Groovy scripts to call them involves authentication and authorization reprocessing which can impact script performance. Accordingly, try to implement business logic without relying on web services, if possible.

However, if your business requirement absolutely requires it, then:

  • Ensure that the web service call is executed at the right time, ideally as late as possible in a commit life cycle. This ensures that the validations in the current transactions are passed.

    Otherwise, it might lead to data inconsistency because the web service call commits automatically. For logic involving web services, consider using After Commit, After Delete, and After Change Posted to DB triggers.

  • Avoid using web services to manipulate a business object that's directly accessible from Groovy.