Difference between revisions of "CatTaskInstantSchedule class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=<nowiki>CatTaskInstantSchedule</nowiki> |Description=<nowiki>Schedule cattask to run now</nowiki> |Constructors= {{CGscriptConstructors_Template...")
(Tag: visualeditor-switched)
 
Line 10: Line 10:
 
{{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|Description=<nowiki>Get information about this class.</nowiki>}}
 
}}
 
}}
 +
=== <span style="color:#DF8621">'''Examples'''</span> ===
 +
<source lang="javascript">
 +
//CatTaskInstantSchedule
 +
number workflowRId = 15562503;
 +
WorkflowScript wS = new WorkflowScript(workflowRId);
 +
CatTaskInstantSchedule schedule  = new CatTaskInstantSchedule();
 +
bool informMe = false;
 +
array parameters={};
 +
wS.Schedule(schedule, informMe, parameters);//Returns CatTask instance id: 104699 (CatTaskMetaDataId: 54182)
 +
</source>

Revision as of 04:32, 31 May 2017

CatTaskInstantSchedule



Schedule cattask to run now

Constructors

  • () - Run now

Methods

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

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.

Examples

//CatTaskInstantSchedule
number workflowRId = 15562503;
WorkflowScript wS = new WorkflowScript(workflowRId);
CatTaskInstantSchedule schedule  = new CatTaskInstantSchedule();
bool informMe = false;
array parameters={};
wS.Schedule(schedule, informMe, parameters);//Returns CatTask instance id: 104699 (CatTaskMetaDataId: 54182)