public interface Resources extends java.lang.Iterable<Resource>
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();
Modifier and Type | Method and Description |
---|---|
Resource |
getResource(java.lang.String resourceName)
Returns the
Resource with name resourceName . |