public void SetWorkflowTaskEndDate( TaskBase task, DateTime startDate, DateTime endDate )
Change task end date
Syntax
public void SetWorkflowTaskEndDate( TaskBase task, DateTime startDate, DateTime endDate )
Parameters
- task
- Type: TaskBase
Process task, whose dates to change. Object. Access path: PublicAPI.Processes.WorkflowTaskBase
- startDate
- Type: System DateTime
New start date
- endDate
- Type: System DateTime
New end date
Examples
//load the process task by ID var task = PublicAPI.Processes.WorkflowTaskBase.WorkflowTask.Load(3); //new task start date var startDate = DateTime.Now.AddDays(-3); //new task end date var endDate = DateTime.Now.AddDays(5); //change the task end date PublicAPI.Processes.WorkflowTaskBase.SetWorkflowTaskEndDate(task, startDate, endDate);
See Also