Class WorkflowRuntimeGetActorsWithCommandsApi
Workflow Runtime API extension for GetActors methods
Inheritance
↳ object
↳ WorkflowRuntimeGetActorsWithCommandsApi
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 static class WorkflowRuntimeGetActorsWithCommandsApi
Methods
GetAllActorsWithCommandsForAllCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
Get the list of user ids which can execute any command for specified process activity (async version)
Declaration
public static Task<Dictionary<string, List<CommandWithClassifier>>> GetAllActorsWithCommandsForAllCommandTransitionsAsync(this WorkflowRuntime runtime, Guid processId, bool beginningWithRoot = false, string activityName = null, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<Dictionary<string, List<CommandWithClassifier>>> | List of user ids |
GetAllActorsWithCommandsForDirectCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
Get the list of user ids which can execute any command bound with direct transitions (by transition classifier) for specified process activity (async version)
Declaration
public static Task<Dictionary<string, List<CommandWithClassifier>>> GetAllActorsWithCommandsForDirectCommandTransitionsAsync(this WorkflowRuntime runtime, Guid processId, bool beginningWithRoot = false, string activityName = null, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<Dictionary<string, List<CommandWithClassifier>>> | List of user ids |
GetAllActorsWithCommandsForDirectAndUndefinedCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
Get the list of user ids which can execute any command bound with direct or undefined transitions (by transition classifier) for specified process activity (async version)
Declaration
public static Task<Dictionary<string, List<CommandWithClassifier>>> GetAllActorsWithCommandsForDirectAndUndefinedCommandTransitionsAsync(this WorkflowRuntime runtime, Guid processId, bool beginningWithRoot = false, string activityName = null, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<Dictionary<string, List<CommandWithClassifier>>> | List of user ids |
GetAllActorsWithCommandsForReverseCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
Get the list of user ids which can execute any command bound with reverse transitions (by transition classifier) for specified process activity (async version)
Declaration
public static Task<Dictionary<string, List<CommandWithClassifier>>> GetAllActorsWithCommandsForReverseCommandTransitionsAsync(this WorkflowRuntime runtime, Guid processId, bool beginningWithRoot = false, string activityName = null, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<Dictionary<string, List<CommandWithClassifier>>> | List of user ids |
GetAllActorsWithCommandsForCommandTransitionsAsync(WorkflowRuntime, Guid, List<TransitionClassifier>, bool, string, CancellationToken)
Get the list of user ids which can execute any command bound with a transitions selected by filter (by transition classifier) for specified process activity Async
Declaration
public static Task<Dictionary<string, List<CommandWithClassifier>>> GetAllActorsWithCommandsForCommandTransitionsAsync(this WorkflowRuntime runtime, Guid processId, List<TransitionClassifier> classifiers, bool beginningWithRoot = false, string activityName = null, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
List<TransitionClassifier> | classifiers | Filter for transitions by transition classifier |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<Dictionary<string, List<CommandWithClassifier>>> | List of user ids |
GetAllActorsWithCommandsForCommandTransitionsAsync(WorkflowRuntime, ProcessInstance, List<TransitionClassifier>, CancellationToken)
Get the list of user ids 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). (async version)
Using of this method is preferable for notification of users which can execute next commands.
Declaration
public static Task<Dictionary<string, List<CommandWithClassifier>>> GetAllActorsWithCommandsForCommandTransitionsAsync(this WorkflowRuntime runtime, ProcessInstance processInstance, List<TransitionClassifier> classifiers = null, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
ProcessInstance | processInstance | Process instance |
List<TransitionClassifier> | classifiers | Filter for transitions by transition classifier |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<Dictionary<string, List<CommandWithClassifier>>> | List of user ids |
GetAllActorsWithCommandsForCommandTransitionsAsync(WorkflowRuntime, TreeSearchFilter, List<TransitionClassifier>, CancellationToken)
Get the list of user ids which can execute any command bound with a transitions selected by filter. This method is prefearable to use when you are using subprocesses (async version)
Declaration
public static Task<Dictionary<string, List<CommandWithClassifier>>> GetAllActorsWithCommandsForCommandTransitionsAsync(this WorkflowRuntime runtime, TreeSearchFilter filter, List<TransitionClassifier> classifiers = null, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
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 |
Returns
Type | Description |
---|
Task<Dictionary<string, List<CommandWithClassifier>>> | List of user ids |
GetAllActorsWithCommandsForAllCommandTransitions(WorkflowRuntime, Guid, bool, string)
Get the list of user ids which can execute any command for specified process activity
Declaration
public static Dictionary<string, List<CommandWithClassifier>> GetAllActorsWithCommandsForAllCommandTransitions(this WorkflowRuntime runtime, Guid processId, bool beginningWithRoot = false, string activityName = null)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
Returns
Type | Description |
---|
Dictionary<string, List<CommandWithClassifier>> | List of user ids |
GetAllActorsWithCommandsForDirectCommandTransitions(WorkflowRuntime, Guid, bool, string)
Get the list of user ids which can execute any command bound with direct transitions (by transition classifier) for specified process activity
Declaration
public static Dictionary<string, List<CommandWithClassifier>> GetAllActorsWithCommandsForDirectCommandTransitions(this WorkflowRuntime runtime, Guid processId, bool beginningWithRoot = false, string activityName = null)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
Returns
Type | Description |
---|
Dictionary<string, List<CommandWithClassifier>> | List of user ids |
GetAllActorsWithCommandsForDirectAndUndefinedCommandTransitions(WorkflowRuntime, Guid, bool, string)
Get the list of user ids which can execute any command bound with direct or undefined transitions (by transition classifier) for specified process activity
Declaration
public static Dictionary<string, List<CommandWithClassifier>> GetAllActorsWithCommandsForDirectAndUndefinedCommandTransitions(this WorkflowRuntime runtime, Guid processId, bool beginningWithRoot = false, string activityName = null)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
Returns
Type | Description |
---|
Dictionary<string, List<CommandWithClassifier>> | List of user ids |
GetAllActorsWithCommandsForReverseCommandTransitions(WorkflowRuntime, Guid, bool, string)
Get the list of user ids which can execute any command bound with reverse transitions (by transition classifier) for specified process activity
Declaration
public static Dictionary<string, List<CommandWithClassifier>> GetAllActorsWithCommandsForReverseCommandTransitions(this WorkflowRuntime runtime, Guid processId, bool beginningWithRoot = false, string activityName = null)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
Returns
Type | Description |
---|
Dictionary<string, List<CommandWithClassifier>> | List of user ids |
GetAllActorsWithCommandsForCommandTransitions(WorkflowRuntime, Guid, List<TransitionClassifier>, bool, string)
Get the list of user ids which can execute any command bound with a transitions selected by filter (by transition classifier) for specified process activity
Declaration
public static Dictionary<string, List<CommandWithClassifier>> GetAllActorsWithCommandsForCommandTransitions(this WorkflowRuntime runtime, Guid processId, List<TransitionClassifier> classifiers, bool beginningWithRoot = false, string activityName = null)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
Guid | processId | Process id |
List<TransitionClassifier> | classifiers | Filter for transitions by transition classifier |
bool | beginningWithRoot | If true the list of actors will be obtained from the root process, even if you passed Id of the subprocess |
string | activityName | Activity name in which transitions are checked. Current activity if null. |
Returns
Type | Description |
---|
Dictionary<string, List<CommandWithClassifier>> | List of user ids |
GetAllActorsWithCommandsForCommandTransitions(WorkflowRuntime, ProcessInstance, List<TransitionClassifier>)
Get the list of user ids 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 static Dictionary<string, List<CommandWithClassifier>> GetAllActorsWithCommandsForCommandTransitions(this WorkflowRuntime runtime, ProcessInstance processInstance, List<TransitionClassifier> classifiers = null)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
ProcessInstance | processInstance | Process instance |
List<TransitionClassifier> | classifiers | Filter for transitions by transition classifier |
Returns
Type | Description |
---|
Dictionary<string, List<CommandWithClassifier>> | List of user ids |
GetAllActorsWithCommandsForCommandTransitions(WorkflowRuntime, TreeSearchFilter, List<TransitionClassifier>)
Get the list of user ids which can execute any command bound with a transitions selected by filter. This method is prefearable to use when you are using subprocesses
Declaration
public static Dictionary<string, List<CommandWithClassifier>> GetAllActorsWithCommandsForCommandTransitions(this WorkflowRuntime runtime, TreeSearchFilter filter, List<TransitionClassifier> classifiers = null)
Parameters
Type | Name | Description |
---|
WorkflowRuntime | runtime | Workflow runtime instance |
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 |
Returns
Type | Description |
---|
Dictionary<string, List<CommandWithClassifier>> | List of user ids |