Class WorkflowPluginWithRuleProvider<EnumActions, EnumActionsAsync, EnumConditions, EnumConditionsAsync, EnumRules, EnumRulesAsync>
Inheritance
↳ object
↳ WorkflowActionProvider<<EnumActions>,<EnumActionsAsync>,<EnumConditions>,<EnumConditionsAsync>>
↳ WorkflowActionAndDesignerParameterFormatProvider<<EnumActions>,<EnumActionsAsync>,<EnumConditions>,<EnumConditionsAsync>>
↳ CustomMixProvider<<EnumActions>,<EnumActionsAsync>,<EnumConditions>,<EnumConditionsAsync>>
↳ WorkflowPlugin<<EnumActions>,<EnumActionsAsync>,<EnumConditions>,<EnumConditionsAsync>>
↳ WorkflowPluginWithRuleProvider<EnumActions, EnumActionsAsync, EnumConditions, EnumConditionsAsync, EnumRules, EnumRulesAsync>
↳ BasicPlugin
Implements
ICustomMixProvider
ICustomWorkflowActionProvider
IWorkflowActionProvider
IDisableProvider
ICustomDesignerParameterFormatProvider
IDesignerParameterFormatProvider
ICustomActivityProvider
ICustomConditionProvider
IWorkflowPlugin
ICustomWorkflowRuleProvider
IWorkflowRuleProvider
Inherited Members
WorkflowPlugin<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>.Disabled
WorkflowPlugin<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>.DefaultValues
WorkflowPlugin<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>.Name
CustomMixProvider<EnumActions, EnumActionsAsync, EnumConditions, EnumConditionsAsync>.Disabled
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Plugins.CustomWorkflowProviders
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic abstract class WorkflowPluginWithRuleProvider<EnumActions, EnumActionsAsync, EnumConditions, EnumConditionsAsync, EnumRules, EnumRulesAsync> : WorkflowPlugin<EnumActions, EnumActionsAsync, EnumConditions, EnumConditionsAsync>, ICustomMixProvider, ICustomWorkflowActionProvider, IWorkflowActionProvider, IDisableProvider, ICustomDesignerParameterFormatProvider, IDesignerParameterFormatProvider, ICustomActivityProvider, ICustomConditionProvider, IWorkflowPlugin, ICustomWorkflowRuleProvider, IWorkflowRuleProvider where EnumActions : struct where EnumActionsAsync : struct where EnumConditions : struct where EnumConditionsAsync : struct where EnumRules : struct where EnumRulesAsync : struct
Properties
RulesExcludeRule
Declarationprotected Dictionary<EnumRules, ExcludeRule> RulesExcludeRule { get; }
| Type | Description |
|---|---|
| Dictionary<EnumRules, ExcludeRule> |
RulesAsyncExcludeRule
Declarationprotected Dictionary<EnumRulesAsync, ExcludeRule> RulesAsyncExcludeRule { get; }
| Type | Description |
|---|---|
| Dictionary<EnumRulesAsync, ExcludeRule> |
RulesCheck
Declarationprotected Dictionary<EnumRules, CheckDelegate> RulesCheck { get; }
| Type | Description |
|---|---|
| Dictionary<EnumRules, CheckDelegate> |
RulesCheckAsync
Declarationprotected Dictionary<EnumRulesAsync, CheckAsyncDelegate> RulesCheckAsync { get; }
| Type | Description |
|---|---|
| Dictionary<EnumRulesAsync, CheckAsyncDelegate> |
RulesGetIdentities
Declarationprotected Dictionary<EnumRules, GetIdentitiesDelegate> RulesGetIdentities { get; }
| Type | Description |
|---|---|
| Dictionary<EnumRules, GetIdentitiesDelegate> |
RulesGetIdentitiesAsync
Declarationprotected Dictionary<EnumRulesAsync, GetIdentitiesAsyncDelegate> RulesGetIdentitiesAsync { get; }
| Type | Description |
|---|---|
| Dictionary<EnumRulesAsync, GetIdentitiesAsyncDelegate> |
Methods
GetRules(NamesSearchType)
Declarationprotected virtual List<EnumRules> GetRules(NamesSearchType namesSearchType)
| Type | Name | Description |
|---|---|---|
| NamesSearchType | namesSearchType |
| Type | Description |
|---|---|
| List<EnumRules> |
GetRulesAsync(NamesSearchType)
Declarationprotected virtual List<EnumRulesAsync> GetRulesAsync(NamesSearchType namesSearchType)
| Type | Name | Description |
|---|---|---|
| NamesSearchType | namesSearchType |
| Type | Description |
|---|---|
| List<EnumRulesAsync> |
GetRules(string, NamesSearchType)
Declarationpublic virtual List<string> GetRules(string schemeCode, NamesSearchType namesSearchType)
| Type | Name | Description |
|---|---|---|
| string | schemeCode | |
| NamesSearchType | namesSearchType |
| Type | Description |
|---|---|
| List<string> |
Check(ProcessInstance, WorkflowRuntime, string, string, string)
Declarationpublic virtual bool Check(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter)
| Type | Name | Description |
|---|---|---|
| ProcessInstance | processInstance | |
| WorkflowRuntime | runtime | |
| string | identityId | |
| string | ruleName | |
| string | parameter |
| Type | Description |
|---|---|
| bool |
CheckAsync(ProcessInstance, WorkflowRuntime, string, string, string, CancellationToken)
Declarationpublic virtual Task<bool> CheckAsync(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter, CancellationToken token)
| Type | Name | Description |
|---|---|---|
| ProcessInstance | processInstance | |
| WorkflowRuntime | runtime | |
| string | identityId | |
| string | ruleName | |
| string | parameter | |
| CancellationToken | token |
| Type | Description |
|---|---|
| Task<bool> |
GetIdentities(ProcessInstance, WorkflowRuntime, string, string)
Declarationpublic virtual IEnumerable<string> GetIdentities(ProcessInstance processInstance, WorkflowRuntime runtime, string ruleName, string parameter)
| Type | Name | Description |
|---|---|---|
| ProcessInstance | processInstance | |
| WorkflowRuntime | runtime | |
| string | ruleName | |
| string | parameter |
| Type | Description |
|---|---|
| IEnumerable<string> |
GetIdentitiesAsync(ProcessInstance, WorkflowRuntime, string, string, CancellationToken)
Declarationpublic virtual Task<IEnumerable<string>> GetIdentitiesAsync(ProcessInstance processInstance, WorkflowRuntime runtime, string ruleName, string parameter, CancellationToken token)
| Type | Name | Description |
|---|---|---|
| ProcessInstance | processInstance | |
| WorkflowRuntime | runtime | |
| string | ruleName | |
| string | parameter | |
| CancellationToken | token |
| Type | Description |
|---|---|
| Task<IEnumerable<string>> |
IsCheckAsync(string, string)
Declarationpublic virtual bool IsCheckAsync(string ruleName, string schemeCode)
| Type | Name | Description |
|---|---|---|
| string | ruleName | |
| string | schemeCode |
| Type | Description |
|---|---|
| bool |
IsGetIdentitiesAsync(string, string)
Declarationpublic virtual bool IsGetIdentitiesAsync(string ruleName, string schemeCode)
| Type | Name | Description |
|---|---|---|
| string | ruleName | |
| string | schemeCode |
| Type | Description |
|---|---|
| bool |
ExcludeRule(string, ExcludeRule)
Declarationpublic void ExcludeRule(string ruleName, ExcludeRule excludeRule = null)
| Type | Name | Description |
|---|---|---|
| string | ruleName | |
| ExcludeRule | excludeRule |
ValidateRules(out List<string>, bool)
Declarationpublic bool ValidateRules(out List<string> rules, bool withExceptions = false)
| Type | Name | Description |
|---|---|---|
| List<string> | rules | |
| bool | withExceptions |
| Type | Description |
|---|---|
| bool |
ValidateRulesAsync(out List<string>, bool)
Declarationpublic bool ValidateRulesAsync(out List<string> rulesAsync, bool withExceptions = false)
| Type | Name | Description |
|---|---|---|
| List<string> | rulesAsync | |
| bool | withExceptions |
| Type | Description |
|---|---|
| bool |
OverrideRuleProvider(IWorkflowRuleProvider)
Sets a custom workflow rule provider for the plugin, replacing the default implementation for resolving rules.
Declarationpublic void OverrideRuleProvider(IWorkflowRuleProvider workflowRuleProvider)
| Type | Name | Description |
|---|---|---|
| IWorkflowRuleProvider | workflowRuleProvider | The <xref href="OptimaJet.Workflow.Core.Runtime.IWorkflowRuleProvider" data-throw-if-not-resolved="false"></xref> implementation to use for resolving workflow rules. |