Mimosa 1.0.3

dotnet add package Mimosa --version 1.0.3
NuGet\Install-Package Mimosa -Version 1.0.3
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="Mimosa" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mimosa --version 1.0.3
#r "nuget: Mimosa, 1.0.3"
#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.
// Install Mimosa as a Cake Addin
#addin nuget:?package=Mimosa&version=1.0.3

// Install Mimosa as a Cake Tool
#tool nuget:?package=Mimosa&version=1.0.3

Mimosa

Getting started

Mimosa is a flexible workflow framework. The usage of the framework is simple & strateforward.

    char ch = ' ';

    // Create trigger with initial state
    var trigger = new Trigger(mStates.New);

    // Setup allowed states
    trigger.Setup(mStates.New)
        .Allow(mStates.Implemented, null, mAction.Develop);
    trigger.Setup(mStates.Implemented)
        .Allow(mStates.Approved, () => ch == 'y', mAction.Approve, mAction.Approve2)
        .Allow(mStates.Rejected, () => ch != 'y', mAction.Reject);
    trigger.Setup(mStates.Approved)
        .Allow(mStates.Deployed, null, mAction.Deploy);

    // Activate trigger with appropriate actions
    trigger.Activate(mAction.Develop);
    trigger.Activate(mAction.Approve2);

    Console.Write("Approve? (y/n)");
    var rk = Console.ReadKey();
    Console.WriteLine();

    ch = rk.KeyChar;
    if (ch == 'y')
    {
        trigger.Activate(mAction.Approve);
        trigger.Activate(mAction.Deploy);
    }
    else
    {
        trigger.Activate(mAction.Reject);
    }

    Console.WriteLine("Press any key to exit ...");
    Console.ReadKey();

    // Define states
    public enum mStates
    {
        New,
        Implemented,
        Approved,
        Rejected,
        Deployed
    }

    // Define actions
    public enum mAction
    {
        Develop,
        Approve,
        Approve2,
        Reject,
        Deploy
    }
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

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
1.0.3 108 9/11/2023
1.0.2 96 9/11/2023
1.0.0 92 9/11/2023