Interface IWorkflowTenant
OptimaJet.Workflow.Api.IWorkflowTenant
Defines a workflow tenant in a Workflow Engine Web API. In a single-tenant setup registered as a single instance with WorkflowApiConstants.SingleTenantId as its only id.
Namespace: OptimaJet.Workflow.Api
public interface IWorkflowTenantProperties
Name
Type
Ids #IReadOnlyCollection<String>All logical tenant ids that map to this tenant instance.
WorkflowRuntime #WorkflowRuntimeThe workflow runtime instance for this tenant.
DataProvider #IDataProviderThe data provider for this tenant.
LifecycleOwnership #WorkflowTenantLifecycleOwnershipLifecycle ownership of the tenant, indicating whether the tenant is managed by the workflow engine or externally.
Methods
Task StartAsync() #Starts the tenant lifecycle before the tenant is published in the tenant registry.
Returns
Type
Description
TaskTask ShutdownAsync() #Gracefully shuts down the tenant after it is removed from the tenant registry and no active snapshot uses it.
Returns
Type
Description
Task