PublicAPI.Docflow.Objects.BPMN.SendToApprovementTask.AddComment ELMA API Documentation
Add a comment to the task
 
 
Syntax

public void AddComment(
	SendToApprovementTask task,
	string comment,
	IEnumerable<Attachment> attachments
)

Parameters

task
Type: SendToApprovementTask
Task. Object. Access path: PublicAPI.Docflow.Objects.BPMN.SendToApprovementTask
comment
Type: System String
Comment
attachments
Type: System.Collections.Generic IEnumerable Attachment 
Attachments. Object. Access path: PublicAPI.Portal.Objects.Common.Attachment
Examples

//load the task by ID 
var task = PublicAPI.Portal.TaskBase.Load(3);
//comment to add 
var comment = "Comment";

//Add the comment
PublicAPI.Portal.TaskBase.AddComment(task, comment);
See Also