Class OfflineApi
Inheritance
↳ object
↳ OfflineApi
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Runtime
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic sealed class OfflineApi
Constructors
OfflineApi(WorkflowRuntime)
Declarationpublic OfflineApi(WorkflowRuntime runtimeOwner)
Type | Name | Description |
---|---|---|
WorkflowRuntime | runtimeOwner |
Methods
GetApprovalMapAsync(ProcessDefinition, Func<TransitionDefinition, Task<bool>>, bool)
Get map of possible approval by process scheme
Declarationpublic Task<Dictionary<string, ActivityDto>> GetApprovalMapAsync(ProcessDefinition scheme, Func<TransitionDefinition, Task<bool>> predicate = null, bool ignoreSubprocesses = false)
Type | Name | Description |
---|---|---|
ProcessDefinition | scheme | |
Func<TransitionDefinition, Task<bool>> | predicate | Additional validation for each transition |
bool | ignoreSubprocesses | Ignore or not subprocesses on mapping |
Type | Description |
---|---|
Task<Dictionary<string, ActivityDto>> | Collection of activity (<xref href="OptimaJet.Workflow.Core.Model.ApprovalMap.ActivityDto" data-throw-if-not-resolved="false"></xref>) and his transition (<xref href="OptimaJet.Workflow.Core.Model.ApprovalMap.TransitionDto" data-throw-if-not-resolved="false"></xref>) in another activity |
GetApprovalMapAsync(ProcessInstance, string)
Get map of possible approval by ProcessInstance for identity Id
Declarationpublic Task<Dictionary<string, ActivityDto>> GetApprovalMapAsync(ProcessInstance pi, string identityId)
Type | Name | Description |
---|---|---|
ProcessInstance | pi | Process Instance |
string | identityId | User id |
Type | Description |
---|---|
Task<Dictionary<string, ActivityDto>> | Collection of activity (<xref href="OptimaJet.Workflow.Core.Model.ApprovalMap.ActivityDto" data-throw-if-not-resolved="false"></xref>) and his transition (<xref href="OptimaJet.Workflow.Core.Model.ApprovalMap.TransitionDto" data-throw-if-not-resolved="false"></xref>) in another activity for <code data-dev-comment-type="paramref" class="paramref">identityId</code> |
ExecuteSomeCommandsAsync(IEnumerable<Command>)
Try to execute several commands grouped by processId and sorted by DateTime
Declarationpublic Task<List<CommandExecutionResult>> ExecuteSomeCommandsAsync(IEnumerable<Command> commands)
Type | Name | Description |
---|---|---|
IEnumerable<Command> | commands | Collection command for execute. In parameter ProcessId of <xref href="OptimaJet.Workflow.Core.Model.ApprovalMap.Command" data-throw-if-not-resolved="false"></xref> is required for success execution |
Type | Description |
---|---|
Task<List<CommandExecutionResult>> | Result of execution for each command in some order like input commands |
ExecuteSomeCommandsAsync(Guid, IEnumerable<Command>)
Try to execute several commands of one process sorted by DateTime
Declarationpublic Task<List<CommandExecutionResult>> ExecuteSomeCommandsAsync(Guid processId, IEnumerable<Command> commands)
Type | Name | Description |
---|---|---|
Guid | processId | Id of <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref> for which the commands are executed |
IEnumerable<Command> | commands | Collection command for execute. In this method parameter ProcessId of <xref href="OptimaJet.Workflow.Core.Model.ApprovalMap.Command" data-throw-if-not-resolved="false"></xref> is ignored |
Type | Description |
---|---|
Task<List<CommandExecutionResult>> | Result of execution for each command in some order like input commands |