CatTaskSpecificTimeSchedule class

From Catglobe Wiki
Jump to: navigation, search

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)