Script Include Scope

In this example on the left, two Script Includes are developed for the Travel Management application.

  • VendorUtils - methods for managing vendors and is set to be accessible from all application scopes.
  • ExpenseUtils - methods for managing and processing travel expenses, set to be accessible only to other scripts in the Travel Management scope.

On the right, a Business Rule named ReserveProjector has been developed for a Loaner Equipment application:

  • The Business Rule script instantiates the VendorUtils Script Include in the Travel Management scope to access its confirmVendor method. As this Script Includes' Accessible from value is set to All application scopes, the Business Rule is permitted to use the method.
  • Later in the Business Rule script, there is an 'if' statement to determine if the hardware loaned to employees needs to be replaced with new equipment. The Business Rule instantiates the ExpenseUtils Script Include to access its submitExpense method. As Script Includes' Accessible from value is set to This application scope only, access is denied.

results matching ""

    No results matching ""