The getCauses() function returns a list of problems that cause an event. The function receives three arguments: class, instance, and event. The function returns the problems that cause the event based on the relationships among instances defined in the Domain Manager. The syntax is as follows:

getCauses(<classname>,<instancename>,<eventname>,[<oneHop>])

The <oneHop> parameter is optional. If it is omitted or passed as FALSE, the full list of problems that explain <eventname>, whether directly or indirectly, is returned. If it is passed as TRUE, only those problems that directly list <eventname> among the events they explain are returned.

The function returns a list of lists with the format:

{ <classname>,<instancename>,<problemname> },
{ <classname>,<instancename>,<problemname> },
...