PublicAPI.Processes.WorkflowTaskBase.SetFactWorkLog ELMA API Documentation
Add fact time report
 
 
Syntax

public void SetFactWorkLog(
	TaskBase task,
	long minutes,
	DateTime startDate,
	string comment
)

Parameters

task
Type: TaskBase
Task, by which time report is added. Object. Access path: PublicAPI.Processes.WorkflowTaskBase
minutes
Type: System Int64
Time spent, in minutes
startDate
Type: System DateTime
Start date
comment
Type: System String
Comment
Examples

//load the process task by ID 
var task = PublicAPI.Processes.WorkflowTaskBase.WorkflowTask.Load(3);
//start date 
var startDate = DateTime.Now;
//time spent, in minutes 
long minutes = 120;
//comment to add 
var comment = "comment";

//add the time report
PublicAPI.Processes.WorkflowTaskBase.SetFactWorkLog(task, minutes, startDate, comment);
See Also