ServerlessWorkflow.Sdk 0.8.0.10

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package ServerlessWorkflow.Sdk --version 0.8.0.10
                    
NuGet\Install-Package ServerlessWorkflow.Sdk -Version 0.8.0.10
                    
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="ServerlessWorkflow.Sdk" Version="0.8.0.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ServerlessWorkflow.Sdk" Version="0.8.0.10" />
                    
Directory.Packages.props
<PackageReference Include="ServerlessWorkflow.Sdk" />
                    
Project file
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 ServerlessWorkflow.Sdk --version 0.8.0.10
                    
#r "nuget: ServerlessWorkflow.Sdk, 0.8.0.10"
                    
#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.
#:package ServerlessWorkflow.Sdk@0.8.0.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ServerlessWorkflow.Sdk&version=0.8.0.10
                    
Install as a Cake Addin
#tool nuget:?package=ServerlessWorkflow.Sdk&version=0.8.0.10
                    
Install as a Cake Tool

Publish Packages Gitpod ready-to-code

Serverless Workflow Specification - .NET SDK

Provides .NET 6.0 API/SPI and Model Validation for the Serverless Workflow Specification

With the SDK, you can:

  • Read and write workflow JSON and YAML definitions
  • Programmatically build workflow definitions
  • Validate workflow definitions (both schema and DSL integrity validation)

Status

Latest Releases Conformance to spec version
0.8.0.10 v0.7

Getting Started

dotnet nuget add package ServerlessWorkflow.Sdk
services.AddServerlessWorkflow();

How to use

Building workflows programatically
var workflow = WorkflowDefinition.Create("MyWorkflow", "MyWorkflow", "1.0")
  .StartsWith("inject", flow => 
      flow.Inject(new { username = "test", password = "123456" }))
  .Then("operation", flow =>
      flow.Execute("fakeApiFunctionCall", action =>
      {
          action.Invoke(function =>
              function.WithName("fakeFunction")
                  .SetOperationUri(new Uri("https://fake.com/swagger.json#fake")))
              .WithArgument("username", "${ .username }")
              .WithArgument("password", "${ .password }");
      })      
          .Execute("fakeEventTrigger", action =>
          {
               action
                    .Consume(e =>
                        e.WithName("fakeEvent")
                            .WithSource(new Uri("https://fakesource.com"))
                            .WithType("fakeType"))
                    .ThenProduce(e =>
                        e.WithName("otherEvent")
                            .WithSource(new Uri("https://fakesource.com"))
                            .WithType("fakeType"));
          }))
  .End()
  .Build();
Reading workflows
var reader = WorkflowReader.Create();
using(Stream stream = File.OpenRead("myWorkflow.json"))
{
  var definition = reader.Read(stream, WorkflowDefinitionFormat.Json);
}
Writing workflows
  var writer = WorkflowWriter.Create();
  using(Stream stream = new MemoryStream())
  {
      writer.Write(workflow, stream);
      stream.Flush();
      stream.Position = 0;
      using(StreamReader reader = new StreamReader(stream))
      {
          var yaml = reader.ReadToEnd();
          Console.WriteLine(yaml);
          Console.ReadLine();
      }
  }
Validating workflows
var validator = serviceProvider.GetRequiredService<IValidator<WorkflowDefinition>>();
var validationResult = validator.Validate(myWorkflow);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on ServerlessWorkflow.Sdk:

Package Downloads
Synapse.Integration

This package contains everything you need to integrate Synapse WFMS and its APIs

ServerlessWorkflow.Sdk.IO

Contains services used to read and write ServerlessWorkflow workflow definitions

ServerlessWorkflow.Sdk.Builders

Contains services used to build ServerlessWorkflow workflow definitions programatically

Synapse.Sdk

Contains the definitions for all resources used by Synapse

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on ServerlessWorkflow.Sdk:

