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

public void SetResponsible(
	WorkflowInstance instance,
	User newResponsible
)

Parameters

instance
Type: WorkflowInstance
Process instance. Object. Access path: PublicAPI.Processes.WorkflowInstance
newResponsible
Type: User
New responsible. Object. Access path: PublicAPI.Portal.Security.User
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);

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