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

public void SetCuratorUserRole(
	long processId,
	OrganizationItem orgItem
)

Parameters

processId
Type: System Int64
Process ID
orgItem
Type: OrganizationItem
Organizational structure item, to set the "Curator" 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.SetCuratorUserRole(process, orgItem);
See Also