Click or drag to resize

RuntimeServiceRemoveAssociationsFromParticipant Method

Removes associations from a participant. Intended for web use only.

Namespace:  Advantys.Workflow.Web.Services.Processes.Runtime
Assembly:  Advantys.Workflow.Web.Services.Processes.Runtime (in Advantys.Workflow.Web.Services.Processes.Runtime.dll) Version: (
public void RemoveAssociationsFromParticipant(
	string participantName,
	string associationsDefinition


Type: SystemString
Name of the participant to remove associations from.
Type: SystemString
Structure containing the associations to remove.
Available since WorkflowGen version: 6.2.0

Optional Parameters.

These parameters can be used in the query string or as parameters of the Headers object in the RuntimeService class instance. See example below.

ParticipantId (int)Specifies the Id of the participant to remove associations from. Supersedes the participant name.
ProcessId (int)Specifies the Id of the process the participant is linked to. Supersedes a combination of process name and process version.
ProcessName (string)Specifies the name of the process the participant is linked.
ProcessVersion (int)Specifies the version of the process the participant is linked.
IgnoreMissingAssociations (bool)Sets whether or not to return an error when an association (user, group, directory) is missing from the target. Default = true.
Sample associations definition to remove a user from a participant:
 <Groups />
 <Directories />
 <Coordinators />
Sample code:
RuntimeServiceWebService.RuntimeService myRuntimeService = new RuntimeServiceWebService.RuntimeService();
RuntimeServiceWebService.ParticipantHeader myParticipantHeader = new RuntimeServiceWebService.ParticipantHeader();
myRuntimeService.ParticipantHeaderValue = myParticipantHeader;

myParticipantHeader.ParticipantId = participantId;
myParticipantHeader.ProcessId = processId;
myParticipantHeader.IgnoreMissingAssociations = false;

myRuntimeService.RemoveAssociationsFromParticipant(participantName, associationDefinition);

See Also