ExecuteStitcherOnTimer

The ExecuteStitcherOnTimer(); function runs the specified stitcher after a delay.

Syntax

When a stitcher calls the another stitcher using the ExecuteStitcherOnTimer(); function, the first stitcher continues to run. The ncp_disco process starts the second stitcher after the specified delay. The second stitcher only uses the arguments that you explicitly pass to it in the function.

The ExecuteStitcherOnTimer(); function uses the same syntax as the ExecuteStitcher(); function.

The following syntax shows how to use the ExecuteStitcherOnTimer() function.

ExecuteStitcherOnTimer( 'stitcher name', [optional variable list], AtTime ( ( m_IntervalSeconds ) values ( seconds ); ); );

Arguments

The following table lists the properties of the arguments of this stitcher rule.
Table 1. Arguments of ExecuteStitcherOnTimer()
Argument Description Accepts constants Accepts variables Accepts eval clauses
stitcher name The name of the stitcher to call. Yes No No
optional variable list An optional comma-separated list of variables to be passed to the stitcher. Yes Yes Yes
AtTime Specifies the number of seconds to wait before calling the stitcher. Yes Yes Yes

Example: Calling a stitcher with a delay

The following example executes the TestStitcher.stch stitcher after 12 seconds. The example also passes a single argument to the stitcher, domain, which has been defined as NCOMS.

text domain = "NCOMS";

ExecuteStitcherOnTimer( "TestStitcher", domain ) 
AtTime 
( 
( m_IntervalSeconds ) values ( 12 ) ;
) ;