An Abp module integrates Elsa workflows and provides some preset Elsa activities for the ABP framework.
-
Install the following NuGet packages. (see how)
- EasyAbp.Elsa.Server.Api (install at the server host project)
- EasyAbp.Elsa.Web (install at the UI host project)
-
Add
DependsOn(typeof(ElsaXxxModule))
attribute to configure the module dependencies. (see how) -
Install an Elsa persistence provider package for the server project, see https://elsa-workflows.github.io/elsa-core/docs/next/installation/installing-persistence.
-
Configure the server host project.
context.Services.AddElsa(options => { options.UseEntityFrameworkPersistence( x => x.UseSqlServer(configuration.GetConnectionString("Default"))); options.AddConsoleActivities(); options.AddSomeOtherActives(); options.AddAbpActivities(); // Add if you need the preset activities for ABP. });
-
Configure the Web host project.
Configure<AbpElsaWebOptions>(options => { // The ServerUrl will fall back to the current root-url if null. options.ServerUrl = "https://myapp.com"; });
-
Grant the
EasyAbp.Elsa.ElsaManagement
permission to admin users.
Please notice this module has implemented Elsa's multi-tenant support. That means tenant admins can create their workflows with tenant-isolated.
Todo.