Invoking a Microagent Method
Invoke a microagent method to immediately view its result. Invoking is useful when you want to test a method before using it in a rule, or to check a return value for troubleshooting purposes.
The invoke results are displayed in the Invoke window. The results vary, depending on the arguments required for the invoked method. For information about all the microagent methods, see TIBCO Hawk Microagent Reference Guide.
For all methods that have some return values, the result of the method is displayed on the window and for all the methods without any return values, no result is displayed.
Procedure
1. | In the Hawk Console, open the Hawk Agent page for which you want to invoke the microagent method. For steps, see Viewing the Agent Details. |
2. | In the Agent page, select the Microagents tab. |
All the microagents for the Hawk agent are displayed in the tab. For details, see Microagents Tab.
3. | Select the microagent whose method you want to invoke. |
The right panel displays the microagent details and all its methods.
4. | Under the Actions column, click the Invoke icon to invoke the microagent method. |
The Invoke window is displayed with all the required parameters for the microagent method.
5. | In the Invoke window, enter the details of the fields and click Invoke. |
6. | Click Close or, to define parameters for the method, click Back. |
Example
For example, the following figure shows the sample result for invoking the Self:getMicroAgentInfo
method without any supplied argument.
Figure 28: Sample Result of Invoking getMicroAgentInfo Method