elsa-samples
A collection of sample solutions referenced from Elsa blog posts
File Explorer
Download Latest Version (.zip)- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.Agents.csproj
- Program.cs
- Endpoint.cs
- OrderCompleted.cs
- OrderCreated.cs
- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.AzureServiceBusActivities.csproj
- Program.cs
- FetchOrders.cs
- Order.cs
- launchSettings.json
- OrderBatchProcessor.cs
- appsettings.Development.json
- appsettings.json
- Elsa.Samples.AspNet.BatchProcessing.csproj
- Program.cs
- launchSettings.json
- ChildWorkflow.cs
- ParentWorkflow.cs
- appsettings.Development.json
- appsettings.json
- Elsa.Samples.AspNet.ChildWorkflows.csproj
- Program.cs
- StoryWriterAgent.cs
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- Elsa.Samples.AspNet.CodeFirstAgents.csproj
- Program.cs
- launchSettings.json
- Elsa.Samples.AspNet.CustomUIHandler.csproj
- Program.cs
- RefreshUIHandler.cs
- VehicleActivity.cs
- VehicleUIHandler.cs
- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.DapperPersistence.csproj
- Program.cs
- launchSettings.json
- appsettings.json
- DocumentApprovalWorkflow.cs
- Elsa.Samples.AspNet.DocumentApproval.csproj
- post-document.http
- Program.cs
- launchSettings.json
- hello-world.elsa
- appsettings.json
- Elsa.Samples.AspNet.DslWorkflowProvider.csproj
- Program.cs
- ApiActivityProvider.cs
- apis.json
- ApiDefinition.cs
- ApiEndpointDefinition.cs
- ApiParameterDefinition.cs
- launchSettings.json
- create-user-workflow.json
- get-all-users-workflow.json
- get-user-workflow.json
- appsettings.Development.json
- appsettings.json
- Elsa.Samples.AspNet.DynamicActivityProvider.csproj
- Program.cs
- Readme.md
- sample-requests.http
- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.ElasticsearchStorage.csproj
- Program.cs
- RunWorkflowController.cs
- launchSettings.json
- HelloWorldHttpWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.EntityFrameworkCore.PostgresSql.csproj
- Program.cs
- ExecuteSomeJob.cs
- SomeJob.cs
- SomeJobResult.cs
- launchSettings.json
- SomeJobStimulus.cs
- appsettings.json
- Elsa.Samples.AspNet.HangfireIntegration.csproj
- Program.cs
- README.md
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- Elsa.Samples.AspNet.Heartbeats.csproj
- HeartbeatWorkflow.cs
- Program.cs
- launchSettings.json
- Elsa.Samples.AspNet.HelloWorld.csproj
- HelloWorldHttpWorkflow.cs
- Program.cs
- MapTo.cs
- Customer.cs
- Product.cs
- launchSettings.json
- RequestResponseWorkflow.cs
- SubmissionWorkflow.cs
- TypedSubmissionWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.HttpEndpoints.csproj
- Program.cs
- submit.http
- launchSettings.json
- HelloWorld.json
- HelloWorldHttp.json
- main.json
- sub.json
- appsettings.json
- Elsa.Samples.AspNet.JsonWorkflowProvider.csproj
- Program.cs
- Endpoint.cs
- OrderCompleted.cs
- OrderCreated.cs
- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.MassTransitActivities.csproj
- Program.cs
- Endpoint.cs
- Message.cs
- launchSettings.json
- MessagingWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.MassTransitWorkflow.csproj
- Program.cs
- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.MongoDbPersistence.csproj
- Program.cs
- RunWorkflowController.cs
- launchSettings.json
- HelloWorldHttpWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.MyBackendApi.csproj
- Program.cs
- run-workflow.http
- HomeController.cs
- WebhookController.cs
- OnboardingDbContext.cs
- OnboardingTask.cs
- 20230423175104_Initial.cs
- 20230423175104_Initial.Designer.cs
- OnboardingDbContextModelSnapshot.cs
- Employee.cs
- RunTaskWebhook.cs
- TaskPayload.cs
- WebhookEvent.cs
- launchSettings.json
- ElsaClient.cs
- Index.cshtml
- Index.cshtml.cs
- _Layout.cshtml
- _Layout.cshtml.css
- _ValidationScriptsPartial.cshtml
- _ViewImports.cshtml
- _ViewStart.cshtml
- appsettings.json
- Elsa.Samples.AspNet.Onboarding.Web.csproj
- Program.cs
- Readme.md
- Employee.cs
- launchSettings.json
- OnboardingWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.Onboarding.WorkflowServer.csproj
- Program.cs
- Readme.md
- run-onboard-workflow.http
- FactCheckResult.cs
- GenerateTagsResult.cs
- IncorrectFact.cs
- TitleResult.cs
- TranslationResult.cs
- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.OrchardCoreIntegration.csproj
- Elsa.Samples.AspNet.OrchardCoreIntegration.csproj.DotSettings
- Program.cs
- Readme.md
- launchSettings.json
- appsettings.json
- Dockerfile
- Elsa.Samples.AspNet.ProtoActorRuntime.csproj
- Program.cs
- README.md
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- Dockerfile
- Elsa.Samples.AspNet.ProtoActorRuntime.AzureContainerApps.csproj
- Program.cs
- README.md
- launchSettings.json
- HeartbeatWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.QuartzIntegration.csproj
- Program.cs
- README.md
- OrderFoodTaskHandler.cs
- launchSettings.json
- HungryWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.RunTaskIntegration.csproj
- Program.cs
- run-workflow.http
- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.TelnyxIntegration.csproj
- Program.cs
- RunWorkflowController.cs
- launchSettings.json
- HelloWorldHttpWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.Tenants.csproj
- Program.cs
- RunWorkflowController.cs
- launchSettings.json
- HelloWorldHttpWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.Tenants.External.csproj
- Program.cs
- WebhooksController.cs
- DeliverFoodJob.cs
- RunTaskPayload.cs
- WebhookEvent.cs
- launchSettings.json
- appsettings.json
- Elsa.Samples.AspNet.Webhooks.ExternalApp.csproj
- Program.cs
- launchSettings.json
- HungryWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.Webhooks.WorkflowServer.csproj
- Program.cs
- run-workflow.http
- ICustomerStore.cs
- Customer.cs
- Order.cs
- ExpressionExecutionContextExtensions.cs
- WorkflowExecutionContextExtensions.cs
- launchSettings.json
- CustomerWorkflowContextProvider.cs
- OrderWorkflowContextProvider.cs
- MemoryCustomerStore.cs
- CustomerCommunicationsWorkflow.cs
- appsettings.json
- Dockerfile
- Elsa.Samples.AspNet.WorkflowContexts.csproj
- Program.cs
- README.md
- MyWorkflowsController.cs
- launchSettings.json
- get-product.json
- appsettings.Development.json
- appsettings.json
- Elsa.Samples.AspNet.WorkflowInvocation.csproj
- Program.cs
- ConsoleGreeter.cs
- MyActivity.cs
- MyCustomEvent.cs
- CustomEventController.cs
- launchSettings.json
- MysteriousPondWorkflow.cs
- appsettings.json
- Elsa.Samples.AspNet.WorkflowServer.csproj
- mysterious_pond.http
- Program.cs
- Error.razor
- _Imports.razor
- App.razor
- launchSettings.json
- bootstrap-grid.css
- bootstrap-grid.css.map
- bootstrap-grid.min.css
- bootstrap-grid.min.css.map
- bootstrap-grid.rtl.css
- bootstrap-grid.rtl.css.map
- bootstrap-grid.rtl.min.css
- bootstrap-grid.rtl.min.css.map
- bootstrap-reboot.css
- bootstrap-reboot.css.map
- bootstrap-reboot.min.css
- bootstrap-reboot.min.css.map
- bootstrap-reboot.rtl.css
- bootstrap-reboot.rtl.css.map
- bootstrap-reboot.rtl.min.css
- bootstrap-reboot.rtl.min.css.map
- bootstrap-utilities.css
- bootstrap-utilities.css.map
- bootstrap-utilities.min.css
- bootstrap-utilities.min.css.map
- bootstrap-utilities.rtl.css
- bootstrap-utilities.rtl.css.map
- bootstrap-utilities.rtl.min.css
- bootstrap-utilities.rtl.min.css.map
- bootstrap.css
- bootstrap.css.map
- bootstrap.min.css
- bootstrap.min.css.map
- bootstrap.rtl.css
- bootstrap.rtl.css.map
- bootstrap.rtl.min.css
- bootstrap.rtl.min.css.map
- bootstrap.bundle.js
- bootstrap.bundle.js.map
- bootstrap.bundle.min.js
- bootstrap.bundle.min.js.map
- bootstrap.esm.js
- bootstrap.esm.js.map
- bootstrap.esm.min.js
- bootstrap.esm.min.js.map
- bootstrap.js
- bootstrap.js.map
- bootstrap.min.js
- bootstrap.min.js.map
- app.css
- favicon.png
- appsettings.Development.json
- appsettings.json
- ElsaServerAndStudioComponentsInOne.csproj
- ElsaServerBootstrapper.cs
- Program.cs
- ThemedComponentWrapper.razor
- ContentLayout.razor
- ElsaStudioLayout.razor
- MainLayout.razor
- MainLayout.razor.css
- MainMenu.razor
- MainMenu.razor.css
- DefinitionEditor.razor
- DefinitionList.razor
- InstanceList.razor
- InstanceViewer.razor
- Counter.razor
- Home.razor
- Weather.razor
- ComponentRemoteBackendAccessor.cs
- appsettings.Development.json
- appsettings.json
- _Imports.razor
- ElsaServerAndStudioComponentsInOne.Client.csproj
- ElsaStudioBootstrapper.cs
- Program.cs
- Routes.razor
- _Host.cshtml
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- ElsaStudioBlazorServerApp.csproj
- ElsaStudioBlazorServerApp.sln
- Program.cs
- _Host.cshtml
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- ElsaStudioBlazorServerWithTenantInRouteApp.csproj
- Program.cs
- TenantDelegatingHandler.cs
- TenantIdAccessor.cs
- launchSettings.json
- TenantIdAccessor.cs
- _Imports.razor
- ElsaStudioBlazorWebAssemblyApp.csproj
- Program.cs
- WasmAssetsRewritingMiddleware.cs
- _Host.cshtml
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- ElsaStudioBlazorWebAssemblyAppHost.csproj
- Program.cs
- designer.ts
- package-lock.json
- package.json
- tsconfig.json
- webpack.config.js
- UrlHelperExtensions.cs
- WasmAssetsRewritingMiddleware.cs
- _Layout.cshtml
- _Layout.cshtml.css
- _ValidationScriptsPartial.cshtml
- _ViewImports.cshtml
- _ViewStart.cshtml
- Designer.cshtml
- Designer.cshtml.cs
- Error.cshtml
- Error.cshtml.cs
- Index.cshtml
- Index.cshtml.cs
- Privacy.cshtml
- Privacy.cshtml.cs
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- ElsaStudioDesignerRehostedApp.csproj
- Program.cs
- Error.razor
- _Imports.razor
- App.razor
- launchSettings.json
- appsettings.Development.json
- appsettings.json
- ElsaStudioRehostedBlazorComponents.csproj
- Program.cs
- ThemedComponentWrapper.razor
- ContentLayout.razor
- ElsaStudioLayout.razor
- MainLayout.razor
- MainLayout.razor.css
- MainMenu.razor
- MainMenu.razor.css
- DefinitionEditor.razor
- DefinitionList.razor
- InstanceList.razor
- InstanceViewer.razor
- Counter.razor
- Home.razor
- Weather.razor
- ComponentRemoteBackendAccessor.cs
- _Imports.razor
- Bootstrapper.cs
- ElsaStudioRehostedBlazorComponents.Client.csproj
- Program.cs
- Routes.razor
- Directory.Build.props
- docker-compose-basic.yml
- docker-compose-elsa-studio-server.yml
- docker-compose-postgres.yml
- docker-compose-traefik.yml
- LastResultWorkflow.cs
- TargetActivityOutputWorkflow.cs
- Elsa.Samples.ConsoleApp.ActivityOutput.csproj
- Program.cs
- MyEvent.cs
- Elsa.Samples.ConsoleApp.Bookmarks.csproj
- Program.cs
- AskAge.cs
- AskDetails.cs
- AskName.cs
- Person.cs
- Elsa.Samples.ConsoleApp.Composition.csproj
- Program.cs
- Elsa.Samples.ConsoleApp.ConditionalWorkflows.csproj
- Program.cs
- Readme.md
- PrintMessage.cs
- Sum.cs
- Elsa.Samples.ConsoleApp.CustomActivities.csproj
- Program.cs
- Elsa.Samples.ConsoleApp.FlowchartWorkflows.csproj
- Program.cs
- Elsa.Samples.ConsoleApp.HelloWorld.csproj
- Program.cs
- Readme.md
- Elsa.Samples.ConsoleApp.JsonWorkflows.csproj
- HelloWorld.json
- Program.cs
- Readme.md
- ForEachWorkflow.cs
- ForWorkflow.cs
- HelloWorkflow.cs
- WhileWorkflow.cs
- Elsa.Samples.ConsoleApp.LoopingWorkflows.csproj
- Program.cs
- Readme.md
- GetUsersWorkflow.cs
- Elsa.Samples.ConsoleApp.OutboundHttpRequests.csproj
- Program.cs
- Elsa.Samples.ConsoleApp.SequentialWorkflows.csproj
- Program.cs
- Readme.md
- AddInputsWorkflow.cs
- AddWorkflow.cs
- SumInputsWorkflow.cs
- Elsa.Samples.ConsoleApp.WorkflowFunctions.csproj
- Program.cs
- Dockerfile
- Elsa.Samples.ConsoleApp.WorkflowInputOutput.csproj
- Program.cs
- Directory.Build.props
- SampleActivity.cs
- DropIn.cs
- SampleDropIn.csproj
- Directory.Build.props
- .editorconfig
- .gitignore
- CONTRIBUTING.md
- Directory.Build.props
- Directory.Packages.props
- Elsa.Samples.sln
- LICENSE
- NuGet.config
- package-lock.json
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/elsa-workflows/elsa-samples
Downloads the entire project code from GitHub to your computer.
cd elsa-samples
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
docker build -f src/aspnet/Elsa.Samples.AspNet.ProtoActorRuntime.AzureContainerApps/Dockerfile -t elsa-samples .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 elsa-samples
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. .NET
MediumPrerequisites
dotnet restore
Downloads the packages the project depends on.
dotnet run
Builds the project and runs it immediately.
After dotnet run, check the message or address shown in the terminal.
4. Node.js
EasyPrerequisites
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd src/blazor/ElsaStudioDesignerRehostedApp/ClientApp
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
// repository documentation
Was this content helpful?
(0 ratings)
