Revision as of 19:25, July 10, 2017 by Bonniem (talk | contribs) (Run Function)
Jump to: navigation, search

Run Function

Starting with release 8.1.400.??, IRD's Selection object adds the run function to the list of threshold functions available in the General tab. The run function, as well as the other threshold functions, can eliminate the need to configure complex “looping” in strategies. They are useful for conditional routing when a strategy is required to perform many calculations instead of just comparing a few values.

Run Function

URS uses skill expressions for target selection and threshold expressions for specifying target/queue thresholds. The run function extends skill and threshold expressions with external logic by allowing you to specify a threshold script (such as a subroutine) in addition to the regular threshold expression.

String run(subroutine, param1, param2) executes the skill/threshold expression logic packed in the provided subroutine and returns a value. For example, a threshold expression such as run[SomeSubroutine, Target, ExtraData] returns 1 (meaning it is Ok to route) if SomeSubroutine applied to provided data returns 1. If the subroutine returns 0 then entire threshold expression also returns 0 (routing is not allowed).




There are following rules/limitations while working with function run.


Tip
Prior to ORS 8.1.400.61, the run function was previously undocumented. This function is in addition to the existing threshold functions.

Existing Threshold Expressions

Threshold Expressions and Skill Expressions

You can use the following functions in threshold expressions (all lowercase):

[+] sdata



[+] acfgdata



[+] callage



[+] lcfgdata



Comments or questions about this documentation? Contact us for support!