elsa-core/samples/aspnet/Elsa.Samples.AspNet.WorkflowContexts
2024-08-06 22:47:05 +02:00
..
Contracts Move samples to repository root 2024-02-02 20:01:14 +02:00
Entities Merge remote-tracking branch 'origin/patch/3.2.x' 2024-08-06 22:47:05 +02:00
Extensions Move samples to repository root 2024-02-02 20:01:14 +02:00
Properties Move samples to repository root 2024-02-02 20:01:14 +02:00
Providers Rework Workflow Context Feature (#5861) 2024-08-06 22:36:24 +02:00
Services Move samples to repository root 2024-02-02 20:01:14 +02:00
Workflows Rework Workflow Context Feature (#5861) 2024-08-06 22:36:24 +02:00
appsettings.json Rework Workflow Context Feature (#5861) 2024-08-06 22:36:24 +02:00
Dockerfile Move samples to repository root 2024-02-02 20:01:14 +02:00
Elsa.Samples.AspNet.WorkflowContexts.csproj Enable Proto Actor Tracing for TraceLens (#5800) 2024-07-19 20:23:32 +02:00
Program.cs Multitenancy (#5159) 2024-06-10 21:30:53 +02:00
README.md Rework Workflow Context Feature (#5861) 2024-08-06 22:36:24 +02:00

Server

This project demonstrates how to use Workflow Contexts.

A Workflow Context represents a custom, application-specific object provided to the workflow at runtime. For example, if your workflow handles a Customer, a custom workflow context provider could provide this customer automatically to the workflow without the need for custom activities that load & persist updates to this customer. Instead, the custom context provider would load the customer into memory once before the workflow starts and persists changes made to the customer (if any) when the workflow execution ends.

In this sample project, we handle two custom objects: Customer and Order.

To start the CustomerCommunicationsWorkflow, start it using the REST API or from Elsa Studio.

Secrets

The following are the secrets stored in hashed form in appsettings.json:

API key: 4E753976726458745954355043687772-e54d5a2c-33a3-4c05-a216-b09569062aed Admin user: admin Admin password: password