UniFi.Workflow.Features
1.0.1-rc3.5.0-1
This is a prerelease version of UniFi.Workflow.Features.
dotnet add package UniFi.Workflow.Features --version 1.0.1-rc3.5.0-1
NuGet\Install-Package UniFi.Workflow.Features -Version 1.0.1-rc3.5.0-1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UniFi.Workflow.Features" Version="1.0.1-rc3.5.0-1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UniFi.Workflow.Features" Version="1.0.1-rc3.5.0-1" />
<PackageReference Include="UniFi.Workflow.Features" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add UniFi.Workflow.Features --version 1.0.1-rc3.5.0-1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: UniFi.Workflow.Features, 1.0.1-rc3.5.0-1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=UniFi.Workflow.Features&version=1.0.1-rc3.5.0-1&prerelease
#tool nuget:?package=UniFi.Workflow.Features&version=1.0.1-rc3.5.0-1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
UniFi Workflow Features
Provides a set of wrapper features Elsa Workflow 3 setup Server, including custom multitenancy, custom persistence, open telemetry, distributed locking, and more for UniFi Platform.
Installation
PM> NuGet\Install-Package UniFi.Workflow.Features -Version 1.0.1-rc3.5.0-1
Setup :
- Create proj Asp.Net Core Web API
- Add Configuration in appsettings.json
"WorkflowConfiguration": {
"WorkflowPersistence": {
"PersistenceORM": 2, // 0 = Memory, 1 = EntityFrameworkCore, 2 = PetaPoco
"PersistenceProvider": 0, // // 0 = PostgresSQL, 1 = SqlServer, 2 = SqlLite
"ConnectionStrings": {
"PostgresSQL": "Server=127.0.0.1;Port=5432;Database=elsa;User Id=postgres;Password=password; Timeout=30; Pooling=False; No Reset On Close=True",
"SqlServer": "Server=localhost,1433;Initial Catalog=Elsa;User=sa;Password=!Elsa2025@;Encrypt=false;PersistSecurityInfo=false",
"MySql": "Server=localhost;Database=elsa;Uid=admin;Pwd=password;",
"SqlLite": "Data Source=App_Data/elsa.sqlite.db;Cache=Shared;",
"RabbitMq": "rabbitmq://api:admin@test.com",
"Redis": "localhost:6379,abortConnect=false",
"AzureServiceBus": ""
}
},
"WorkflowIdentity": {
"Tokens": {
"SigningKey": "054d12a894250b1fac68adf67e56bc36db55141b1dc4b7e382fd4876ffffc4d0",
"AccessTokenLifetime": "1:00:00:00",
"RefreshTokenLifetime": "1:00:10:00"
},
"Roles": [
{
"Id": "admin",
"Name": "Administrator",
"Permissions": [
"*"
],
"TenantId": "demo"
}
],
"Users": [
{
"Id": "a2323f46-42db-4e15-af8b-94238717d817",
"Name": "admin",
"HashedPasswordSalt": "JEy9kBlhHCNsencitRHlGxmErmSgY+FVyMJulCH27Ds=",
"HashedPassword": "TfKzh9RLix6FPcCNeHLkGrysFu3bYxqzGqduNdi8v1U=",
"Roles": [
"admin"
],
"TenantId": "public"
},
{
"Id": "b0cd0e506e713a9d",
"Name": "demo",
"Roles": [
"admin"
],
"HashedPassword": "8B0fFK/f/kk9GkVtzXfRJ2Y6cNyYVvLTfKouWcAcuPg=",
"HashedPasswordSalt": "xlNWvEng8fRvo0McyJopbRJ2MJ9NIYV/4IY5dOZeiiw=",
"TenantId": "demo"
}
],
"Applications": [
{
"Id": "e9cb5b6d6eb9d9d0",
"Name": "postman",
"Roles": [
"admin"
],
"ClientId": "pz6KkQn1SNfMJrVa",
"ClientSecret": "0ip(9C0RdG\\Q4>60V&yh*2Wfwg3P$mf3",
"HashedApiKey": "l6ezFYG3wqlvqzpv21P/F7rIU+qgcWubTDMDQ3JAESI=",
"HashedApiKeySalt": "J3CBCKnV1TIbNEMXTNO3l2UKVPoFEWhkf7T9b427gzY=",
"HashedClientSecret": "+GdqLrxOwAOzQUZupIWiOfM7OWQMWXoh8atdBUjbk/Y=",
"HashedClientSecretSalt": "b5n8JHQB474NAIUD0N7kjznDuZz5GDmqY3xzvRMM024=",
"TenantId": "public"
}
]
},
"WorkflowManagement": {
"UseReadOnlyMode": false,
"LogPersistenceMode": 0 // 0 = Inherit, 1 = Include, 2 = Exclude
},
"WorkflowRuntime": {
"RuntimeType": 0, // 0 = Default, 1 = Distributed, 2 = ProtoActor"
"DistributedLockProvider": 0, // 0 = Noop, 1 = Postgres, 2 = Redis, 3 = File
"DistributedLocking": {
"LockAcquisitionTimeout": "00:00:10"
},
"WorkflowDispatcher": {
"Channels": [
{
"Name": "Low"
},
{
"Name": "Medium"
},
{
"Name": "High"
}
]
}
},
"WorkflowMultitenancy": {
"Multitenancy": {
"Tenants": [
{
"Id": "public",
"Name": "Tenant public",
"TenantId": "public",
"Configuration": {
"Http": {
"Prefix": "",
"Host": ""
},
"ConnectionStrings": {
"Sqlite": ""
}
}
}
]
}
},
"WorkflowOpenTelemetry": {
"Enabled": false,
"ServiceName": "elsa-workflows",
"ServiceVersion": "3.5.0"
},
"WorkflowMassTransit": {
"Enabled": false,
"Broker": 1, // 0 = Memory, 1 = RabbitMQ , 2 = Azure Service Bus
"AppRole": 0, // 0 = Default, 1 = Api, 2 = Worker, 3 = Monitor
"PrefetchCount": 50,
"LockDurationMinutes": 5, //Azure Service Bus only
"MaxDeliveryCount": 8, //Azure Service Bus only
"ConcurrentMessageLimit": 32, // rabbitMQ only
"Durable": true, // rabbitMQ only
"AutoDelete": false // rabbitMQ only
},
"WorkflowScheduler": {
"Enabled": false,
"HangFire": true,
"Quartz": true
},
"WorkflowActivity": {
"Smtp": {
"Host": "localhost",
"Port": 2525,
"DefaultSender": "noreply@test.com",
"RequireCredentials": false,
"UserName": "",
"Password": ""
},
"http": {
"BaseUrl": "https://localhost:5001",
"BasePath": "/workflows",
"ApiRoutePrefix": "elsa/api",
"AvailableContentTypes": [
"application/json",
"application/xml",
"text/plain",
"text/html"
]
},
"UseEmail": true,
"UseHttp": true,
"UseLiquid": true,
"UseJavaScript": true,
"UseCSharp": true,
"UsePython": true
},
"WorkflowRecurringTask": {
"TriggerBookmarkQueueSecond": 300,
"PurgeBookmarkQueueSecond": 300,
"RestartInterruptedWorkflowsTaskSecond": 15,
"RuntimeOptionsInactivityThresholdSecond": 15,
"BookmarkQueuePurgeOptionsSecond": 10,
"CachingOptionsDay": 1
},
"UseMultitenancy": true,
"UseCompression": true,
"UseCaching": true,
"UseMemoryStore": true,
"UseEfPoolingContext": false,
"UseFluentStorage": false,
"UseSwagger": false
}
- Add wrapper in Program.cs
Usage
var builder = WebApplication.CreateBuilder(args);
var services = builder.Services;
// Add service workflow
services.AddUniFiWorkflow(builder.Configuration, builder.Logging);
var app = builder.Build();
// Add app workflow
app.UseUniFiWorkflow();
Elsa Workflow 3
Elsa Workflows is a set of open-source .NET libraries designed to enhance .NET applications with workflow capabilities. Think of it as lego blocks for creating workflow engines in .NET See Elsa Workflow Documentation or Source for more details.
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- DistributedLock.FileSystem (>= 1.0.3)
- DistributedLock.Postgres (>= 1.3.0)
- DistributedLock.Redis (>= 1.0.3)
- Elsa (>= 3.5.0-rc1)
- Elsa.CSharp (>= 3.5.0-rc1)
- Elsa.Email (>= 3.5.0-rc1)
- Elsa.EntityFrameworkCore (>= 3.5.0-rc1)
- Elsa.EntityFrameworkCore.PostgreSql (>= 3.5.0-rc1)
- Elsa.EntityFrameworkCore.Sqlite (>= 3.5.0-rc1)
- Elsa.EntityFrameworkCore.SqlServer (>= 3.5.0-rc1)
- Elsa.FileStorage (>= 3.5.0-rc1)
- Elsa.Hangfire (>= 3.5.0-rc1)
- Elsa.Http (>= 3.5.0-rc1)
- Elsa.MassTransit (>= 3.5.0-rc1)
- Elsa.MassTransit.AzureServiceBus (>= 3.5.0-rc1)
- Elsa.MassTransit.RabbitMq (>= 3.5.0-rc1)
- Elsa.OpenTelemetry (>= 3.5.0-rc1)
- Elsa.Python (>= 3.5.0-rc1)
- Elsa.Quartz (>= 3.5.0-rc1)
- Elsa.Quartz.EntityFrameworkCore.PostgreSql (>= 3.5.0-rc1)
- Elsa.Quartz.EntityFrameworkCore.Sqlite (>= 3.5.0-rc1)
- Elsa.Quartz.EntityFrameworkCore.SqlServer (>= 3.5.0-rc1)
- Elsa.WorkflowProviders.BlobStorage (>= 3.5.0-rc1)
- Elsa.Workflows.Api (>= 3.5.0-rc1)
- Elsa.Workflows.Runtime.Distributed (>= 3.5.0-rc1)
- Hangfire.PostgreSql (>= 1.20.12)
- OpenTelemetry.Exporter.Console (>= 1.12.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.12.0)
- OpenTelemetry.Extensions.Hosting (>= 1.12.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.12.0)
- OpenTelemetry.Instrumentation.Http (>= 1.12.0)
- OpenTelemetry.Instrumentation.SqlClient (>= 1.12.0-beta.1)
- UniFi.Workflow.Multitenancy (>= 1.0.0-rc1)
- UniFi.Workflow.Persistence (>= 1.0.0-rc1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.1-rc3.5.0-1 | 0 | 7/8/2025 |