Difference between revisions of "CatTaskSpecificTimeSchedule class"

From Catglobe Wiki
Jump to: navigation, search
 
Line 2: Line 2:
 
|Name=<nowiki>CatTaskSpecificTimeSchedule</nowiki>
 
|Name=<nowiki>CatTaskSpecificTimeSchedule</nowiki>
 
|Description=<nowiki>Schedule cattask to run at a specific time</nowiki>
 
|Description=<nowiki>Schedule cattask to run at a specific time</nowiki>
|Constructors=
+
|InheritsFrom=CatTaskSchedule|Constructors=
 
{{CGscriptConstructors_Template|Parameters=
 
{{CGscriptConstructors_Template|Parameters=
 
{{CGscriptParameters_Template|Type=DateTime|Name=<nowiki>time</nowiki>|Description=<nowiki>Time to run</nowiki>}}
 
{{CGscriptParameters_Template|Type=DateTime|Name=<nowiki>time</nowiki>|Description=<nowiki>Time to run</nowiki>}}
 
|Description=<nowiki>Run at a specific time</nowiki>}}
 
|Description=<nowiki>Run at a specific time</nowiki>}}
 
|Methods=
 
|Methods=
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
+
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}
 
|Properties=
 
|Properties=
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>Time</nowiki>|HasGetter=1|Description=<nowiki>Time to run</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>Time</nowiki>|HasGetter=1|Description=<nowiki>Time to run</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
 
}}
 
}}
 +
 
=== <span style="color:#DF8621">'''Examples'''</span> ===
 
=== <span style="color:#DF8621">'''Examples'''</span> ===
 
<source lang="javascript">
 
<source lang="javascript">

Latest revision as of 07:26, 2 July 2020

CatTaskSpecificTimeSchedule


Schedule cattask to run at a specific time

Parent class

Inherits from CatTaskSchedule

Constructors

  • (DateTime time "Time to run") - Run at a specific time

Methods

  • (From object) string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • DateTime Time { get; } - Time to run
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.


Examples

//CatTaskSpecificTimeSchedule
number workflowRId = 15562503;
WorkflowScript wS = new WorkflowScript(workflowRId);
DateTime dt = new DateTime("2017/05/31 03:10");
CatTaskSpecificTimeSchedule schedule  = new CatTaskSpecificTimeSchedule(dt);
bool informMe = false;
array parameters={};
wS.Schedule(schedule, informMe, parameters);//Returns CatTask instance id: 104700 (CatTaskMetaDataId: 54183)