Interface Resources

All Superinterfaces:
java.lang.Iterable<Resource>

public interface Resources
extends java.lang.Iterable<Resource>
The Resources interface acts as a parent object for all resources within the Business View associated with a form, integration service or workflow process. Individual resources are accessed using their resource name. When the name is not a valid Java identifier e.g. it begins with a numeric, the resource can only be accessed using the getResource(String) method.

When running an event that forms part of a deployed component, only resources from the component can be accessed.

All included resources can be iterated using the following code:

 for ( var resource in Iterator(resources.iterator()) )
 {
    log(resource.elementName);
 }   
 
Examples:
 resources.REQUESTS.fetch();
 resources.EMAIL1.sendmail();
 resources.getResource("12WS").call();
 
Since:
V4.4
  • Method Summary

    Modifier and Type Method Description
    Resource getResource​(java.lang.String resourceName)
    Returns the Resource with name resourceName.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • getResource

      Resource getResource​(java.lang.String resourceName)
      Returns the Resource with name resourceName.
      Since:
      V4.4