14.12.2012 Views

Optivity Telephony Manager: System Administration - BT Business

Optivity Telephony Manager: System Administration - BT Business

Optivity Telephony Manager: System Administration - BT Business

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Alarm management 617<br />

While rules may invoke functions, the infer command allows functions to call rules.<br />

Rules may be invoked in any order and repeatedly until a logical expression is satisfied<br />

or while a rule has not been triggered.<br />

Examples:<br />

or<br />

Comments<br />

Functions<br />

infer{Rule1, Rule2, Rule3} until Rule4;<br />

infer{RuleA, RuleB, RuleC} while (c>5);<br />

Comments provide a convenient way of adding informational notes within a script. To<br />

include comments within a script, use the C convention (begin with /* and end with */),<br />

or use the C++ convention (begin the comment with //).<br />

For example:<br />

/* This is a comment. */<br />

// This is another comment.<br />

Many of the scripts presented in this chapter have portions noted as comments. Remove<br />

the comment tags for the application to interpret these as actual scripting code.<br />

Functions contain a combination of logical expressions and optional variable<br />

declarations. They accept parameters and return a single result. You may invoke<br />

functions either within logical expressions or rules, or within themselves. Within a<br />

function, assignments may occur along with if and loop statements.<br />

<strong>Optivity</strong> <strong>Telephony</strong> <strong>Manager</strong> <strong>System</strong> <strong>Administration</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!