Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class ActorsApi

Inheritance

↳ object

    ↳ ActorsApi

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Runtime

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public class ActorsApi

Constructors

ActorsApi(WorkflowRuntime)

Declaration
public ActorsApi(WorkflowRuntime runtimeOwner)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeOwner

Methods

GetActorsWithCommandsAsync(ProcessInstance, List<TransitionClassifier>, CancellationToken)

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.

Declaration
public Task<Dictionary<string, List<CommandWithClassifier>>> GetActorsWithCommandsAsync(ProcessInstance processInstance, List<TransitionClassifier> classifiers = null, CancellationToken token = default)
Parameters
TypeNameDescription
ProcessInstanceprocessInstanceProcess instance
List<TransitionClassifier>classifiersFilter for transitions by transition classifier
CancellationTokentokenCancellation token
Returns
TypeDescription
Task<Dictionary<string, List<CommandWithClassifier>>>List of user ids

GetActorsWithCommandsAsync(TreeSearchFilter, List<TransitionClassifier>, CancellationToken)

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.

Declaration
public Task<Dictionary<string, List<CommandWithClassifier>>> GetActorsWithCommandsAsync(TreeSearchFilter filter, List<TransitionClassifier> classifiers = null, CancellationToken token = default)
Parameters
TypeNameDescription
TreeSearchFilterfilterSets the current process and the method of searching in the Process Instances tree
List<TransitionClassifier>classifiersFilter for transitions by transition classifier
CancellationTokentokenCancellation token
Returns
TypeDescription
Task<Dictionary<string, List<CommandWithClassifier>>>List of user ids

Extension Methods