/// <summary>
 /// Initializes a new instance of the <see cref="WorkflowTaskInfo" /> class.
 /// </summary>
 /// <param name="Ancestors">Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. .</param>
 /// <param name="Moid">A unique identifier of this Managed Object instance.  .</param>
 /// <param name="Owners">An array of owners which represent effective ownership of this object.   .</param>
 /// <param name="Parent">The direct ancestor of this managed object in the containment hierarchy. .</param>
 /// <param name="Tags">An array of tags, which allow to add key, value meta-data to managed objects.   .</param>
 /// <param name="Descr">The task description  .</param>
 /// <param name="EndTime">The task starts time  .</param>
 /// <param name="FailureReason">The reason for failure  .</param>
 /// <param name="Input">The input of the task  .</param>
 /// <param name="InstId">The current running task instance Id  .</param>
 /// <param name="Name">A task type  .</param>
 /// <param name="Output">The output of the task  .</param>
 /// <param name="RefName">The task reference name to ensure its unique inside a workflow  .</param>
 /// <param name="RetryCount">A counter for number of retries  .</param>
 /// <param name="StartTime">StartTime.</param>
 /// <param name="Status">The status of the task  .</param>
 /// <param name="TaskInstIdList">The list keeps a list of retried task instances   .</param>
 /// <param name="WorkflowInfo">WorkflowInfo.</param>
 public WorkflowTaskInfo(List <MoBaseMoRef> Ancestors = default(List <MoBaseMoRef>), string Moid = default(string), List <string> Owners = default(List <string>), MoBaseMoRef Parent = default(MoBaseMoRef), List <MoTag> Tags = default(List <MoTag>), string Descr = default(string), DateTime?EndTime = default(DateTime?), string FailureReason = default(string), Object Input = default(Object), string InstId = default(string), string Name = default(string), Object Output = default(Object), string RefName = default(string), long?RetryCount = default(long?), DateTime?StartTime = default(DateTime?), string Status = default(string), List <WorkflowTaskRetryInfo> TaskInstIdList = default(List <WorkflowTaskRetryInfo>), WorkflowWorkflowInfoRef WorkflowInfo = default(WorkflowWorkflowInfoRef))
 {
     this.Ancestors      = Ancestors;
     this.Moid           = Moid;
     this.Owners         = Owners;
     this.Parent         = Parent;
     this.Tags           = Tags;
     this.Descr          = Descr;
     this.EndTime        = EndTime;
     this.FailureReason  = FailureReason;
     this.Input          = Input;
     this.InstId         = InstId;
     this.Name           = Name;
     this.Output         = Output;
     this.RefName        = RefName;
     this.RetryCount     = RetryCount;
     this.StartTime      = StartTime;
     this.Status         = Status;
     this.TaskInstIdList = TaskInstIdList;
     this.WorkflowInfo   = WorkflowInfo;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WorkflowPendingDynamicWorkflowInfo" /> class.
 /// </summary>
 /// <param name="Ancestors">Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. .</param>
 /// <param name="Moid">A unique identifier of this Managed Object instance.  .</param>
 /// <param name="Owners">An array of owners which represent effective ownership of this object.   .</param>
 /// <param name="Parent">The direct ancestor of this managed object in the containment hierarchy. .</param>
 /// <param name="Tags">An array of tags, which allow to add key, value meta-data to managed objects.  .</param>
 /// <param name="VersionContext">The versioning info for this managed object   .</param>
 /// <param name="Account">An account owns the workflow instance .</param>
 /// <param name="Input">The input of the workflow  .</param>
 /// <param name="Name">A name of the workflow  .</param>
 /// <param name="PendingServices">The pending services the dynamic workflow is waiting for to return the task list  .</param>
 /// <param name="Src">The src is workflow owner service  .</param>
 /// <param name="Status">The current status of the PendingDynamicWorkflowInfo.   (default to StatusEnum.GatheringTasks).</param>
 /// <param name="WaitOnDuplicate">This parameter decides if workflows will wait for a duplicate to finish before starting a new one  .</param>
 /// <param name="WorkflowActionTaskLists">The task lists returned by services for building dynamic workflows.  There will be an entry for every different workflow action.  .</param>
 /// <param name="WorkflowCtx">The workflow&#39;s workflow context which contains initiator and target information  .</param>
 /// <param name="WorkflowInfo">WorkflowInfo.</param>
 /// <param name="WorkflowKey">This key contains workflow, initiator and target name. Fusion uses the key to do workflow dedup  .</param>
 /// <param name="WorkflowMeta">The metadata of the workflow   .</param>
 public WorkflowPendingDynamicWorkflowInfo(List <MoBaseMoRef> Ancestors = default(List <MoBaseMoRef>), string Moid = default(string), List <string> Owners = default(List <string>), MoBaseMoRef Parent = default(MoBaseMoRef), List <MoTag> Tags = default(List <MoTag>), MoVersionContext VersionContext = default(MoVersionContext), IamAccountRef Account = default(IamAccountRef), Object Input = default(Object), string Name = default(string), List <string> PendingServices = default(List <string>), string Src = default(string), StatusEnum?Status = StatusEnum.GatheringTasks, bool?WaitOnDuplicate = default(bool?), List <WorkflowDynamicWorkflowActionTaskList> WorkflowActionTaskLists = default(List <WorkflowDynamicWorkflowActionTaskList>), Object WorkflowCtx = default(Object), WorkflowWorkflowInfoRef WorkflowInfo = default(WorkflowWorkflowInfoRef), string WorkflowKey = default(string), Object WorkflowMeta = default(Object))
 {
     this.Ancestors       = Ancestors;
     this.Moid            = Moid;
     this.Owners          = Owners;
     this.Parent          = Parent;
     this.Tags            = Tags;
     this.VersionContext  = VersionContext;
     this.Account         = Account;
     this.Input           = Input;
     this.Name            = Name;
     this.PendingServices = PendingServices;
     this.Src             = Src;
     // use default value if no "Status" provided
     if (Status == null)
     {
         this.Status = StatusEnum.GatheringTasks;
     }
     else
     {
         this.Status = Status;
     }
     this.WaitOnDuplicate         = WaitOnDuplicate;
     this.WorkflowActionTaskLists = WorkflowActionTaskLists;
     this.WorkflowCtx             = WorkflowCtx;
     this.WorkflowInfo            = WorkflowInfo;
     this.WorkflowKey             = WorkflowKey;
     this.WorkflowMeta            = WorkflowMeta;
 }