Resources

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();
 

Resources Functions

getResource Resources.getResource( resourceName ) Returns the Resource with name resourceName.

Resource Types

Resources is a collection. A Resource can be one of these types:

CustomResource
DatabaseResource
IntegrationResource
PrintResource
StoredProcedureResource
WebServiceResource
XmlResource
XmlResourceBase