Repository Stars
serverlessworkflow/synapse
Serverless Workflow Management System (WFMS)
Version Downloads Last Updated
1.0.1 1,087 3/14/2025
1.0.0 1,106 1/30/2025
1.0.0-alpha6.3 312 1/16/2025
1.0.0-alpha6.2 124 1/10/2025
1.0.0-alpha6.1 116 1/10/2025
1.0.0-alpha6 157 1/10/2025
1.0.0-alpha5.4 124 12/19/2024
1.0.0-alpha5.3 109 12/19/2024
1.0.0-alpha5.2 267 11/20/2024
1.0.0-alpha5.1 923 10/25/2024
1.0.0-alpha5 437 10/22/2024
1.0.0-alpha4.1 128 10/22/2024
1.0.0-alpha4 241 10/18/2024
1.0.0-alpha3.1 124 10/18/2024
1.0.0-alpha3 565 10/11/2024
1.0.0-alpha2.16 607 10/1/2024
1.0.0-alpha2.15 657 9/8/2024
1.0.0-alpha2.14 129 9/6/2024
1.0.0-alpha2.13 128 9/6/2024
1.0.0-alpha2.12 242 8/30/2024
1.0.0-alpha2.11 191 8/21/2024
1.0.0-alpha2.10 141 8/21/2024
1.0.0-alpha2.9 134 8/21/2024
1.0.0-alpha2.8 178 8/9/2024
1.0.0-alpha2.7 122 8/8/2024
1.0.0-alpha2.6 129 6/27/2024
1.0.0-alpha2.5 171 6/26/2024
1.0.0-alpha2.4 112 6/26/2024
1.0.0-alpha2.3 114 6/26/2024
1.0.0-alpha2.2 125 6/25/2024
1.0.0-alpha2.1 126 6/21/2024
1.0.0-alpha2 185 6/19/2024
1.0.0-alpha1 317 5/22/2024
0.8.8 423 1/4/2024 0.8.8 is deprecated because it is no longer maintained.
0.8.7 885 6/29/2023
0.8.6 517 11/30/2022
0.8.5 488 11/18/2022
0.8.4 16,347 11/4/2022
0.8.3 8,539 10/26/2022
0.8.2 567 9/30/2022
0.8.1.16 4,997 9/28/2022
0.8.1.15 1,834 9/22/2022
0.8.1.14 4,160 9/9/2022
0.8.1.13 556 9/7/2022
0.8.1.12 521 9/7/2022
0.8.1.11 6,693 8/30/2022
0.8.1.10 3,028 8/23/2022
0.8.1.9 588 8/23/2022
0.8.1.8 4,309 8/11/2022
0.8.1.7 1,811 8/9/2022
0.8.1.6 1,988 5/20/2022
0.8.1.5 589 5/20/2022
0.8.1.4 632 5/18/2022
0.8.1.3 593 5/17/2022
0.8.1.2 613 5/17/2022
0.8.1.1 577 5/17/2022
0.8.1 586 5/16/2022
0.8.0.22 594 5/16/2022
0.8.0.21 672 5/10/2022
0.8.0.20 819 4/14/2022
0.8.0.19 746 4/14/2022
0.8.0.18 582 4/14/2022
0.8.0.17 599 4/13/2022
0.8.0.16 589 4/13/2022
0.8.0.15 756 3/7/2022
0.8.0.14 595 3/7/2022
0.8.0.13 614 3/3/2022
0.8.0.12 593 3/2/2022
0.8.0.11 624 2/25/2022
0.8.0.10 624 2/24/2022
0.8.0.9 648 2/24/2022
0.8.0.8 602 2/23/2022
0.8.0.7 578 2/23/2022
0.8.0.6 614 2/22/2022
0.8.0.5 590 2/21/2022
0.8.0.4 593 2/21/2022
0.8.0.3 618 2/18/2022
0.8.0.2 616 2/15/2022
0.8.0.1 595 2/14/2022
0.8.0 625 2/14/2022
0.7.4.4 572 7/2/2021
0.7.4.3 528 7/2/2021
0.7.4.2 490 7/2/2021
0.7.4.1 462 7/1/2021
0.7.4 505 7/1/2021
0.7.3 478 6/16/2021
0.7.2 520 6/8/2021
0.7.1 519 6/3/2021
0.7.0 484 6/2/2021
0.6.3 549 5/27/2021
0.6.2 512 5/27/2021
0.6.1 976 4/19/2021
0.6.0 555 4/3/2021