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
Syntaxpublic class ActorsApi
Constructors
ActorsApi(WorkflowRuntime)
Declarationpublic ActorsApi(WorkflowRuntime runtimeOwner)
Type | Name | Description |
---|---|---|
WorkflowRuntime | runtimeOwner |
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.
Declarationpublic Task<Dictionary<string, List<CommandWithClassifier>>> GetActorsWithCommandsAsync(ProcessInstance processInstance, List<TransitionClassifier> classifiers = null, CancellationToken token = default)
Type | Name | Description |
---|---|---|
ProcessInstance | processInstance | Process instance |
List<TransitionClassifier> | classifiers | Filter for transitions by transition classifier |
CancellationToken | token | Cancellation token |
Type | Description |
---|---|
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.
Declarationpublic Task<Dictionary<string, List<CommandWithClassifier>>> GetActorsWithCommandsAsync(TreeSearchFilter filter, List<TransitionClassifier> classifiers = null, CancellationToken token = default)
Type | Name | Description |
---|---|---|
TreeSearchFilter | filter | Sets the current process and the method of searching in the Process Instances tree |
List<TransitionClassifier> | classifiers | Filter for transitions by transition classifier |
CancellationToken | token | Cancellation token |
Type | Description |
---|---|
Task<Dictionary<string, List<CommandWithClassifier>>> | List of user ids |