Cernunnos Manual


<invoke-method>

** DEPRECATED ** since 1.0.0

Use <groovy> and/or ${groovy} instead, or another supported scripting language.

Description:

Invokes the specified METHOD on the specified OBJECT or CLASS. If the specified method has a non-void return type, the returned object will be registered as a request attribute under ATTRIBUTE_NAME.

Reagents:

Name XPath Description Reagent Type Expected Type Required
OBJECT @object Optional object instance upon which the specified METHOD will be invoked. Provide either OBJECT or CLASS, but not both. PHRASE java.lang.Object No
CLASS @class Optional name (fully-qualified) of a class that contains static member METHOD. Provide either OBJECT or CLASS, but not both. PHRASE java.lang.String No
METHOD @method Name of a method that exists on CLASS. PHRASE java.lang.String Yes
PARAMETERS parameter/@value The parameters (if any) of METHOD. NODE_LIST java.util.List No
ATTRIBUTE_NAME @attribute-name Optional name under which the result of invoking METHOD will be registered as a request attribute. If omitted, the name 'Attributes.OBJECT' will be used. PHRASE java.lang.String No
SUBTASKS subtasks/* The set of tasks that are children of this task. NODE_LIST java.util.List No

Examples: