PublicAPI.Processes.WorkflowInstance.SetResponsible ELMA API Documentation
Change the process responsible
 
 
Syntax

public void SetResponsible(
	WorkflowInstance instance,
	User newResponsible,
	bool sendNotification
)

Parameters

instance
Type: WorkflowInstance
Process instance. Object. Access path: PublicAPI.Processes.WorkflowInstance
newResponsible
Type: User
New responsible. Object. Access path: PublicAPI.Portal.Security.User
sendNotification
Type: System Boolean
Send a notification to the user, who has become the responsible
Examples

//load the process instance by ID 
var instance = PublicAPI.Processes.WorkflowInstance.Load(3);
//load the user by ID 
var newResponsible = PublicAPI.Portal.Security.User.Load(3);
//send notification to the user, who has become the responsible (yes or no) 
var sendNotification = true;

//change the process responsible
PublicAPI.Processes.WorkflowInstance.SetResponsible(instance, newResponsible, sendNotification);
See Also