<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>context_v2_scheduledFile Script API</title><link>https://community.telligent.com/community/12/w/api-documentation/68671/context_5F00_v2_5F00_scheduledfile-script-api</link><description>Developing on Verint Community? Use the API documentation as a reference for all supported interactions with Verint Community.</description><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>context_v2_scheduledFile Script API</title><link>https://community.telligent.com/community/12/w/api-documentation/68671/context_5F00_v2_5F00_scheduledfile-script-api</link><pubDate>Fri, 23 Apr 2021 19:56:28 GMT</pubDate><guid isPermaLink="false">28296d98-a124-435c-bce6-dd71b129183d</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/12/w/api-documentation/68671/context_5F00_v2_5F00_scheduledfile-script-api#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 04/23/2021 19:56:28&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;div class="documentation"&gt;&lt;p&gt;&lt;div class="message error"&gt;This extension is only available when executing files scheduled with core_v2_widget.ScheduleFile() when the ProgressKey parameter is set. It is not generally available for use by widgets, automations, embeddables, or themes.&lt;/div&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="#Properties"&gt;Properties&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#End"&gt;End&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#Report"&gt;Report&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a name="Properties"&gt;&lt;/a&gt;&lt;div class="documentation-members properties"&gt;&lt;h2&gt;&lt;a id="Properties" name="Properties"&gt;&lt;/a&gt;Properties&lt;/h2&gt;&lt;table cellspacing="0" cellpadding="2" width="99%" class="WikiTable"&gt;&lt;thead&gt;&lt;tr class="WikiTableBgBlue"&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Access&lt;/th&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;IsCancellationRequested&lt;/td&gt;&lt;td rowspan="1"&gt;Read&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Boolean&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Returns whether a cancellation of the scheduled file execution has been requested. Cancellation can be requested by the job server, by disconnection of the initiating user if the file was scheduled with a &amp;#39;Durable&amp;#39; option of &amp;#39;false&amp;#39;, or by re-scheduling with the same &amp;#39;ProgressKey&amp;#39; option.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="documentation-members methods"&gt;&lt;h2&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h2&gt;&lt;a name="End"&gt;&lt;/a&gt;&lt;h3&gt;&lt;a id="End" name="End"&gt;&lt;/a&gt;End&lt;/h3&gt;&lt;p&gt;Halts execution of a scheduled file, logs an exception, and sends a &amp;#39;scheduledFile.error&amp;#39; client message to the initiating user&lt;/p&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;$context_v2_scheduledFile.End($errorMessage)&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;context_v2_scheduledFile.End(errorMessage);&lt;/pre&gt;&lt;h4&gt;&lt;a id="Parameters" name="Parameters"&gt;&lt;/a&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/h4&gt;&lt;table cellspacing="0" cellpadding="2" width="99%" class="WikiTable"&gt;&lt;thead&gt;&lt;tr class="WikiTableBgBlue"&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Required&lt;/th&gt;&lt;th&gt;Default&lt;/th&gt;&lt;th&gt;Options&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;errorMessage&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Message to log as an exception&lt;/td&gt;&lt;td rowspan="1"&gt;Required&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;span&gt;Nothing&lt;/span&gt;&lt;a name="Report"&gt;&lt;/a&gt;&lt;h3&gt;&lt;a id="Report" name="Report"&gt;&lt;/a&gt;Report&lt;/h3&gt;&lt;p&gt;Sends a scheduled file execution progress report as a &amp;#39;scheduledFile.progress&amp;#39; client message to the initiating user to render within a progress indicator.&lt;/p&gt;&lt;h4&gt;&lt;a id="Velocity" name="Velocity"&gt;&lt;/a&gt;&lt;em&gt;Velocity&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: velocity"&gt;$context_v2_scheduledFile.Report(&amp;quot;%{ Message = $messageArg, PercentComplete = $percentCompleteArg }&amp;quot;)&lt;/pre&gt;&lt;h4&gt;&lt;a id="JavaScript" name="JavaScript"&gt;&lt;/a&gt;&lt;em&gt;JavaScript&lt;/em&gt;&lt;/h4&gt;&lt;pre class="brush: javascript"&gt;context_v2_scheduledFile.Report({ Message: messageArg, PercentComplete: percentCompleteArg });&lt;/pre&gt;&lt;h4&gt;&lt;a id="Parameters" name="Parameters"&gt;&lt;/a&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/h4&gt;&lt;table cellspacing="0" cellpadding="2" width="99%" class="WikiTable"&gt;&lt;thead&gt;&lt;tr class="WikiTableBgBlue"&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Required&lt;/th&gt;&lt;th&gt;Default&lt;/th&gt;&lt;th&gt;Options&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="1"&gt;options&lt;/td&gt;&lt;td rowspan="1"&gt;Options&lt;/td&gt;&lt;td rowspan="1"&gt;Set of optional parameters including:&lt;/td&gt;&lt;td rowspan="1"&gt;Required&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1" style="padding-left:20px;"&gt;Message&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Optional status message&lt;/td&gt;&lt;td rowspan="1"&gt;Optional&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td rowspan="1" style="padding-left:20px;"&gt;PercentComplete&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;code&gt;Single&lt;/code&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;Completion percentage, between 0 and 1&lt;/td&gt;&lt;td rowspan="1"&gt;Optional&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;td rowspan="1"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4&gt;&lt;a id="Returns" name="Returns"&gt;&lt;/a&gt;&lt;em&gt;Returns&lt;/em&gt;&lt;/h4&gt;&lt;span&gt;Nothing&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>