Flowable.Sdk 6.7.2

.NET 6.0
This package has a SemVer 2.0.0 package version: 6.7.2+build.3.
dotnet add package Flowable.Sdk --version 6.7.2
NuGet\Install-Package Flowable.Sdk -Version 6.7.2
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="Flowable.Sdk" Version="6.7.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Flowable.Sdk --version 6.7.2
#r "nuget: Flowable.Sdk, 6.7.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Flowable.Sdk as a Cake Addin
#addin nuget:?package=Flowable.Sdk&version=6.7.2

// Install Flowable.Sdk as a Cake Tool
#tool nuget:?package=Flowable.Sdk&version=6.7.2

flowable-sdk-dotnet

Build CodeQL NuGet contributionswelcome Conventional Commits License

GitHub Actions Build History

Flowable HTTP SDK Client for .NET

Registration in Dependency Injection (DI)

public static class ServiceCollectionExtensions
{
    public static IServiceCollection AddFlowableHttpClients(
        this IServiceCollection services, IConfiguration configuration)
    {
        var httpClientOptions = configuration
            .GetSection(FlowableHttpClientOptions.FlowableClientSection)
            .Get<FlowableHttpClientOptions>();

        services.AddOptions<FlowableHttpClientOptions>().Bind(configuration);

        services.AddHttpClient<IFlowableProcessHttpClient, FlowableProcessHttpClient>(options =>
        {
            options.BaseAddress = new Uri(httpClientOptions.BaseUrlProcessApi);
        });

        services.AddHttpClient<IFlowableCaseHttpClient, FlowableCaseHttpClient>(options =>
        {
            options.BaseAddress = new Uri(httpClientOptions.BaseUrlCmmnApi);
        });
        return services;
    }

    public static IServiceCollection AddFlowableExternalWorkerHttpClient(
        this IServiceCollection services, IConfiguration configuration)
    {
        var httpClientOptions = configuration
            .GetSection(FlowableHttpClientOptions.FlowableClientSection)
            .Get<FlowableHttpClientOptions>();

        services.AddOptions<FlowableHttpClientOptions>().Bind(configuration);

        services.AddHttpClient<IFlowableExternalWorkerHttpClient, FlowableExternalWorkerHttpClient>(
            options =>
            {
                options.BaseAddress = new Uri(httpClientOptions.BaseUrlExternalWorker);
            }).AddPolicyHandler(GetCircuitBreakerPolicy());

        static IAsyncPolicy<HttpResponseMessage> GetCircuitBreakerPolicy() =>
            HttpPolicyExtensions
                .HandleTransientHttpError()
                .Or<HttpRequestException>()
                .CircuitBreakerAsync(5, TimeSpan.FromSeconds(60));

        return services;
    }
}

public class FlowableHttpClientOptions
{
    public const string FlowableClientSection = "FlowableHttpClientOptions";

    public string BaseUrlExternalWorker { get; set; }

    public string BaseUrlCmmnApi { get; set; }

    public string BaseUrlProcessApi { get; set; }
}
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.7.2 442 3/24/2022