Skip to content

Commit

Permalink
0.8.1-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolaj-milewski committed Feb 6, 2024
1 parent 2e50fd7 commit d09eb07
Show file tree
Hide file tree
Showing 22 changed files with 42 additions and 61 deletions.
2 changes: 1 addition & 1 deletion Core/Stateflows.Common/Stateflows.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageTags>Stateflows;state-machine;activity;workflow</PackageTags>
<AssemblyVersion></AssemblyVersion>
<FileVersion></FileVersion>
<Version>0.8.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageOutputPath>..\..\NuGet</PackageOutputPath>
Expand Down
2 changes: 1 addition & 1 deletion Core/Stateflows.Testing/Stateflows.Testing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.8.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<Title>Stateflows framework testing utilities</Title>
<Authors>Stateflows</Authors>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Title>Stateflows framework transport abstractions</Title>
<Version>0.8.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<Authors>Stateflows</Authors>
<PackageProjectUrl>https://www.stateflows.net</PackageProjectUrl>
<PackageIcon>stateflows-logo-1024.png</PackageIcon>
Expand Down
7 changes: 7 additions & 0 deletions Core/Stateflows/Activities/Classes/ForkNode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Stateflows.Activities
{
public sealed class ForkNode : ActivityNode
{
public const string Name = "Stateflows.Activities.ForkNode";
}
}
7 changes: 7 additions & 0 deletions Core/Stateflows/Activities/Classes/JoinNode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Stateflows.Activities
{
public sealed class JoinNode : ActivityNode
{
public const string Name = "Stateflows.Activities.JoinNode";
}
}
1 change: 1 addition & 0 deletions Core/Stateflows/Activities/Engine/Executor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ public async Task DoHandleNodeAsync(Node node, NodeScope nodeScope, IEnumerable<

var inputTokens = input ?? streams.SelectMany(stream => stream.Tokens).ToArray();

nodeScope = nodeScope.CreateChildScope();
lock (node.Graph)
{
Debug.WriteLine($">>> Executing node {node.Name}, threadId: {nodeScope.ThreadId}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public static IActivityBuilder AddJoin(this IActivityBuilder builder, string joi
b => joinBuildAction(b)
) as IActivityBuilder;

public static IActivityBuilder AddJoin(this IActivityBuilder builder, JoinBuildAction joinBuildAction)
=> builder.AddJoin(ActivityNodeInfo<JoinNode>.Name, joinBuildAction);

public static IActivityBuilder AddFork(this IActivityBuilder builder, string forkNodeName, ForkBuildAction forkBuildAction)
=> (builder as BaseActivityBuilder)
.AddNode(
Expand All @@ -35,6 +38,9 @@ public static IActivityBuilder AddFork(this IActivityBuilder builder, string for
b => forkBuildAction(b)
) as IActivityBuilder;

public static IActivityBuilder AddFork(this IActivityBuilder builder, ForkBuildAction forkBuildAction)
=> builder.AddFork(ActivityNodeInfo<ForkNode>.Name, forkBuildAction);

public static IActivityBuilder AddMerge(this IActivityBuilder builder, string mergeNodeName, MergeBuildAction mergeBuildAction)
=> (builder as BaseActivityBuilder)
.AddNode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public static IReactiveStructuredActivityBuilder AddJoin(this IReactiveStructure
b => buildAction(b)
) as IReactiveStructuredActivityBuilder;

public static IReactiveStructuredActivityBuilder AddJoin(this IReactiveStructuredActivityBuilder builder, JoinBuildAction joinBuildAction)
=> builder.AddJoin(ActivityNodeInfo<JoinNode>.Name, joinBuildAction);

public static IReactiveStructuredActivityBuilder AddFork(this IReactiveStructuredActivityBuilder builder, string forkNodeName, ForkBuildAction buildAction)
=> (builder as BaseActivityBuilder)
.AddNode(
Expand All @@ -34,6 +37,9 @@ public static IReactiveStructuredActivityBuilder AddFork(this IReactiveStructure
b => buildAction(b)
) as IReactiveStructuredActivityBuilder;

public static IReactiveStructuredActivityBuilder AddFork(this IReactiveStructuredActivityBuilder builder, ForkBuildAction forkBuildAction)
=> builder.AddFork(ActivityNodeInfo<ForkNode>.Name, forkBuildAction);

public static IReactiveStructuredActivityBuilder AddMerge(this IReactiveStructuredActivityBuilder builder, string mergeNodeName, MergeBuildAction buildAction)
=> (builder as BaseActivityBuilder)
.AddNode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public static IStructuredActivityBuilder AddJoin(this IStructuredActivityBuilder
b => joinBuildAction(b)
) as IStructuredActivityBuilder;

public static IStructuredActivityBuilder AddJoin(this IStructuredActivityBuilder builder, JoinBuildAction joinBuildAction)
=> builder.AddJoin(ActivityNodeInfo<JoinNode>.Name, joinBuildAction);

public static IStructuredActivityBuilder AddFork(this IStructuredActivityBuilder builder, string forkNodeName, ForkBuildAction forkBuildAction)
=> (builder as BaseActivityBuilder)
.AddNode(
Expand All @@ -34,6 +37,9 @@ public static IStructuredActivityBuilder AddFork(this IStructuredActivityBuilder
b => forkBuildAction(b)
) as IStructuredActivityBuilder;

public static IStructuredActivityBuilder AddFork(this IStructuredActivityBuilder builder, ForkBuildAction forkBuildAction)
=> builder.AddFork(ActivityNodeInfo<ForkNode>.Name, forkBuildAction);

public static IStructuredActivityBuilder AddMerge(this IStructuredActivityBuilder builder, string mergeNodeName, MergeBuildAction mergeBuildAction)
=> (builder as BaseActivityBuilder)
.AddNode(
Expand Down
2 changes: 1 addition & 1 deletion Core/Stateflows/Stateflows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Title>Stateflows framework core</Title>
<Version>0.8.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<Authors>Stateflows</Authors>
<PackageProjectUrl>https://www.stateflows.net</PackageProjectUrl>
<PackageIcon>stateflows-logo-1024.png</PackageIcon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Title>PlantUML extension for Stateflows framework</Title>
<Version>0.8.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<Authors>Stateflows</Authors>
<PackageProjectUrl>https://www.stateflows.net</PackageProjectUrl>
<PackageIcon>stateflows-logo-1024.png</PackageIcon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<Nullable>enable</Nullable>
<Title>DistributedLock locking for Stateflows framework</Title>
<Version>0.8.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<Authors>Stateflows</Authors>
<PackageProjectUrl>https://www.stateflows.net</PackageProjectUrl>
<PackageIcon>stateflows-logo-1024.png</PackageIcon>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Title>Entity Framework Core 6.0 storage for Stateflows framework</Title>
<Version>0.7.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<Authors>Stateflows</Authors>
<PackageProjectUrl>https://www.stateflows.net</PackageProjectUrl>
<PackageIcon>stateflows-logo-1024.png</PackageIcon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageTags>Stateflows;state-machine;activity;workflow;SignalR;signal-r</PackageTags>
<Version>0.8.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<Title>SignalR transport client for Stateflows framework</Title>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Authors>Stateflows</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.8.0-alpha</Version>
<Version>0.8.1-alpha</Version>
<Title>SignalR transport for Stateflows framework</Title>
<Authors>Stateflows</Authors>
<PackageProjectUrl>https://www.stateflows.net</PackageProjectUrl>
Expand Down

0 comments on commit d09eb07

Please sign in to comment.