Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameters:

Wiki Markup
{scrollbar}
| Parameters: \\ | org.pentaho.core.solution.IActionResource

...

resource

...

Result:

...

String

Returns the contents of the specific resource as a String. It is important to call isDefinedResource() or getResourceNames() before asking for access to an output as an error will occur if you ask for an output that has not been defined in the action sequence.

Code Block
titleExample
 \\ | resource \\ |
| Result: \\ | [String|PentahoDoc:java/lang/String.html@java] | \\ |
Returns the contents of the specific resource as a [String|PentahoDoc:java/lang/String.html@java]. It is important to call [isDefinedResource()] or [getResourceNames()] before asking for access to an output as an error will occur if you ask for an output that has not been defined in the action sequence.
{code:title=Example}
if( isDefinedResource("message-template") ) {
    String template = getResourceAsString("message-template" );
}
{code}

h2.