Workflow Engine .NET

Assembly: OptimaJet.Workflow.Api

Class WorkflowTenant

OptimaJet.Workflow.Api.WorkflowTenant

A basic implementation of IWorkflowTenant.

public class WorkflowTenant : IWorkflowTenant

Inheritance

  • Object

Implemented Interfaces

Constructors

public WorkflowTenant(IEnumerable<string> ids, WorkflowRuntime runtime, IDataProvider dataProvider, WorkflowTenantLifecycleOwnership lifecycleOwnership) #
Initializes a new instance of the WorkflowTenant class with the specified ids, runtime, and data provider options.

Parameters

Name
Type
Description
ids
IEnumerable<String>
The logical tenant ids that map to this tenant instance.
runtime
WorkflowRuntime
The workflow runtime instance for this tenant.
dataProvider
IDataProvider
The data provider for this tenant.
lifecycleOwnership
WorkflowTenantLifecycleOwnership
The lifecycle ownership of the tenant.

Properties

Name
Type
Ids #
IReadOnlyCollection<String>
All logical tenant ids that map to this tenant instance.
WorkflowRuntime #
WorkflowRuntime
The workflow runtime instance for this tenant.
DataProvider #
IDataProvider
The data provider for this tenant.
LifecycleOwnership #
WorkflowTenantLifecycleOwnership
Lifecycle ownership of the tenant, indicating whether the tenant is managed by the workflow engine or externally.

Methods

public Task StartAsync() #
Starts the tenant lifecycle before the tenant is published in the tenant registry.

Returns

Type
Description
Task
public Task ShutdownAsync() #
Gracefully shuts down the tenant after it is removed from the tenant registry and no active snapshot uses it.

Returns

Type
Description
Task