Class ActorsApi
OptimaJet.Workflow.Core.Runtime.ActorsApi
Namespace: OptimaJet.Workflow.Core.Runtime
public class ActorsApiInheritance
- System.Object
Constructors
public ActorsApi(WorkflowRuntime runtimeOwner) #Parameters
Name
Type
Description
runtimeOwnerWorkflowRuntimeMethods
public Task<Dictionary<string, List<CommandWithClassifier>>> GetActorsWithCommandsAsync(ProcessInstance processInstance, List<TransitionClassifier> classifiers = null, CancellationToken token = default) #Get the information about actors which can execute any command bound with a transitions selected by filter (by transition classifier) for executed activity (inside of a transitional process) or for current activity (when a process is idled). Using of this method is preferable for notification of users which can execute next commands.
Parameters
Name
Type
Description
processInstanceProcessInstanceProcess instance
classifiersList<TransitionClassifier>Filter for transitions by transition classifier
tokenCancellationTokenCancellation token
Returns
Type
Description
Task<CommandWithClassifier>List of user ids
public Task<Dictionary<string, List<CommandWithClassifier>>> GetActorsWithCommandsAsync(TreeSearchFilter filter, List<TransitionClassifier> classifiers = null, CancellationToken token = default) #Get the information about actors which can execute any command bound with a transitions selected by filter. This method is preferable to use when you are using subprocesses.
Parameters
Name
Type
Description
filterTreeSearchFilterSets the current process and the method of searching in the Process Instances tree
classifiersList<TransitionClassifier>Filter for transitions by transition classifier
tokenCancellationTokenCancellation token
Returns
Type
Description
Task<CommandWithClassifier>List of user ids