Class OfflineApi
OptimaJet.Workflow.Core.Runtime.OfflineApi
Namespace: OptimaJet.Workflow.Core.Runtime
public sealed class OfflineApiInheritance
- System.Object
Constructors
public OfflineApi(WorkflowRuntime runtimeOwner) #Parameters
Name
Type
Description
runtimeOwnerWorkflowRuntimeMethods
public Task<Dictionary<string, ActivityDto>> GetApprovalMapAsync(ProcessDefinition scheme, Func<TransitionDefinition, Task<bool>> predicate = null, bool ignoreSubprocesses = false) #Get map of possible approval by process scheme
Parameters
Name
Type
Description
schemeProcessDefinitionpredicateFunc<Boolean>Additional validation for each transition
ignoreSubprocessesBooleanIgnore or not subprocesses on mapping
Returns
Type
Description
Task<ActivityDto>Collection of activity (ActivityDto) and his transition (TransitionDto) in another activity
public Task<Dictionary<string, ActivityDto>> GetApprovalMapAsync(ProcessInstance pi, string identityId) #Get map of possible approval by ProcessInstance for identity Id
Parameters
Name
Type
Description
piProcessInstanceProcess Instance
identityIdStringUser id
Returns
Type
Description
Task<ActivityDto>Collection of activity (ActivityDto) and his transition (TransitionDto) in another activity for
identityIdpublic Task<List<CommandExecutionResult>> ExecuteSomeCommandsAsync(IEnumerable<Command> commands) #Try to execute several commands grouped by processId and sorted by DateTime
Parameters
Name
Type
Description
commandsIEnumerable<Command>Collection command for execute. In parameter ProcessId of Command is required for success execution
Returns
Type
Description
Task<CommandExecutionResult>Result of execution for each command in some order like input commands
public Task<List<CommandExecutionResult>> ExecuteSomeCommandsAsync(Guid processId, IEnumerable<Command> commands) #Try to execute several commands of one process sorted by DateTime
Parameters
Name
Type
Description
commandsIEnumerable<Command>Collection command for execute. In this method parameter ProcessId of Command is ignored
Returns
Type
Description
Task<CommandExecutionResult>Result of execution for each command in some order like input commands