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

public void SetMemberUserRole(
	long processId,
	OrganizationItem orgItem
)

Parameters

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