3.3 MIM Related Functions
The MIM functions allows the agent to read MIM values from other agents. Java agent publishes MIM's differently than the Analysis agent as it relies on two other function blocks . For more information on how to publish MIMs for Java agent, please refer to 2.3 configure and 2.5 getMIM.
mimGet
Returns the value of a MIM resource available in the workflow.
public Object mimGet( string qualifiedName );
Parameter | Description |
---|---|
qualifiedName | Name of the MIM resource whose value is to be returned |
Returns | MIM value as any type. The result always needs to be type casted or else compilation fails |
Example - Using mimGet
mimGet("Workflow", "Batch Count"); // Retrieving a MIM resource owned by the workflow. mimGet("Analysis_1", "Inbound Bytes"); // Retrieving a user defined MIM resource owned by the agent "Analysis_1".
Next: