Class WorkflowRuntime
Provides main API to operations with workflow processes
Inheritance
↳ object
↳ WorkflowRuntime
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Runtime
Assembly: OptimaJet.Workflow.Core.dll
Syntax
public sealed class WorkflowRuntime
Constructors
WorkflowRuntime(Guid)
Creates the WFE runtime object
Declaration
public WorkflowRuntime(Guid runtimeId)
Parameters
Type | Name | Description |
---|
Guid | runtimeId | Id of the runtime (reserved for further extension) |
WorkflowRuntime(string)
Creates the WFE runtime object
Declaration
public WorkflowRuntime(string runtimeId)
Parameters
Type | Name | Description |
---|
string | runtimeId | Id of the runtime (reserved for further extension) |
WorkflowRuntime(IRuntimeIdProvider)
Declaration
public WorkflowRuntime(IRuntimeIdProvider runtimeIdProvider)
Parameters
Type | Name | Description |
---|
IRuntimeIdProvider | runtimeIdProvider | |
WorkflowRuntime()
Creates the WFE runtime object
Declaration
Properties
OfflineApi
Declaration
public OfflineApi OfflineApi { get; }
Property value
Type | Description |
---|
OfflineApi | |
AssignmentApi
Declaration
public AssignmentApi AssignmentApi { get; }
Property value
Type | Description |
---|
AssignmentApi | |
ActorsApi
Declaration
public ActorsApi ActorsApi { get; }
Property value
GetUsersWithIdentitiesAsync
Declaration
public GetUsersWithIdentitiesAsyncDelegate GetUsersWithIdentitiesAsync { get; set; }
Property value
Type | Description |
---|
GetUsersWithIdentitiesAsyncDelegate | |
GetUserByIdentityAsync
Declaration
public GetUserByIdentityAsyncDelegate GetUserByIdentityAsync { get; set; }
Property value
Type | Description |
---|
GetUserByIdentityAsyncDelegate | |
GetCustomTimerValueAsync
Declaration
public GetCustomTimerValueAsyncDelegate GetCustomTimerValueAsync { get; set; }
Property value
Type | Description |
---|
GetCustomTimerValueAsyncDelegate | |
Runtime identifier
Declaration
public string Id { get; }
Property value
Settings
Declaration
public WorkflowRuntimeSettings Settings { get; }
Property value
Type | Description |
---|
WorkflowRuntimeSettings | |
DesignerAutocompleteProvider
Instance of the autocomplete provider (only for the Designer) IDesignerAutocompleteProvider
Declaration
public IDesignerAutocompleteProvider DesignerAutocompleteProvider { get; set; }
Property value
Type | Description |
---|
IDesignerAutocompleteProvider | |
CodeAutocompleteProvider
Auto initialize by WorkflowRuntime.CodeAutocompleteProvider. Use setter to use custom implementation
Declaration
public ICodeAutocompleteProvider CodeAutocompleteProvider { get; set; }
Property value
Type | Description |
---|
ICodeAutocompleteProvider | |
Instance of the parameter format provider (only for the Designer) IDesignerParameterFormatProvider
Declaration
public IDesignerParameterFormatProvider DesignerParameterFormatProvider { get; set; }
Property value
Type | Description |
---|
IDesignerParameterFormatProvider | |
RuleProvider
Instance of the Workflow rule provider IWorkflowRuleProvider
Declaration
public IWorkflowRuleProvider RuleProvider { get; }
Property value
Type | Description |
---|
IWorkflowRuleProvider | |
Builder
Instance of the Workflow builder IWorkflowBuilder
Declaration
public IWorkflowBuilder Builder { get; }
Property value
Type | Description |
---|
IWorkflowBuilder | |
TimerManager
Instance of the Timer manager ITimerManager
Declaration
public ITimerManager TimerManager { get; }
Property value
Type | Description |
---|
ITimerManager | |
Calendars
List of work calendars ICalendar
Declaration
public ConcurrentDictionary<string, ICalendar> Calendars { get; set; }
Property value
Type | Description |
---|
ConcurrentDictionary<string, ICalendar> | |
DefaultCalendarName
Default work calendar name />
Declaration
public string DefaultCalendarName { get; }
Property value
PersistenceProvider
Instance of the Persistence provider IPersistenceProvider
Declaration
public IPersistenceProvider PersistenceProvider { get; }
Property value
Type | Description |
---|
IPersistenceProvider | |
ActionProvider
Instance of the Action provider IWorkflowActionProvider
Declaration
public IWorkflowActionProvider ActionProvider { get; }
Property value
Type | Description |
---|
IWorkflowActionProvider | |
ExternalParametersProvider
Instance of the External parameters provider IWorkflowExternalParametersProvider
Declaration
public IWorkflowExternalParametersProvider ExternalParametersProvider { get; }
Property value
Type | Description |
---|
IWorkflowExternalParametersProvider | |
LocalizationProvider
Declaration
public ILocalizationProvider? LocalizationProvider { get; }
Property value
Type | Description |
---|
ILocalizationProvider | |
RuntimeDateTimeNow
Get date and time which used by runtime
Declaration
public DateTime RuntimeDateTimeNow { get; }
Property value
IsCold
Runtime in cold start state if true
Declaration
public bool IsCold { get; }
Property value
CancellationTokenHandling
The way of handling System.Threading.CancellationToken after activity execution
Declaration
public CancellationTokenHandling CancellationTokenHandling { get; set; }
Property value
Type | Description |
---|
CancellationTokenHandling | |
WorkflowServiceRunner
Declaration
public IWorkflowServiceRunner WorkflowServiceRunner { get; }
Property value
Type | Description |
---|
IWorkflowServiceRunner | |
IsRunning
Declaration
public bool IsRunning { get; }
Property value
CodeActionsCompillationEnable
Default value is true. Enable compillation for Code Actions CodeActionDefinition
Declaration
public static bool CodeActionsCompillationEnable { get; set; }
Property value
ExpressionsCompilationEnable
Declaration
public static bool ExpressionsCompilationEnable { get; set; }
Property value
ExpressionsCompilerOptions
Expressions Compiler Options
Declaration
public static ExpressionsCompilerOptions ExpressionsCompilerOptions { get; set; }
Property value
Type | Description |
---|
ExpressionsCompilerOptions | |
CodeActionsDebugMode
Default value is false. Enable debug in code action. You can put a breakpoint by or /break/ in a code action's code
Declaration
public static bool CodeActionsDebugMode { get; set; }
Property value
GlobalActionsInvoker
Invoker which calls the global Code Actions
Declaration
public CodeActionsInvoker GlobalActionsInvoker { get; }
Property value
Type | Description |
---|
CodeActionsInvoker | |
LastGlobalActionsCompilationTime
Time of the last global Code Actions compilation
Declaration
public DateTime LastGlobalActionsCompilationTime { get; }
Property value
Bulk
Gets the bulk API for the current runtime.
Declaration
public IBulkApi Bulk { get; }
Property value
Localizer
Provides localized strings. For search used property by default.
Declaration
public Localizer Localizer { get; }
Property value
Logger
Instance of the logger ILogger
Declaration
public ILogger Logger { get; set; }
Property value
ProcessLogger
Declaration
public IProcessLogProvider ProcessLogger { get; set; }
Property value
Type | Description |
---|
IProcessLogProvider | |
Methods
CodeActionsRegisterAssembly(Assembly)
Register assembly in CodeActionsCompiller as referenced assembly
Declaration
public static void CodeActionsRegisterAssembly(Assembly assembly)
Parameters
Type | Name | Description |
---|
Assembly | assembly | |
CompileGlobalCodeActionsAsync(bool)
Compiles global Code Actions
Declaration
public Task<(bool success, Dictionary<string, string> compilerErrors)> CompileGlobalCodeActionsAsync(bool ignoreNotCompiled)
Parameters
Type | Name | Description |
---|
bool | ignoreNotCompiled | if true all compillation errors in the global codeactions will be ignored |
Returns
Type | Description |
---|
Task<(bool success, Dictionary<string, string> compilerErrors)> | |
RegisterLicense(string)
Register the license to remove license restrictions
Declaration
public static void RegisterLicense(string licenseText)
Parameters
Type | Name | Description |
---|
string | licenseText | License text |
GetLicenseRestrictions()
Get the restrictions of the current license
Declaration
public static IWorkflowEngineNetRestriction GetLicenseRestrictions()
Returns
Type | Description |
---|
IWorkflowEngineNetRestriction | <xref href="OptimaJet.Workflow.Core.License.IWorkflowEngineNetRestriction" data-throw-if-not-resolved="false"></xref> License Restrictions |
CheckAllSubprocessesCompletedAsync(ProcessInstance)
Checks that all subprocesses was completed
Declaration
public Task<bool> CheckAllSubprocessesCompletedAsync(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | ProcessInstance for check |
Returns
Type | Description |
---|
Task<bool> | true - if there are no active suprocesses |
CheckAllSubprocessesAndParentProcessCompletedAsync(ProcessInstance)
Check that all subprocesses and the parent process reach the same point (completed)
Declaration
public Task<bool> CheckAllSubprocessesAndParentProcessCompletedAsync(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
Returns
Type | Description |
---|
Task<bool> | |
DeleteAllSubprocessesAsync(ProcessInstance)
Delete all subprocesses for process
Declaration
public Task<int> DeleteAllSubprocessesAsync(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
Returns
Type | Description |
---|
Task<int> | Count of deleted subprocesses |
SetPersistentProcessParameterAsync(Guid, string, object)
Set single persistent parameter in the process(async)
Declaration
public Task SetPersistentProcessParameterAsync(Guid processId, string parameterName, object parameterValue)
Parameters
Type | Name | Description |
---|
Guid | processId | >Process id |
string | parameterName | Parameter name |
object | parameterValue | Parameter value |
Returns
GetProcessTimersAsync(Guid)
Returns list of timers for a process
Declaration
public Task<IEnumerable<ProcessTimer>> GetProcessTimersAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Id of the process |
Returns
Type | Description |
---|
Task<IEnumerable<ProcessTimer>> | |
SetTimerValueAsync(Guid, string, DateTime)
Sets new value of named timer (async version). Use this method outside of your process.
Declaration
public Task SetTimerValueAsync(Guid processId, string timerName, DateTime newValue)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | timerName | Timer name in Scheme |
DateTime | newValue | New value of the timer |
Returns
ResetTimerValueAsync(Guid, string)
Resets value of named timer (async version)
Declaration
public Task ResetTimerValueAsync(Guid processId, string timerName)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | timerName | Timer name in Scheme |
Returns
GetProcessStatusAsync(Guid)
Get status of specified process (async version)
Declaration
public Task<ProcessStatus> GetProcessStatusAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
Task<ProcessStatus> | <xref href="OptimaJet.Workflow.Core.Persistence.ProcessStatus" data-throw-if-not-resolved="false"></xref> object |
ShutdownAsync(int)
Switches off the runtime. Switches off API, waits for API calls to be completed. Switches off all timers.
IMPORTANT! Call this method from the ASYNCHRONOUS method only.
Declaration
public Task ShutdownAsync(int timeout = -1)
Parameters
Type | Name | Description |
---|
int | timeout | Shutdown timeout |
Returns
RegisterDesignerAction(string, IDesignerAction)
Register designer extension action.
Declaration
public void RegisterDesignerAction(string operation, IDesignerAction designerAction)
Parameters
Type | Name | Description |
---|
string | operation | Operation name. |
IDesignerAction | designerAction | Action. |
GetDesignerAction(string)
Get designer extension actions by operation.
Declaration
public IDesignerAction GetDesignerAction(string operation)
Parameters
Type | Name | Description |
---|
string | operation | Operation name. |
Returns
Type | Description |
---|
IDesignerAction | Action. |
ExecuteTimerAsync(Guid, string)
Declaration
public Task ExecuteTimerAsync(Guid processId, string timerName)
Parameters
Type | Name | Description |
---|
Guid | processId | |
string | timerName | |
Returns
SetProcessNewStatusAsync(ProcessInstance, ProcessStatus, bool)
Declaration
public Task SetProcessNewStatusAsync(ProcessInstance processInstance, ProcessStatus newStatus, bool suppressEvent = false)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
ProcessStatus | newStatus | |
bool | suppressEvent | |
Returns
SetIdledOrFinalizedStatusAsync(ProcessInstance, ActivityDefinition)
Declaration
public Task SetIdledOrFinalizedStatusAsync(ProcessInstance processInstance, ActivityDefinition newCurrentActivity)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
ActivityDefinition | newCurrentActivity | |
Returns
CheckIdentityAsync(ProcessInstance, string, string, string, CancellationToken)
Declaration
public Task<bool> CheckIdentityAsync(ProcessInstance processInstance, string identityId, string ruleName, string parameter, CancellationToken token)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
string | identityId | |
string | ruleName | |
string | parameter | |
CancellationToken | token | |
Returns
Type | Description |
---|
Task<bool> | |
CheckIdentityByActorAsync(ProcessInstance, string, string, CancellationToken)
Declaration
public Task<bool> CheckIdentityByActorAsync(ProcessInstance processInstance, string identityId, string actorName, CancellationToken token)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
string | identityId | |
string | actorName | |
CancellationToken | token | |
Returns
Type | Description |
---|
Task<bool> | |
GetAvailableCommandsAsync(ProcessInstance, IEnumerable<string>, string, string, CultureInfo, bool, CancellationToken)
Return the list of commands which is available from current activity for specified user (async version)
Declaration
public Task<IEnumerable<WorkflowCommand>> GetAvailableCommandsAsync(ProcessInstance processInstance, IEnumerable<string> identityIds, string commandNameFilter = null, string mainIdentityId = null, CultureInfo culture = null, bool conditionCheck = false, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
IEnumerable<string> | identityIds | List of User ids for which formed initial commands list |
string | commandNameFilter | Selects only the specified command if not null |
string | mainIdentityId | User id for priority check of rules |
CultureInfo | culture | Culture to localize command and command parameter names |
bool | conditionCheck | If true then commands with failed condition checks will be excluded |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowCommand>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommandsAsync(ProcessInstance, string)
Return the list of commands which is available from current activity for specified user (async version)
Declaration
public Task<IEnumerable<WorkflowCommand>> GetAvailableCommandsAsync(ProcessInstance processInstance, string identityId)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
string | identityId | User id for whom formed initial commands list |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowCommand>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommandsAsync(Guid, IEnumerable<string>, string, string, CultureInfo, bool, CancellationToken)
Return the list of commands which is available from current activity for specified user (async version)
Declaration
public Task<IEnumerable<WorkflowCommand>> GetAvailableCommandsAsync(Guid processId, IEnumerable<string> identityIds, string commandNameFilter = null, string mainIdentityId = null, CultureInfo culture = null, bool conditionCheck = false, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
IEnumerable<string> | identityIds | List of User ids for which formed initial commands list |
string | commandNameFilter | Selects only the specified command if not null |
string | mainIdentityId | User id for priority check of rules |
CultureInfo | culture | Culture to localize command and command parameter names |
bool | conditionCheck | If true then commands with failed condition checks will be excluded |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowCommand>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommandsAsync(Guid, string)
Return the list of commands which is available from current activity for specified user (async version)
Declaration
public Task<IEnumerable<WorkflowCommand>> GetAvailableCommandsAsync(Guid processId, string identityId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | User id for whom formed initial commands list |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowCommand>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommandsAsync(Guid, string, CultureInfo)
Return the list of commands which is available from current activity for specified user (async version)
Declaration
public Task<IEnumerable<WorkflowCommand>> GetAvailableCommandsAsync(Guid processId, string identityId, CultureInfo culture)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | User id for whom formed initial commands list |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowCommand>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
ExecuteCommandAsync(WorkflowCommand, string, string, CancellationToken, bool)
Execute specified command for specified users (async version)
Declaration
public Task<CommandExecutionResult> ExecuteCommandAsync(WorkflowCommand command, string identityId, string impersonatedIdentityId, CancellationToken token = default, bool checkRestrictions = false)
Parameters
Type | Name | Description |
---|
WorkflowCommand | command | Command to execute |
string | identityId | The user id which execute command |
string | impersonatedIdentityId | The user id for whom executes command (impersonation) |
CancellationToken | token | Cancellation token |
bool | checkRestrictions | If true then actor restriction check will be performed for every transition |
Returns
Type | Description |
---|
Task<CommandExecutionResult> | Result of the execution |
ExecuteCommandWithRestrictionCheckAsync(WorkflowCommand, string, string, CancellationToken)
Execute specified command for specified users (async version) with actor restrictions check
Declaration
public Task<CommandExecutionResult> ExecuteCommandWithRestrictionCheckAsync(WorkflowCommand command, string identityId, string impersonatedIdentityId, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
WorkflowCommand | command | Command to execute |
string | identityId | The user id which execute command |
string | impersonatedIdentityId | The user id for whom executes command (impersonation) |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<CommandExecutionResult> | Result of the execution |
ExecuteCommandAsync(Guid, string, string, WorkflowCommand)
Execute specified command for specified users (async version)
Declaration
[Obsolete("Since version 1.5 argument processId not used to determine the process, the process is determined by the command.ProcessId property.\r\nPlease use the following method: public void ExecuteCommandAsync(WorkflowCommand command, string identityId, string impersonatedIdentityId)")]
public Task<CommandExecutionResult> ExecuteCommandAsync(Guid processId, string identityId, string impersonatedIdentityId, WorkflowCommand command)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | The user id which execute command |
string | impersonatedIdentityId | The user id for whom executes command (impersonation) |
WorkflowCommand | command | Command to execute |
Returns
Type | Description |
---|
Task<CommandExecutionResult> | Result of the execution |
GetInitialCommandsAsync(string, string)
Return the list of commands which is available from initial activity for specified user (async version)
Declaration
public Task<IEnumerable<WorkflowCommand>> GetInitialCommandsAsync(string schemeCode, string identityId)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
string | identityId | User id for whom formed initial commands list |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowCommand>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetInitialCommandsAsync(string, string, CultureInfo)
Return the list of commands which is available from initial activity for specified user (async version)
Declaration
public Task<IEnumerable<WorkflowCommand>> GetInitialCommandsAsync(string schemeCode, string identityId, CultureInfo culture)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
string | identityId | User id for whom formed initial commands list |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowCommand>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetInitialCommandsAsync(string, IEnumerable<string>, IDictionary<string, object>, string, CultureInfo)
Return the list of commands which is available from initial activity for specified users (async version)
Declaration
public Task<IEnumerable<WorkflowCommand>> GetInitialCommandsAsync(string schemeCode, IEnumerable<string> identityIds, IDictionary<string, object> processParameters = null, string commandNameFilter = null, CultureInfo culture = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
IEnumerable<string> | identityIds | List of User ids for which formed initial commands list |
IDictionary<string, object> | processParameters | Parameters for creating scheme of process |
string | commandNameFilter | Selects only the specified command if not null |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowCommand>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
CreateInstanceAsync(string, Guid, CancellationToken)
Create instance of process (async version)
Declaration
public Task CreateInstanceAsync(string schemeCode, Guid processId, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Guid | processId | Process id |
CancellationToken | token | Cancellation token |
Returns
CreateInstanceAsync(string, Guid, string, string, CancellationToken)
Create instance of process (async version)
Declaration
public Task CreateInstanceAsync(string schemeCode, Guid processId, string identityId, string impersonatedIdentityId, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Guid | processId | Process id |
string | identityId | The user id which execute initial command if command is available |
string | impersonatedIdentityId | The user id for whom executes initial command if command is available |
CancellationToken | token | Cancellation token |
Returns
CreateInstanceAsync(string, Guid, IDictionary<string, object>, CancellationToken)
Create instance of process (async version)
Declaration
public Task CreateInstanceAsync(string schemeCode, Guid processId, IDictionary<string, object> schemeCreationParameters, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Guid | processId | Process id |
IDictionary<string, object> | schemeCreationParameters | The parameters for creating scheme of process |
CancellationToken | token | Cancellation token |
Returns
CreateInstanceAsync(string, Guid, string, string, IDictionary<string, object>, CancellationToken)
Create instance of process (async version)
Declaration
public Task CreateInstanceAsync(string schemeCode, Guid processId, string identityId, string impersonatedIdentityId, IDictionary<string, object> schemeCreationParameters, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Guid | processId | Process id |
string | identityId | The user id which execute initial command if command is available |
string | impersonatedIdentityId | The user id for whom executes initial command if command is available |
IDictionary<string, object> | schemeCreationParameters | The parameters for creating scheme of process |
CancellationToken | token | Cancellation token |
Returns
CreateInstanceAsync(CreateInstanceParams, CancellationToken)
Create instance of the process (async version)
Declaration
public Task CreateInstanceAsync(CreateInstanceParams createInstanceParams, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
CreateInstanceParams | createInstanceParams | Parameters for creation of an instance of a process |
CancellationToken | token | Cancellation token |
Returns
DeleteInstanceAsync(Guid)
Delete instance of the process and all child subprocesses. (async version)
Declaration
public Task DeleteInstanceAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
IsProcessExistsAsync(Guid)
Check existence of the specified process
Declaration
public Task<bool> IsProcessExistsAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
Task<bool> | True if process with specified identifier is exists |
DeleteInstanceAsync(ProcessInstance)
Delete instance of the process and all child subprocesses. (Async version)
Declaration
public Task DeleteInstanceAsync(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Instance to delete |
Returns
GetProcessInstancesTreeAsync(Guid, CancellationToken)
Returns process instance tree (root process and subprocesses) (Async version)
Declaration
public Task<ProcessInstancesTree> GetProcessInstancesTreeAsync(Guid rootProcessId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|
Guid | rootProcessId | Root process id |
CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|
Task<ProcessInstancesTree> | ProcessInstancesTree object |
GetProcessInstancesTreeAsync(ProcessInstance, CancellationToken)
Returns process instance tree (root process and subprocesses) (Async version)
Declaration
public Task<ProcessInstancesTree> GetProcessInstancesTreeAsync(ProcessInstance processInstance, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | ProcessInstance for which tree is builds |
CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|
Task<ProcessInstancesTree> | ProcessInstancesTree object |
GetProcessInstanceAndFillProcessParametersAsync(Guid)
Get process instance with all parameters for specified process id (async version)
Declaration
public Task<ProcessInstance> GetProcessInstanceAndFillProcessParametersAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
Task<ProcessInstance> | <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref> object |
GetProcessHistoryAsync(Guid, Paging)
Returns the history of process (async version)
Declaration
public Task<List<ProcessHistoryItem>> GetProcessHistoryAsync(Guid processId, Paging paging = null)
Parameters
Type | Name | Description |
---|
Guid | processId | Id of the process |
Paging | paging | |
Returns
Type | Description |
---|
Task<List<ProcessHistoryItem>> | |
GetProcessHistoryCountAsync(Guid)
Returns count of process history (async version)
Declaration
public Task<int> GetProcessHistoryCountAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Id of the process |
Returns
ChangeProcessLogEnabledAsync(Guid)
Change log enabled for process and all subprocesses. Returns new value of log enabled.
Declaration
public Task<bool> ChangeProcessLogEnabledAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Id of the process. |
Returns
Type | Description |
---|
Task<bool> | The new value of log enabled. |
GetLocalizedStateName(Guid, string)
Get localized state name for specified process in current culture
Declaration
public string GetLocalizedStateName(Guid processId, string stateName)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | stateName | State name to localize |
Returns
Type | Description |
---|
string | Localized state name |
GetLocalizedStateNameAsync(Guid, string)
Get localized state name for specified process in current culture
Declaration
public Task<string> GetLocalizedStateNameAsync(Guid processId, string stateName)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | stateName | State name to localize |
Returns
Type | Description |
---|
Task<string> | Localized state name |
GetLocalizedStateNameBySchemeId(Guid, string)
Get localized state name for specified scheme in current culture
Declaration
public string GetLocalizedStateNameBySchemeId(Guid schemeId, string stateName)
Parameters
Type | Name | Description |
---|
Guid | schemeId | Id of the scheme |
string | stateName | State name to localize |
Returns
Type | Description |
---|
string | Localized state name |
GetLocalizedStateNameBySchemeIdAsync(Guid, string)
Get localized state name for specified scheme in current culture
Declaration
public Task<string> GetLocalizedStateNameBySchemeIdAsync(Guid schemeId, string stateName)
Parameters
Type | Name | Description |
---|
Guid | schemeId | Id of the scheme |
string | stateName | State name to localize |
Returns
Type | Description |
---|
Task<string> | Localized state name |
GetLocalizedStateNameBySchemeCode(string, string, IDictionary<string, object>)
Get localized state name for specified scheme in current culture
Declaration
public string GetLocalizedStateNameBySchemeCode(string schemeCode, string stateName, IDictionary<string, object> parameters = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
string | stateName | State name to localize |
IDictionary<string, object> | parameters | The parameters for creating scheme of process |
Returns
Type | Description |
---|
string | Localized state name |
GetLocalizedStateNameBySchemeCodeAsync(string, string, IDictionary<string, object>)
Get localized state name for specified scheme in current culture
Declaration
public Task<string> GetLocalizedStateNameBySchemeCodeAsync(string schemeCode, string stateName, IDictionary<string, object> parameters = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
string | stateName | State name to localize |
IDictionary<string, object> | parameters | The parameters for creating scheme of process |
Returns
Type | Description |
---|
Task<string> | Localized state name |
GetLocalizedCommandName(Guid, string)
Get localized command name for specified process in current culture
Declaration
public string GetLocalizedCommandName(Guid processId, string commandName)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | commandName | Command name to localize |
Returns
Type | Description |
---|
string | Localized command name |
GetLocalizedCommandNameAsync(Guid, string)
Get localized command name for specified process in current culture
Declaration
public Task<string> GetLocalizedCommandNameAsync(Guid processId, string commandName)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | commandName | Command name to localize |
Returns
Type | Description |
---|
Task<string> | Localized command name |
GetLocalizedCommandNameBySchemeId(Guid, string)
Get localized command name for specified scheme in current culture
Declaration
public string GetLocalizedCommandNameBySchemeId(Guid schemeId, string commandName)
Parameters
Type | Name | Description |
---|
Guid | schemeId | Id of the scheme |
string | commandName | Command name to localize |
Returns
Type | Description |
---|
string | Localized command name |
GetLocalizedCommandNameBySchemeIdAsync(Guid, string)
Get localized command name for specified scheme in current culture
Declaration
public Task<string> GetLocalizedCommandNameBySchemeIdAsync(Guid schemeId, string commandName)
Parameters
Type | Name | Description |
---|
Guid | schemeId | Id of the scheme |
string | commandName | Command name to localize |
Returns
Type | Description |
---|
Task<string> | Localized command name |
LogInfo(string, Dictionary<string, string>)
Writes a message to the log with Info level
Declaration
public void LogInfo(string message, Dictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|
string | message | message to write |
Dictionary<string, string> | parameters | dictionary of properties to serialize within the log entry |
LogInfoIfLoggerExists(string, Dictionary<string, string>)
Writes a message to the log with Info level if WorkflowRuntime.Logger is defined
Declaration
public void LogInfoIfLoggerExists(string message, Dictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|
string | message | message to write |
Dictionary<string, string> | parameters | dictionary of properties to serialize within the log entry |
LogDebug(string, Dictionary<string, string>)
Writes a message to the log with Debug level
Declaration
public void LogDebug(string message, Dictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|
string | message | message to write |
Dictionary<string, string> | parameters | dictionary of properties to serialize within the log entry |
LogDebugIfLoggerExists(string, Dictionary<string, string>)
Writes a message to the log with Debug level if WorkflowRuntime.Logger is defined
Declaration
public void LogDebugIfLoggerExists(string message, Dictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|
string | message | message to write |
Dictionary<string, string> | parameters | dictionary of properties to serialize within the log entry |
LogError(string, Dictionary<string, string>)
Writes a message to the log with Error level
Declaration
public void LogError(string message, Dictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|
string | message | message to write |
Dictionary<string, string> | parameters | dictionary of properties to serialize within the log entry |
LogErrorIfLoggerExists(string, Dictionary<string, string>)
Writes a message to the log with Error level if WorkflowRuntime.Logger is defined
Declaration
public void LogErrorIfLoggerExists(string message, Dictionary<string, string> parameters)
Parameters
Type | Name | Description |
---|
string | message | message to write |
Dictionary<string, string> | parameters | dictionary of properties to serialize within the log entry |
PreExecuteFromInitialActivityAsync(Guid, bool, CancellationToken)
Pre-execution from initial activity of the process (async version)
Declaration
public Task<List<ActivityDto>> PreExecuteFromInitialActivityAsync(Guid processId, bool ignoreCurrentStateCheck = false, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
bool | ignoreCurrentStateCheck | If false and Current State Name and State Name of Current Activity is different (in case of scheme upgrade) do not run pre-execution |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<List<ActivityDto>> | List of activities which will presumably be executed |
PreExecuteFromCurrentActivityAsync(Guid, bool, CancellationToken)
Pre-execution from current activity of the process (async version)
Declaration
public Task<List<ActivityDto>> PreExecuteFromCurrentActivityAsync(Guid processId, bool ignoreCurrentStateCheck = false, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
bool | ignoreCurrentStateCheck | If false and Current State Name and State Name of Current Activity is different (in case of scheme upgrade) do not run pre-execution |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<List<ActivityDto>> | List of activities which will presumably be executed |
PreExecuteAsync(Guid, string, bool, CancellationToken)
Pre-execution from specified activity of the process (async version)
Declaration
public Task<List<ActivityDto>> PreExecuteAsync(Guid processId, string fromActivityName, bool ignoreCurrentStateCheck = false, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | fromActivityName | Activity name which begins pre-execution |
bool | ignoreCurrentStateCheck | If false and Current State Name and State Name of Current Activity is different (in case of scheme upgrade) do not run pre-execution |
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|
Task<List<ActivityDto>> | List of activities which will presumably be executed |
GetSchemeCodesAsync(List<string>)
Returns the list of scheme codes into which the scheme with the given tags. If tags are null returns all scheme codes.
Declaration
public Task<List<string>> GetSchemeCodesAsync(List<string> tags = null)
Parameters
Type | Name | Description |
---|
List<string> | tags | |
Returns
Type | Description |
---|
Task<List<string>> | |
SetSchemeIsObsoleteAsync(string, Dictionary<string, object>)
Set flag IsObsolete for all schemas of process with specific code and parameters (async version)
Declaration
public Task SetSchemeIsObsoleteAsync(string schemeCode, Dictionary<string, object> parameters)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Dictionary<string, object> | parameters | The parameters for creating scheme of process |
Returns
SetSchemeIsObsoleteAsync(string)
Set flag IsObsolete for all schemas of process with specific code (async version)
Declaration
public Task SetSchemeIsObsoleteAsync(string schemeCode)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Returns
UpdateSchemeIfObsoleteAsync(Guid)
Updating scheme of specific process
Declaration
public Task UpdateSchemeIfObsoleteAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
UpdateSchemeIfObsoleteAsync(Guid, IDictionary<string, object>, bool)
Updating scheme of specific process (async version)
Declaration
public Task UpdateSchemeIfObsoleteAsync(Guid processId, IDictionary<string, object> parameters, bool ignoreAutoSchemeUpdate = false)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
IDictionary<string, object> | parameters | Parameters for creating scheme of process |
bool | ignoreAutoSchemeUpdate | If true the attribute of Activity - IsAutoScheme update will be ignored. |
Returns
GetProcessSchemeAsync(Guid)
Get procees definition (parsed scheme) for specified process (async version)
Declaration
public Task<ProcessDefinition> GetProcessSchemeAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
Task<ProcessDefinition> | <xref href="OptimaJet.Workflow.Core.Model.ProcessDefinition" data-throw-if-not-resolved="false"></xref> object |
GetAvailableStateToSetAsync(Guid)
Get the list of all states which available for set of specified process localized in current culture (async version)
Declaration
public Task<IEnumerable<WorkflowState>> GetAvailableStateToSetAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowState>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSetAsync(Guid, CultureInfo)
Get the list of all states which available for set of specified process localized in specified culture (async version)
Declaration
public Task<IEnumerable<WorkflowState>> GetAvailableStateToSetAsync(Guid processId, CultureInfo culture)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
CultureInfo | culture | Culture to localize state names |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowState>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSetAsync(ProcessInstance)
Get the list of all states which available for set of specified process localized in current culture (async version)
Declaration
public Task<IEnumerable<WorkflowState>> GetAvailableStateToSetAsync(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowState>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSetAsync(ProcessInstance, CultureInfo)
Get the list of all states which available for set of specified process localized in specified culture (async version)
Declaration
public Task<IEnumerable<WorkflowState>> GetAvailableStateToSetAsync(ProcessInstance processInstance, CultureInfo culture)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
CultureInfo | culture | Culture to localize state names |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowState>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSetAsync(string, IDictionary<string, object>)
Get the list of all states which available for set of specified scheme in current culture (async version)
Declaration
public Task<IEnumerable<WorkflowState>> GetAvailableStateToSetAsync(string schemeCode, IDictionary<string, object> parameters = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
IDictionary<string, object> | parameters | The parameters for creating scheme of process |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowState>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSetAsync(string, CultureInfo, IDictionary<string, object>)
Get the list of all states which available for set of specified scheme in specified culture (async version)
Declaration
public Task<IEnumerable<WorkflowState>> GetAvailableStateToSetAsync(string schemeCode, CultureInfo culture, IDictionary<string, object> parameters = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
CultureInfo | culture | Culture to localize state names |
IDictionary<string, object> | parameters | The parameters for creating scheme of process |
Returns
Type | Description |
---|
Task<IEnumerable<WorkflowState>> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
SetStateAsync(Guid, string, string, string, IDictionary<string, object>, bool)
Set specified state for specified process (async version)
Declaration
[Obsolete("Use SetStateAsync(SetStateParams setStateParams) method instead of this")]
public Task SetStateAsync(Guid processId, string identityId, string impersonatedIdentityId, string stateName, IDictionary<string, object> parameters = null, bool preventExecution = false)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | The user id which set the state |
string | impersonatedIdentityId | The user id for whom sets the state (impersonation) |
string | stateName | State name to set |
IDictionary<string, object> | parameters | Dictionary of ProcessInstance parameters which transferred to executed actions |
bool | preventExecution | Actions due to transition process do not executed if true |
Returns
SetStateAsync(SetStateParams)
Set specified state for specified process (async version)
Declaration
public Task SetStateAsync(SetStateParams setStateParams)
Parameters
Type | Name | Description |
---|
SetStateParams | setStateParams | Parameters of setting state<xref href="OptimaJet.Workflow.Core.Runtime.SetStateParams" data-throw-if-not-resolved="false"></xref> |
Returns
SetActivityWithoutExecutionAsync(ActivityDefinition, ProcessInstance, bool)
Set specified activity as current without execution of the implementation of the activity (Async version)
Declaration
public Task SetActivityWithoutExecutionAsync(ActivityDefinition activityToSet, ProcessInstance processInstance, bool doNotSetRunningStatus = false)
Parameters
Type | Name | Description |
---|
ActivityDefinition | activityToSet | Activity to set |
ProcessInstance | processInstance | Process instance for set activity as current |
bool | doNotSetRunningStatus | The status of the process - <xref href="OptimaJet.Workflow.Core.Persistence.ProcessStatus.Running" data-throw-if-not-resolved="false"></xref> will not be set if true |
Returns
SetActivityWithExecutionAsync(string, string, IDictionary<string, object>, ActivityDefinition, ProcessInstance, bool, CancellationToken)
Set specified activity as current and executing the implementation of the activity (Async version)
Declaration
public Task SetActivityWithExecutionAsync(string identityId, string impersonatedIdentityId, IDictionary<string, object> parameters, ActivityDefinition activityToSet, ProcessInstance processInstance, bool doNotSetRunningStatus = false, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
string | identityId | The user id which set the activity |
string | impersonatedIdentityId | The user id for whom sets the activity (impersonation) |
IDictionary<string, object> | parameters | Dictionary of ProcessInstance parameters which transferred to executed actions |
ActivityDefinition | activityToSet | Activity to set |
ProcessInstance | processInstance | Process instance for set activity as current |
bool | doNotSetRunningStatus | The status of the process - <xref href="OptimaJet.Workflow.Core.Persistence.ProcessStatus.Running" data-throw-if-not-resolved="false"></xref> will not be set if true |
CancellationToken | token | Cancellation token |
Returns
ResumeAsync(Guid, CancellationToken)
Resumes the process from the current activity. In this case, the activity itself is not executed, and the process goes on if it can.
Declaration
public Task<ResumeResult> ResumeAsync(Guid processId, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
Guid | processId | |
CancellationToken | token | |
Returns
Type | Description |
---|
Task<ResumeResult> | |
ResumeAsync(ResumeParams, CancellationToken)
Resumes the process from the current or specific activity. In this case, the activity itself is not executed, and the process goes on if it can.
Declaration
public Task<ResumeResult> ResumeAsync(ResumeParams resumeParams, CancellationToken token = default)
Parameters
Type | Name | Description |
---|
ResumeParams | resumeParams | |
CancellationToken | token | |
Returns
Type | Description |
---|
Task<ResumeResult> | |
GetCurrentStateNameAsync(Guid)
Return the current state name of specified process (async version)
Declaration
public Task<string> GetCurrentStateNameAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
Task<string> | Name of current state |
GetCurrentActivityNameAsync(Guid)
Return the current activity name of specified process (async version)
Declaration
public Task<string> GetCurrentActivityNameAsync(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
Task<string> | Current activity name |
GetCurrentStateAsync(Guid, CultureInfo)
Return the current state of specified process (async version)
Declaration
public Task<WorkflowState> GetCurrentStateAsync(Guid processId, CultureInfo culture = null)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
CultureInfo | culture | Culture to localize state name |
Returns
Type | Description |
---|
Task<WorkflowState> | <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> object |
GetInitialStateAsync(string, IDictionary<string, object>, CultureInfo)
Return the initial state for process scheme (async version)
Declaration
public Task<WorkflowState> GetInitialStateAsync(string schemeCode, IDictionary<string, object> processParameters = null, CultureInfo culture = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
IDictionary<string, object> | processParameters | Parameters for creating scheme of process |
CultureInfo | culture | Culture to localize state name |
Returns
Type | Description |
---|
Task<WorkflowState> | <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> object |
IsProcessExists(Guid)
Check existence of the specified process
Declaration
public bool IsProcessExists(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
bool | True if process with specified identifier is exists |
CreateInstance(string, Guid)
Create instance of process.
Declaration
public void CreateInstance(string schemeCode, Guid processId)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Guid | processId | Process id |
CreateInstance(string, Guid, string, string)
Create instance of process.
Declaration
public void CreateInstance(string schemeCode, Guid processId, string identityId, string impersonatedIdentityId)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Guid | processId | Process id |
string | identityId | The user id which execute initial command if command is available |
string | impersonatedIdentityId | The user id for whom executes initial command if command is available |
CreateInstance(string, Guid, IDictionary<string, object>)
Create instance of process.
Declaration
public void CreateInstance(string schemeCode, Guid processId, IDictionary<string, object> schemeCreationParameters)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Guid | processId | Process id |
IDictionary<string, object> | schemeCreationParameters | Parameters for creating the scheme of the process (defining parameters) |
CreateInstance(string, Guid, string, string, IDictionary<string, object>)
Create instance of the process.
Declaration
public void CreateInstance(string schemeCode, Guid processId, string identityId, string impersonatedIdentityId, IDictionary<string, object> schemeCreationParameters)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Guid | processId | Process id |
string | identityId | The user id which execute initial command if command is available |
string | impersonatedIdentityId | The user id for whom executes initial command if command is available |
IDictionary<string, object> | schemeCreationParameters | The parameters for creating scheme of process (defining parameters) |
CreateInstance(CreateInstanceParams)
Create instance of the process.
Declaration
public void CreateInstance(CreateInstanceParams createInstanceParams)
Parameters
Type | Name | Description |
---|
CreateInstanceParams | createInstanceParams | Parameters for creation of an instance of a process |
DeleteInstance(Guid)
Delete instance of the process and all child subprocesses.
Declaration
public void DeleteInstance(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
DeleteInstance(ProcessInstance)
Delete instance of the process and all child subprocesses.
Declaration
public void DeleteInstance(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Instance to delete |
GetProcessInstancesTree(Guid)
Returns process instance tree (root process and subprocesses)
Declaration
public ProcessInstancesTree GetProcessInstancesTree(Guid rootProcessId)
Parameters
Type | Name | Description |
---|
Guid | rootProcessId | Root process id |
Returns
Type | Description |
---|
ProcessInstancesTree | ProcessInstancesTree object |
GetProcessInstancesTree(ProcessInstance)
Returns process instance tree (root process and subprocesses)
Declaration
public ProcessInstancesTree GetProcessInstancesTree(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | ProcessInstance for which tree is builds |
Returns
Type | Description |
---|
ProcessInstancesTree | ProcessInstancesTree object |
CheckAllSubprocessesCompleted(ProcessInstance)
Checks that all subprocesses was completed
Declaration
public bool CheckAllSubprocessesCompleted(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | ProcessInstance for check |
Returns
Type | Description |
---|
bool | true - if there are no active suprocesses |
CheckAllSubprocessesAndParentProcessCompleted(ProcessInstance)
Check that all subprocesses and the parent process reach the same point (completed)
Declaration
public bool CheckAllSubprocessesAndParentProcessCompleted(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
Returns
DeleteAllSubprocesses(ProcessInstance)
Delete all subprocesses for process
Declaration
public int DeleteAllSubprocesses(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
Returns
Type | Description |
---|
int | Count of deleted subprocesses |
SetSchemeIsObsolete(string, Dictionary<string, object>)
Set flag IsObsolete for all schemas of process with specific code and parameters
Declaration
public void SetSchemeIsObsolete(string schemeCode, Dictionary<string, object> parameters)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
Dictionary<string, object> | parameters | The parameters for creating scheme of process |
SetSchemeIsObsolete(string)
Set flag IsObsolete for all schemas of process with specific code
Declaration
public void SetSchemeIsObsolete(string schemeCode)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
SetTimerValue(Guid, string, DateTime)
Sets new value of named timer. Use this method outside of your process.
Declaration
public void SetTimerValue(Guid processId, string timerName, DateTime newValue)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | timerName | Timer name in Scheme |
DateTime | newValue | New value of the timer |
SetTimerValue(ProcessInstance, string, DateTime)
Sets new value of named timer. Use this method inside of your process (in actions).
Declaration
public void SetTimerValue(ProcessInstance processInstance, string timerName, DateTime newValue)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
string | timerName | Timer name in Scheme |
DateTime | newValue | New value of the timer |
ResetTimerValue(Guid, string)
Resets value of named timer. Use this method outside of your process.
Declaration
public void ResetTimerValue(Guid processId, string timerName)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | timerName | Timer name in Scheme |
ResetTimerValue(ProcessInstance, string)
Resets value of named timer. Use this method inside of your process (in actions).
Declaration
public void ResetTimerValue(ProcessInstance processInstance, string timerName)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
string | timerName | Timer name in Scheme |
UpdateSchemeIfObsolete(Guid, bool)
Updating scheme of specific process
Declaration
public void UpdateSchemeIfObsolete(Guid processId, bool ignoreAutoSchemeUpdate = false)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
bool | ignoreAutoSchemeUpdate | If true the attribute of Activity - IsAutoScheme update will be ignored. |
UpdateSchemeIfObsolete(Guid, IDictionary<string, object>, bool)
Updating scheme of specific process
Declaration
public void UpdateSchemeIfObsolete(Guid processId, IDictionary<string, object> parameters, bool ignoreAutoSchemeUpdate = false)
Parameters
Type | Name | Description |
---|
Guid | processId | The process id |
IDictionary<string, object> | parameters | Parameters for creating scheme of process |
bool | ignoreAutoSchemeUpdate | If true the attribute of Activity - IsAutoScheme update will be ignored. |
PreExecuteFromInitialActivity(Guid, bool)
Pre-execution from initial activity of the process
Declaration
public List<ActivityDto> PreExecuteFromInitialActivity(Guid processId, bool ignoreCurrentStateCheck = false)
Parameters
Type | Name | Description |
---|
Guid | processId | The process id |
bool | ignoreCurrentStateCheck | If false and Current State Name and State Name of Current Activity is different (in case of scheme upgrade) do not run pre-execution |
Returns
Type | Description |
---|
List<ActivityDto> | List of activities which will presumably be executed |
PreExecuteFromCurrentActivity(Guid, bool)
Pre-execution from current activity of the process
Declaration
public List<ActivityDto> PreExecuteFromCurrentActivity(Guid processId, bool ignoreCurrentStateCheck = false)
Parameters
Type | Name | Description |
---|
Guid | processId | The process id |
bool | ignoreCurrentStateCheck | If false and Current State Name and State Name of Current Activity is different (in case of scheme upgrade) do not run pre-execution |
Returns
Type | Description |
---|
List<ActivityDto> | List of activities which will presumably be executed |
PreExecute(Guid, string, bool)
Pre-execution from specified activity of the process
Declaration
public List<ActivityDto> PreExecute(Guid processId, string fromActivityName, bool ignoreCurrentStateCheck = false)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | fromActivityName | Activity name which begins pre-execution |
bool | ignoreCurrentStateCheck | If false and Current State Name and State Name of Current Activity is different (in case of scheme upgrade) do not run pre-execution |
Returns
Type | Description |
---|
List<ActivityDto> | List of activities which will presumably be executed |
GetInitialCommands(string, string)
Return the list of commands which is available from initial activity for specified user
Declaration
public IEnumerable<WorkflowCommand> GetInitialCommands(string schemeCode, string identityId)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
string | identityId | User id for whom formed initial commands list |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetInitialCommands(string, string, CultureInfo)
Return the list of commands which is available from initial activity for specified user
Declaration
public IEnumerable<WorkflowCommand> GetInitialCommands(string schemeCode, string identityId, CultureInfo culture)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
string | identityId | User id for whom formed initial commands list |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetInitialCommands(string, IEnumerable<string>, IDictionary<string, object>, string, CultureInfo)
Return the list of commands which is available from initial activity for specified users
Declaration
public IEnumerable<WorkflowCommand> GetInitialCommands(string schemeCode, IEnumerable<string> identityIds, IDictionary<string, object> processParameters = null, string commandNameFilter = null, CultureInfo culture = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
IEnumerable<string> | identityIds | List of User ids for which formed initial commands list |
IDictionary<string, object> | processParameters | Parameters for creating scheme of process |
string | commandNameFilter | Selects only the specified command if not null |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommands(Guid, string)
Return the list of commands which is available from current activity for specified user
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommands(Guid processId, string identityId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | User id for whom formed initial commands list |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommands(Guid, string, CultureInfo)
Return the list of commands which is available from current activity for specified user Async
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommands(Guid processId, string identityId, CultureInfo culture)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | User id for whom formed initial commands list |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommands(Guid, IEnumerable<string>, string, string, CultureInfo, bool)
Return the list of commands which is available from current activity for specified user (async version)
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommands(Guid processId, IEnumerable<string> identityIds, string commandNameFilter = null, string mainIdentityId = null, CultureInfo culture = null, bool conditionCheck = false)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
IEnumerable<string> | identityIds | List of User ids for which formed initial commands list |
string | commandNameFilter | Selects only the specified command if not null |
string | mainIdentityId | User id for priority check of rules |
CultureInfo | culture | Culture to localize command and command parameter names |
bool | conditionCheck | If true then commands with failed condition checks will be excluded |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommands(ProcessInstance, string)
Return the list of commands which is available from current activity for specified user
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommands(ProcessInstance processInstance, string identityId)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
string | identityId | User id for whom formed initial commands list |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommands(ProcessInstance, string, CultureInfo)
Return the list of commands which is available from current activity for specified user Async
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommands(ProcessInstance processInstance, string identityId, CultureInfo culture)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
string | identityId | User id for whom formed initial commands list |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommands(ProcessInstance, IEnumerable<string>, string, string, CultureInfo, bool)
Return the list of commands which is available from current activity for specified user (async version)
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommands(ProcessInstance processInstance, IEnumerable<string> identityIds, string commandNameFilter = null, string mainIdentityId = null, CultureInfo culture = null, bool conditionCheck = false)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
IEnumerable<string> | identityIds | List of User ids for which formed initial commands list |
string | commandNameFilter | Selects only the specified command if not null |
string | mainIdentityId | User id for priority check of rules |
CultureInfo | culture | Culture to localize command and command parameter names |
bool | conditionCheck | If true then commands with failed condition checks will be excluded |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommandsWithConditionCheck(Guid, string)
Return the list of commands which is available from current activity for specified user with conditions check
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommandsWithConditionCheck(Guid processId, string identityId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | User id for whom formed initial commands list |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommandsWithConditionCheck(Guid, string, CultureInfo)
Return the list of commands which is available from current activity for specified user with conditions check
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommandsWithConditionCheck(Guid processId, string identityId, CultureInfo culture)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | User id for whom formed initial commands list |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
GetAvailableCommandsWithConditionCheck(Guid, IEnumerable<string>, string, string, CultureInfo)
Return the list of commands which is available from current activity for specified user with conditions check
Declaration
public IEnumerable<WorkflowCommand> GetAvailableCommandsWithConditionCheck(Guid processId, IEnumerable<string> identityIds, string commandNameFilter = null, string mainIdentityId = null, CultureInfo culture = null)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
IEnumerable<string> | identityIds | List of User ids for which formed initial commands list |
string | commandNameFilter | Selects only the specified command if not null |
string | mainIdentityId | User id for priority check of rules |
CultureInfo | culture | Culture to localize command and command parameter names |
Returns
Type | Description |
---|
IEnumerable<WorkflowCommand> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowCommand" data-throw-if-not-resolved="false"></xref> commands |
ExecuteCommand(WorkflowCommand, string, string)
Execute specified command for specified users
Declaration
public CommandExecutionResult ExecuteCommand(WorkflowCommand command, string identityId, string impersonatedIdentityId)
Parameters
Type | Name | Description |
---|
WorkflowCommand | command | Command to execute |
string | identityId | The user id which execute command |
string | impersonatedIdentityId | The user id for whom executes command (impersonation) |
Returns
Type | Description |
---|
CommandExecutionResult | Result of the execution |
ExecuteCommand(Guid, string, string, WorkflowCommand)
Execute specified command for specified users
Declaration
[Obsolete("Since version 1.5 argument processId not used to determine the process, the process is determined by the command.ProcessId property. \r\nPlease use the following method: public void ExecuteCommand(WorkflowCommand command, string identityId, string impersonatedIdentityId)")]
public CommandExecutionResult ExecuteCommand(Guid processId, string identityId, string impersonatedIdentityId, WorkflowCommand command)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | The user id which execute command |
string | impersonatedIdentityId | The user id for whom executes command (impersonation) |
WorkflowCommand | command | Command to execute |
Returns
Type | Description |
---|
CommandExecutionResult | Result of the execution |
GetInitialState(string, IDictionary<string, object>, CultureInfo)
Return the initial state for process scheme
Declaration
public WorkflowState GetInitialState(string schemeCode, IDictionary<string, object> processParameters = null, CultureInfo culture = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
IDictionary<string, object> | processParameters | Parameters for creating scheme of process |
CultureInfo | culture | Culture to localize state name |
Returns
Type | Description |
---|
WorkflowState | <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> object |
GetCurrentState(Guid, CultureInfo)
Return the current state of specified process
Declaration
public WorkflowState GetCurrentState(Guid processId, CultureInfo culture = null)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
CultureInfo | culture | Culture to localize state name |
Returns
Type | Description |
---|
WorkflowState | <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> object |
GetCurrentStateName(Guid)
Return the current state name of specified process
Declaration
public string GetCurrentStateName(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
string | Name of current state |
GetCurrentActivityName(Guid)
Return the current activity name of specified process
Declaration
public string GetCurrentActivityName(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
string | Current activity name |
GetAvailableStateToSet(Guid)
Get the list of all states which available for set of specified process localized in current culture
Declaration
public IEnumerable<WorkflowState> GetAvailableStateToSet(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
IEnumerable<WorkflowState> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSet(ProcessInstance, CultureInfo)
Get the list of all states which available for set of specified process localized in specified culture
Declaration
public IEnumerable<WorkflowState> GetAvailableStateToSet(ProcessInstance processInstance, CultureInfo culture)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
CultureInfo | culture | Culture to localize state names |
Returns
Type | Description |
---|
IEnumerable<WorkflowState> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSet(ProcessInstance)
Get the list of all states which available for set of specified process in current culture
Declaration
public IEnumerable<WorkflowState> GetAvailableStateToSet(ProcessInstance processInstance)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | Process instance |
Returns
Type | Description |
---|
IEnumerable<WorkflowState> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSet(Guid, CultureInfo)
Get the list of all states which available for set of specified process localized in specified culture
Declaration
public IEnumerable<WorkflowState> GetAvailableStateToSet(Guid processId, CultureInfo culture)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
CultureInfo | culture | Culture to localize state names |
Returns
Type | Description |
---|
IEnumerable<WorkflowState> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSet(string, IDictionary<string, object>)
Get the list of all states which available for set of specified scheme in current culture
Declaration
public IEnumerable<WorkflowState> GetAvailableStateToSet(string schemeCode, IDictionary<string, object> parameters = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
IDictionary<string, object> | parameters | The parameters for creating scheme of process |
Returns
Type | Description |
---|
IEnumerable<WorkflowState> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
GetAvailableStateToSet(string, CultureInfo, IDictionary<string, object>)
Get the list of all states which available for set of specified scheme in specified culture
Declaration
public IEnumerable<WorkflowState> GetAvailableStateToSet(string schemeCode, CultureInfo culture, IDictionary<string, object> parameters = null)
Parameters
Type | Name | Description |
---|
string | schemeCode | Code of the scheme |
CultureInfo | culture | Culture to localize state names |
IDictionary<string, object> | parameters | The parameters for creating scheme of process |
Returns
Type | Description |
---|
IEnumerable<WorkflowState> | List of <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowState" data-throw-if-not-resolved="false"></xref> objects |
SetState(Guid, string, string, string, IDictionary<string, object>, bool)
Set specified state for specified process
Declaration
[Obsolete("Use SetState(SetStateParams setStateParams) method instead of this")]
public void SetState(Guid processId, string identityId, string impersonatedIdentityId, string stateName, IDictionary<string, object> parameters = null, bool preventExecution = false)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | identityId | The user id which set the state |
string | impersonatedIdentityId | The user id for whom sets the state (impersonation) |
string | stateName | State name to set |
IDictionary<string, object> | parameters | Dictionary of ProcessInstance parameters which transferred to executed actions |
bool | preventExecution | Actions due to transition process do not executed if true |
SetState(SetStateParams)
Set specified state for specified process (async version)
Declaration
public void SetState(SetStateParams setStateParams)
Parameters
Type | Name | Description |
---|
SetStateParams | setStateParams | Parameters of setting state<xref href="OptimaJet.Workflow.Core.Runtime.SetStateParams" data-throw-if-not-resolved="false"></xref> |
SetActivityWithoutExecution(ActivityDefinition, ProcessInstance, bool)
Set specified activity as current without execution of the implementation of the activity
Declaration
public void SetActivityWithoutExecution(ActivityDefinition activityToSet, ProcessInstance processInstance, bool doNotSetRunningStatus = false)
Parameters
Type | Name | Description |
---|
ActivityDefinition | activityToSet | Activity to set |
ProcessInstance | processInstance | Process instance for set activity as current |
bool | doNotSetRunningStatus | The status of the process - <xref href="OptimaJet.Workflow.Core.Persistence.ProcessStatus.Running" data-throw-if-not-resolved="false"></xref> will not be set if true |
SetActivityWithExecution(string, string, IDictionary<string, object>, ActivityDefinition, ProcessInstance, bool)
Set specified activity as current and executing the implementation of the activity
Declaration
public void SetActivityWithExecution(string identityId, string impersonatedIdentityId, IDictionary<string, object> parameters, ActivityDefinition activityToSet, ProcessInstance processInstance, bool doNotSetRunningStatus = false)
Parameters
Type | Name | Description |
---|
string | identityId | The user id which set the activity |
string | impersonatedIdentityId | The user id for whom sets the activity (impersonation) |
IDictionary<string, object> | parameters | Dictionary of ProcessInstance parameters which transferred to executed actions |
ActivityDefinition | activityToSet | Activity to set |
ProcessInstance | processInstance | Process instance for set activity as current |
bool | doNotSetRunningStatus | The status of the process - <xref href="OptimaJet.Workflow.Core.Persistence.ProcessStatus.Running" data-throw-if-not-resolved="false"></xref> will not be set if true |
GetProcessScheme(Guid)
Get procees definition (parsed scheme) for specified process
Declaration
public ProcessDefinition GetProcessScheme(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
ProcessDefinition | <xref href="OptimaJet.Workflow.Core.Model.ProcessDefinition" data-throw-if-not-resolved="false"></xref> object |
GetProcessStatus(Guid)
Get status of specified process
Declaration
public ProcessStatus GetProcessStatus(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
ProcessStatus | <xref href="OptimaJet.Workflow.Core.Persistence.ProcessStatus" data-throw-if-not-resolved="false"></xref> object |
GetProcessInstanceAndFillProcessParameters(Guid)
Get process instance with all parameters for specified process id
Declaration
public ProcessInstance GetProcessInstanceAndFillProcessParameters(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
Returns
Type | Description |
---|
ProcessInstance | <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref> object |
SetPersistentProcessParameter(Guid, string, object)
Set single persistent parameter in the process
Declaration
public void SetPersistentProcessParameter(Guid processId, string parameterName, object parameterValue)
Parameters
Type | Name | Description |
---|
Guid | processId | Process id |
string | parameterName | Parameter name |
object | parameterValue | |
GetProcessHistory(Guid, Paging)
Returns the history of process
Declaration
public List<ProcessHistoryItem> GetProcessHistory(Guid processId, Paging paging = null)
Parameters
Type | Name | Description |
---|
Guid | processId | Id of the process |
Paging | paging | |
Returns
Type | Description |
---|
List<ProcessHistoryItem> | |
GetProcessHistoryCount(Guid)
Returns count of process history (async version)
Declaration
public int GetProcessHistoryCount(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Id of the process |
Returns
GetProcessTimers(Guid)
Returns list of timers for a process
Declaration
public IEnumerable<ProcessTimer> GetProcessTimers(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | Id of the process |
Returns
Type | Description |
---|
IEnumerable<ProcessTimer> | |
CheckIdentity(ProcessInstance, string, string, string)
Declaration
public bool CheckIdentity(ProcessInstance processInstance, string identityId, string ruleName, string parameter)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
string | identityId | |
string | ruleName | |
string | parameter | |
Returns
CheckIdentityByActor(ProcessInstance, string, string)
Declaration
public bool CheckIdentityByActor(ProcessInstance processInstance, string identityId, string actorName)
Parameters
Type | Name | Description |
---|
ProcessInstance | processInstance | |
string | identityId | |
string | actorName | |
Returns
Shutdown(int)
Switches off the runtime. Switches off API, waits for API calls to be completed. Switches off all timers.
IMPORTANT! Call this method from the SYNCHRONOUS method only.
Declaration
public void Shutdown(int timeout = -1)
Parameters
Type | Name | Description |
---|
int | timeout | Shutdown timeout |
GetSchemeCodes(List<string>)
Returns the list of scheme codes into which the scheme with the given tags. If tags are null returns all scheme codes.
Declaration
public List<string> GetSchemeCodes(List<string> tags = null)
Parameters
Type | Name | Description |
---|
List<string> | tags | |
Returns
Type | Description |
---|
List<string> | |
ExecuteCommandWithRestrictionCheck(WorkflowCommand, string, string)
Execute specified command for specified users with actor restrictions check
Declaration
public CommandExecutionResult ExecuteCommandWithRestrictionCheck(WorkflowCommand command, string identityId, string impersonatedIdentityId)
Parameters
Type | Name | Description |
---|
WorkflowCommand | command | Command to execute |
string | identityId | The user id which execute command |
string | impersonatedIdentityId | The user id for whom executes command (impersonation) |
Returns
Type | Description |
---|
CommandExecutionResult | Result of the execution |
Resume(Guid)
Resumes the process from the current activity. In this case, the activity itself is not executed, and the process goes on if it can.
Declaration
public ResumeResult Resume(Guid processId)
Parameters
Type | Name | Description |
---|
Guid | processId | |
Returns
Type | Description |
---|
ResumeResult | |
Resume(ResumeParams)
Resumes the process from the current or specific activity. In this case, the activity itself is not executed, and the process goes on if it can.
Declaration
public ResumeResult Resume(ResumeParams resumeParams)
Parameters
Type | Name | Description |
---|
ResumeParams | resumeParams | |
Returns
Type | Description |
---|
ResumeResult | |
Fields
Plugins
All registered plugins
Declaration
public List<IWorkflowPlugin> Plugins
Returns
Type | Description |
---|
List<IWorkflowPlugin> | |
CustomActivities
All custom activities
Declaration
public List<ActivityBase> CustomActivities
Returns
Type | Description |
---|
List<ActivityBase> | |
CustomConditions
Declaration
public List<FormBase> CustomConditions
Returns
Type | Description |
---|
List<FormBase> | |
Events
GlobalCodeActionsCompiled
Raises after global Code Actions compilation
Declaration
public event EventHandler<CodeActionsCompiledEventArgs> GlobalCodeActionsCompiled
Returns
Type | Description |
---|
EventHandler<CodeActionsCompiledEventArgs> | |
OnNeedDeterminingParameters
Raises when runtime need to obtain parameters for creating the scheme of the process
Declaration
public event EventHandler<NeedDeterminingParametersEventArgs> OnNeedDeterminingParameters
Returns
Type | Description |
---|
EventHandler<NeedDeterminingParametersEventArgs> | |
OnSchemaWasChanged
Raises when the scheme of the process was changed
Declaration
public event EventHandler<SchemaWasChangedEventArgs> OnSchemaWasChanged
Returns
Type | Description |
---|
EventHandler<SchemaWasChangedEventArgs> | |
OnWorkflowError
Raises when workflow error occurred
Declaration
public event EventHandler<WorkflowErrorEventArgs> OnWorkflowError
Returns
Type | Description |
---|
EventHandler<WorkflowErrorEventArgs> | |
OnStartingTransitionNotFound
Raises when runtime can not find starting transition of a subprocess in a new root scheme
Declaration
public event EventHandler<StartingTransitionNotFoundEventArgs> OnStartingTransitionNotFound
Returns
Type | Description |
---|
EventHandler<StartingTransitionNotFoundEventArgs> | |
ProcessActivityChanged
Raises when current activity of a process was changed
Declaration
[Obsolete("Use OnProcessActivityChanged instead of this.")]
public event EventHandler<ProcessActivityChangedEventArgs> ProcessActivityChanged
Returns
Type | Description |
---|
EventHandler<ProcessActivityChangedEventArgs> | |
OnProcessActivityChanged
Raises when current activity of a process was changed
Declaration
public event EventHandler<ProcessActivityChangedEventArgs> OnProcessActivityChanged
Returns
Type | Description |
---|
EventHandler<ProcessActivityChangedEventArgs> | |
BeforeActivityExecution
Raises before execution of choosen activity
Declaration
[Obsolete("Use OnBeforeActivityExecution instead of this.")]
public event EventHandler<BeforeActivityExecutionEventArgs> BeforeActivityExecution
Returns
Type | Description |
---|
EventHandler<BeforeActivityExecutionEventArgs> | |
OnBeforeActivityExecution
Raises before execution of choosen activity
Declaration
public event EventHandler<BeforeActivityExecutionEventArgs> OnBeforeActivityExecution
Returns
Type | Description |
---|
EventHandler<BeforeActivityExecutionEventArgs> | |
NeedTimerValue
Raises when the timer value must be obtained
Declaration
[Obsolete("Use OnNeedTimerValue instead of this.")]
public event EventHandler<NeedTimerValueEventArgs> NeedTimerValue
Returns
Type | Description |
---|
EventHandler<NeedTimerValueEventArgs> | |
OnNeedTimerValue
Raises when the timer value must be obtained
Declaration
public event EventHandler<NeedTimerValueEventArgs> OnNeedTimerValue
Returns
Type | Description |
---|
EventHandler<NeedTimerValueEventArgs> | |
ProcessStatusChanged
Raises when the status of the procees ProcessStatus was changed
Declaration
[Obsolete("Use OnProcessStatusChanged instead of this.")]
public event EventHandler<ProcessStatusChangedEventArgs> ProcessStatusChanged
Returns
Type | Description |
---|
EventHandler<ProcessStatusChangedEventArgs> | |
OnProcessStatusChanged
Raises when the status of the procees ProcessStatus was changed
Declaration
public event EventHandler<ProcessStatusChangedEventArgs> OnProcessStatusChanged
Returns
Type | Description |
---|
EventHandler<ProcessStatusChangedEventArgs> | |
OnRuntimeStart
Raises just after the runtime was started
Declaration
public event EventHandler<RuntimeStartEventArgs> OnRuntimeStart
Returns
Type | Description |
---|
EventHandler<RuntimeStartEventArgs> | |
OnRuntimeShutdown
Raises just before the runtime switched off its API
Declaration
public event EventHandler<EventArgs> OnRuntimeShutdown
Returns
Type | Description |
---|
EventHandler<EventArgs> | |
OnNeedDeterminingParametersAsync
Raises when runtime need to obtain parameters for creating the scheme of the process
Declaration
public event AsyncEventHandler<NeedDeterminingParametersEventArgs> OnNeedDeterminingParametersAsync
Returns
OnSchemaWasChangedAsync
Raises when the scheme of the process was changed
Declaration
public event AsyncEventHandler<SchemaWasChangedEventArgs> OnSchemaWasChangedAsync
Returns
OnWorkflowErrorAsync
Raises when workflow error occurred
Declaration
public event AsyncEventHandler<WorkflowErrorEventArgs> OnWorkflowErrorAsync
Returns
OnStartingTransitionNotFoundAsync
Raises when runtime can not find starting transition of a subprocess in a new root scheme
Declaration
public event AsyncEventHandler<StartingTransitionNotFoundEventArgs> OnStartingTransitionNotFoundAsync
Returns
OnProcessActivityChangedAsync
Raises when current activity of a process was changed
Declaration
public event AsyncEventHandler<ProcessActivityChangedEventArgs> OnProcessActivityChangedAsync
Returns
OnBeforeActivityExecutionAsync
Raises before execution of choosen activity
Declaration
public event AsyncEventHandler<BeforeActivityExecutionEventArgs> OnBeforeActivityExecutionAsync
Returns
OnProcessStatusChangedAsync
Raises when the status of the procees ProcessStatus was changed
Declaration
public event AsyncEventHandler<ProcessStatusChangedEventArgs> OnProcessStatusChangedAsync
Returns
OnNeedTimerValueAsync
Raises when the timer value must be obtained
Declaration
public event AsyncEventHandler<NeedTimerValueEventArgs> OnNeedTimerValueAsync
Returns
OnRuntimeStartAsync
Raises just after the runtime was started
Declaration
public event AsyncEventHandler<RuntimeStartEventArgs> OnRuntimeStartAsync
Returns
OnRuntimeShutdownAsync
Raises just before the runtime switched off its API
Declaration
public event AsyncEventHandler<EventArgs> OnRuntimeShutdownAsync
Returns
Extension Methods
- WorkflowRuntimeBulkApi.BulkCreateInstance(WorkflowRuntime, BulkCreateInstancePrams, BulkOperationOptions)
- WorkflowRuntimeBulkApi.BulkCreateInstance(WorkflowRuntime, List<BulkCreateInstancePrams>, BulkOperationOptions)
- WorkflowRuntimeBulkApi.BulkCreateInstanceAsync(WorkflowRuntime, BulkCreateInstancePrams, BulkOperationOptions)
- WorkflowRuntimeBulkApi.BulkCreateInstanceAsync(WorkflowRuntime, BulkCreateInstancePrams, CancellationToken, BulkOperationOptions)
- WorkflowRuntimeBulkApi.BulkCreateInstanceAsync(WorkflowRuntime, List<BulkCreateInstancePrams>, BulkOperationOptions)
- WorkflowRuntimeBulkApi.BulkCreateInstanceAsync(WorkflowRuntime, List<BulkCreateInstancePrams>, CancellationToken, BulkOperationOptions)
- WorkflowRuntimeConfigurationExtension.AsMultiServer(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.AsMultiServer(WorkflowRuntime, IMultiServerSettingsSource)
- WorkflowRuntimeConfigurationExtension.AsSingleServer(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.AsSingleServer(WorkflowRuntime, ISingleServerSettingsSource)
- WorkflowRuntimeConfigurationExtension.AsSingleServer(WorkflowRuntime, SingleServerSettings)
- WorkflowRuntimeConfigurationExtension.AttachDeterminingParametersGetter(WorkflowRuntime, EventHandler<NeedDeterminingParametersEventArgs>)
- WorkflowRuntimeConfigurationExtension.ClearActionProvider(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ClearDesignerAutocompleteProvider(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ClearDesignerParameterFormatProvider(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ClearExternalParametersProvider(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ClearLocalizationProvider(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ClearProcessRestorers(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ClearRuleProvider(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.CodeActionsDebugOn(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ColdStart(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ColdStart(WorkflowRuntime, bool, out Dictionary<string, string>)
- WorkflowRuntimeConfigurationExtension.ColdStartAsync(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.ColdStartAsync(WorkflowRuntime, bool)
- WorkflowRuntimeConfigurationExtension.DeserializeParameter(WorkflowRuntime, string, Type)
- WorkflowRuntimeConfigurationExtension.DisableCodeActions(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.EnableCodeActions(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.RegisterAssemblyForCodeActions(WorkflowRuntime, Assembly, bool, Func<Type, bool>)
- WorkflowRuntimeConfigurationExtension.SerializeParameter(WorkflowRuntime, object, Type)
- WorkflowRuntimeConfigurationExtension.SetCancellationTokenHandling(WorkflowRuntime, CancellationTokenHandling)
- WorkflowRuntimeConfigurationExtension.SetDefaultCalendar(WorkflowRuntime, string)
- WorkflowRuntimeConfigurationExtension.SetExecutionSearchOrder(WorkflowRuntime, ExecutionSearchOrder)
- WorkflowRuntimeConfigurationExtension.SetIgnoreMissingExecutionItems(WorkflowRuntime, bool)
- WorkflowRuntimeConfigurationExtension.SetParameterSerializerSettings(WorkflowRuntime, JsonSerializerSettings)
- WorkflowRuntimeConfigurationExtension.Start(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.Start(WorkflowRuntime, bool, out Dictionary<string, string>)
- WorkflowRuntimeConfigurationExtension.StartAsync(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.StartAsync(WorkflowRuntime, bool)
- WorkflowRuntimeConfigurationExtension.SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOff(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn(WorkflowRuntime, EventHandler<NeedDeterminingParametersEventArgs>)
- WorkflowRuntimeConfigurationExtension.WithActionProvider(WorkflowRuntime, IWorkflowActionProvider, List<string>)
- WorkflowRuntimeConfigurationExtension.WithBuilder(WorkflowRuntime, IWorkflowBuilder)
- WorkflowRuntimeConfigurationExtension.WithCalendars(WorkflowRuntime, params ICalendar[])
- WorkflowRuntimeConfigurationExtension.WithCustomActivities(WorkflowRuntime, List<ActivityBase>)
- WorkflowRuntimeConfigurationExtension.WithCustomActivity(WorkflowRuntime, ActivityBase)
- WorkflowRuntimeConfigurationExtension.WithCustomConditions(WorkflowRuntime, List<FormBase>)
- WorkflowRuntimeConfigurationExtension.WithDefaultBuilder<TSchemeMedium>(WorkflowRuntime)
- WorkflowRuntimeConfigurationExtension.WithDesignerAutocompleteProvider(WorkflowRuntime, IDesignerAutocompleteProvider, List<string>)
- WorkflowRuntimeConfigurationExtension.WithDesignerParameterFormatProvider(WorkflowRuntime, IDesignerParameterFormatProvider, List<string>)
- WorkflowRuntimeConfigurationExtension.WithExpressionsCompilerOptions(WorkflowRuntime, ExpressionsCompilerOptions)
- WorkflowRuntimeConfigurationExtension.WithExternalParametersProvider(WorkflowRuntime, IWorkflowExternalParametersProvider, List<string>)
- WorkflowRuntimeConfigurationExtension.WithLocalizationProvider(WorkflowRuntime, ILocalizationProvider)
- WorkflowRuntimeConfigurationExtension.WithPersistenceProvider(WorkflowRuntime, IPersistenceProvider)
- WorkflowRuntimeConfigurationExtension.WithPlugin(WorkflowRuntime, IWorkflowPlugin, List<string>)
- WorkflowRuntimeConfigurationExtension.WithPlugins(WorkflowRuntime, List<string>, params IWorkflowPlugin[])
- WorkflowRuntimeConfigurationExtension.WithProcessLogger(WorkflowRuntime, IProcessLogProvider)
- WorkflowRuntimeConfigurationExtension.WithProcessRestorer(WorkflowRuntime, IProcessRestorer)
- WorkflowRuntimeConfigurationExtension.WithRuleProvider(WorkflowRuntime, IWorkflowRuleProvider, List<string>)
- WorkflowRuntimeConfigurationExtension.WithRuntimeSettings(WorkflowRuntime, WorkflowRuntimeSettings)
- WorkflowRuntimeConfigurationExtension.WithServiceRunner(WorkflowRuntime, IWorkflowServiceRunner)
- WorkflowRuntimeConfigurationExtension.WithTimerManager(WorkflowRuntime, ITimerManager)
- WorkflowRuntimeGetActorsApi.GetAllActorsForAllCommandTransitions(WorkflowRuntime, Guid, bool, string)
- WorkflowRuntimeGetActorsApi.GetAllActorsForAllCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsApi.GetAllActorsForCommandTransitions(WorkflowRuntime, ProcessInstance, List<TransitionClassifier>)
- WorkflowRuntimeGetActorsApi.GetAllActorsForCommandTransitions(WorkflowRuntime, TreeSearchFilter, List<TransitionClassifier>)
- WorkflowRuntimeGetActorsApi.GetAllActorsForCommandTransitions(WorkflowRuntime, Guid, List<TransitionClassifier>, bool, string)
- WorkflowRuntimeGetActorsApi.GetAllActorsForCommandTransitionsAsync(WorkflowRuntime, ProcessInstance, List<TransitionClassifier>, CancellationToken)
- WorkflowRuntimeGetActorsApi.GetAllActorsForCommandTransitionsAsync(WorkflowRuntime, TreeSearchFilter, List<TransitionClassifier>, CancellationToken)
- WorkflowRuntimeGetActorsApi.GetAllActorsForCommandTransitionsAsync(WorkflowRuntime, Guid, List<TransitionClassifier>, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsApi.GetAllActorsForDirectAndUndefinedCommandTransitions(WorkflowRuntime, Guid, bool, string)
- WorkflowRuntimeGetActorsApi.GetAllActorsForDirectAndUndefinedCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsApi.GetAllActorsForDirectCommandTransitions(WorkflowRuntime, Guid, bool, string)
- WorkflowRuntimeGetActorsApi.GetAllActorsForDirectCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsApi.GetAllActorsForReverseCommandTransitions(WorkflowRuntime, Guid, bool, string)
- WorkflowRuntimeGetActorsApi.GetAllActorsForReverseCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForAllCommandTransitions(WorkflowRuntime, Guid, bool, string)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForAllCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForCommandTransitions(WorkflowRuntime, ProcessInstance, List<TransitionClassifier>)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForCommandTransitions(WorkflowRuntime, TreeSearchFilter, List<TransitionClassifier>)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForCommandTransitions(WorkflowRuntime, Guid, List<TransitionClassifier>, bool, string)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForCommandTransitionsAsync(WorkflowRuntime, ProcessInstance, List<TransitionClassifier>, CancellationToken)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForCommandTransitionsAsync(WorkflowRuntime, TreeSearchFilter, List<TransitionClassifier>, CancellationToken)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForCommandTransitionsAsync(WorkflowRuntime, Guid, List<TransitionClassifier>, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForDirectAndUndefinedCommandTransitions(WorkflowRuntime, Guid, bool, string)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForDirectAndUndefinedCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForDirectCommandTransitions(WorkflowRuntime, Guid, bool, string)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForDirectCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForReverseCommandTransitions(WorkflowRuntime, Guid, bool, string)
- WorkflowRuntimeGetActorsWithCommandsApi.GetAllActorsWithCommandsForReverseCommandTransitionsAsync(WorkflowRuntime, Guid, bool, string, CancellationToken)
- WorkflowRuntimeTimeExtensions.ToRuntimeTime(WorkflowRuntime, DateTime)
- WorkflowRuntimeTimeExtensions.ToRuntimeTime(WorkflowRuntime, DateTime?)
- Designer.DesignerAPI(WorkflowRuntime, NameValueCollection, out bool, Stream, bool)
- Designer.DesignerAPI(WorkflowRuntime, NameValueCollection, Stream, bool)
- Designer.DesignerAPIAsync(WorkflowRuntime, NameValueCollection, Stream, bool)
- Extensions.CastAs<T>(object)
- Extensions.ExtendedEquals(object, object)
- Extensions.TryCast<T>(object, out T)