Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class ActorsApi

OptimaJet.Workflow.Core.Runtime.ActorsApi

public class ActorsApi

Inheritance

  • System.Object

Constructors

public ActorsApi(WorkflowRuntime runtimeOwner) #

Parameters

Name
Type
Description
runtimeOwner
WorkflowRuntime

Methods

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
processInstance
ProcessInstance
Process instance
classifiers
List<TransitionClassifier>
Filter for transitions by transition classifier
token
CancellationToken
Cancellation 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
filter
TreeSearchFilter
Sets the current process and the method of searching in the Process Instances tree
classifiers
List<TransitionClassifier>
Filter for transitions by transition classifier
token
CancellationToken
Cancellation token

Returns

Type
Description
Task<CommandWithClassifier>
List of user ids