Class ActorsApi
OptimaJet.Workflow.Core.Runtime.ActorsApi
Provides APIs for resolving workflow participant identities and associated commands from workflow actor rules for a specific WorkflowRuntime instance.
Namespace: OptimaJet.Workflow.Core.Runtime
public class ActorsApiConstructors
Methods
public Task<Dictionary<string, List<CommandWithClassifier>>> GetActorsWithCommandsAsync(ProcessInstance processInstance, List<TransitionClassifier> classifiers = null, CancellationToken token = default) #Gets workflow participant identities assigned to command transitions for the activity currently being executed, or the current activity when the process is idled, in the specified process and its subprocesses.
Parameters
Name
Type
Description
processInstanceProcessInstanceProcess instance that determines where the search starts.
classifiersList<TransitionClassifier>Optional transition classifiers used to filter command transitions. If null, all command transitions are included.
tokenCancellationTokenA token to monitor for cancellation requests.
Returns
Type
Description
Task<String, CommandWithClassifier>A dictionary keyed by workflow participant identity, where each value contains the command names and transition classifiers associated with that identity by actor restrictions.
Remarks
Transition conditions are not evaluated.
public Task<Dictionary<string, List<CommandWithClassifier>>> GetActorsWithCommandsAsync(TreeSearchFilter filter, List<TransitionClassifier> classifiers = null, CancellationToken token = default) #Gets workflow participant identities assigned to command transitions for processes selected by the provided search filter.
Parameters
Name
Type
Description
filterTreeSearchFilterSearch configuration that defines the start point and traversal in the process instance tree.
classifiersList<TransitionClassifier>Optional transition classifiers used to filter command transitions. If null, all command transitions are included.
tokenCancellationTokenA token to monitor for cancellation requests.
Returns
Type
Description
Task<String, CommandWithClassifier>A dictionary keyed by workflow participant identity, where each value contains the command names and transition classifiers associated with that identity by actor restrictions.
Remarks
Transition conditions are not evaluated.