Skip to content

Commit

Permalink
Enable ProtoActor and Add Agent Support
Browse files Browse the repository at this point in the history
Enabled ProtoActor by setting `useProtoActor` to true. Integrated Elsa Agents API and persistence mechanisms. Refined tag handling in ParallelForEachT activity.
  • Loading branch information
sfmskywalker committed Sep 6, 2024
1 parent 2c0f5bb commit 48f0f72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\modules\Elsa.Agents.Activities\Elsa.Agents.Activities.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Agents.Api\Elsa.Agents.Api.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Agents.Persistence.EntityFrameworkCore.Sqlite\Elsa.Agents.Persistence.EntityFrameworkCore.Sqlite.csproj" />
<ProjectReference Include="..\..\modules\Elsa\Elsa.csproj"/>
<ProjectReference Include="..\..\modules\Elsa.Caching.Distributed.MassTransit\Elsa.Caching.Distributed.MassTransit.csproj" />
<ProjectReference Include="..\..\modules\Elsa.Caching.Distributed\Elsa.Caching.Distributed.csproj" />
Expand Down
5 changes: 4 additions & 1 deletion src/apps/Elsa.ServerAndStudio.Web/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Elsa.Agents;
using Elsa.EntityFrameworkCore.Extensions;
using Elsa.EntityFrameworkCore.Modules.Management;
using Elsa.EntityFrameworkCore.Modules.Runtime;
Expand All @@ -13,7 +14,7 @@
using WebhooksCore.Options;

const bool useMassTransit = true;
const bool useProtoActor = false;
const bool useProtoActor = true;
const bool useCaching = true;
const bool useMySql = false;
const DistributedCachingTransport distributedCachingTransport = DistributedCachingTransport.MassTransit;
Expand Down Expand Up @@ -105,6 +106,8 @@
.UseEmail(email => email.ConfigureOptions = options => configuration.GetSection("Smtp").Bind(options))
.UseWebhooks(webhooks => webhooks.ConfigureSinks = options => builder.Configuration.GetSection("Webhooks:Sinks").Bind(options))
.UseWorkflowsApi()
.UseAgentsApi()
.UseAgentPersistence(persistence => persistence.UseEntityFrameworkCore(ef => ef.UseSqlite(sqliteConnectionString)))
.UseRealTimeWorkflows()
.AddActivitiesFrom<Program>()
.AddWorkflowsFrom<Program>();
Expand Down

0 comments on commit 48f0f72

Please sign in to comment.