public abstract class AbstractProcessInstanceIdentityLinkCmd extends Object
| Constructor and Description |
|---|
AbstractProcessInstanceIdentityLinkCmd() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createIdentityLinkType(CommandContext commandContext,
String processInstanceId,
String userId,
String groupId,
String identityType)
Creates a new identity link entry for the given process instance, which can either be a user or group based one, but not both the same time.
|
protected ExecutionEntity |
getProcessInstanceEntity(CommandContext commandContext,
String processInstanceId)
Returns the process instance entity for the given id, if it exists, otherwise an exception will be thrown.
|
protected void |
removeIdentityLinkType(CommandContext commandContext,
String processInstanceId,
String identityType)
This will remove ALL identity links with the given type, no mather whether they are user or group based.
|
public AbstractProcessInstanceIdentityLinkCmd()
protected ExecutionEntity getProcessInstanceEntity(CommandContext commandContext, String processInstanceId)
commandContext - the command context within which the process instance is loadedprocessInstanceId - the id of the process instance to be loadedFlowableIllegalArgumentException - if the provided process instance id is not validprotected void removeIdentityLinkType(CommandContext commandContext, String processInstanceId, String identityType)
commandContext - the command context within which to remove the identity linksprocessInstanceId - the id of the process instance to remove the identity links foridentityType - the identity link type (e.g. assignee or owner, etc) to be removedprotected void createIdentityLinkType(CommandContext commandContext, String processInstanceId, String userId, String groupId, String identityType)
commandContext - the command context within which to perform the identity link creationprocessInstanceId - the id of the process instance to create an identity link foruserId - the user id if this is a user based identity link, otherwise nullgroupId - the group id if this is a group based identity link, otherwise nullidentityType - the type of identity link (e.g. owner or assignee, etc)Copyright © 2022 Flowable. All rights reserved.