PublicAPI.Processes.WorkflowProcess.SetInformUserRole ELMA API Documentation
Set the "Informed" role to the organizational structure item
 
 
Syntax

public void SetInformUserRole(
	long processId,
	OrganizationItem orgItem
)

Parameters

processId
Type: System Int64
Process ID
orgItem
Type: OrganizationItem
Organizational structure item, to set the "Informed" role to. Object. Access path: PublicAPI.Portal.Security.OrganizationItem
Remarks

How to find object IDs
Examples

//load the process by ID 
var process = PublicAPI.Processes.WorkflowProcess.Load(3);
//load the organizational structure item by ID 
var orgItem = PublicAPI.Portal.Security.OrganizationItem.Load(3);

//set the role
PublicAPI.Processes.WorkflowProcess.SetInformUserRole(process, orgItem);
See Also