-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Stateflows/framework
- Loading branch information
Showing
185 changed files
with
2,351 additions
and
792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
|
||
name: .NET test | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Restore dependencies | ||
working-directory: ./Tests/StateMachine/StateMachine.IntegrationTests | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
Core/Stateflows.Testing/StateMachines/Sequence/IExecutionSequenceBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
Core/Stateflows.Transport.Common/Classes/StateflowsRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Stateflows.Common.Utilities; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Stateflows.Common.Transport.Classes | ||
{ | ||
public class StateflowsRequest | ||
{ | ||
public string EventString { get; set; } | ||
|
||
[JsonIgnore] | ||
public Event Event | ||
{ | ||
get => StateflowsJsonConverter.DeserializeObject<Event>(EventString); | ||
set => EventString = StateflowsJsonConverter.SerializePolymorphicObject(value); | ||
} | ||
|
||
public string BehaviorIdString { get; set; } | ||
|
||
[JsonIgnore] | ||
public BehaviorId BehaviorId | ||
{ | ||
get => StateflowsJsonConverter.DeserializeObject<BehaviorId>(BehaviorIdString); | ||
set => BehaviorIdString = StateflowsJsonConverter.SerializePolymorphicObject(value); | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
Core/Stateflows.Transport.Common/Classes/StateflowsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Stateflows.Common.Utilities; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Stateflows.Common.Transport.Classes | ||
{ | ||
public class StateflowsResponse | ||
{ | ||
public EventStatus EventStatus { get; set; } | ||
|
||
public string ValidationString { get; set; } | ||
|
||
[JsonIgnore] | ||
public EventValidation Validation | ||
{ | ||
get => StateflowsJsonConverter.DeserializeObject<EventValidation>(ValidationString); | ||
set => ValidationString = StateflowsJsonConverter.SerializePolymorphicObject(value); | ||
} | ||
|
||
public string ResponseString { get; set; } | ||
|
||
[JsonIgnore] | ||
public Response Response | ||
{ | ||
get => StateflowsJsonConverter.DeserializeObject<Response>(ResponseString); | ||
set => ResponseString = StateflowsJsonConverter.SerializePolymorphicObject(value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Stateflows.Common; | ||
|
||
namespace Stateflows.Activities | ||
{ | ||
public sealed class DecisionNode<TToken> : ActivityNode | ||
where TToken : Token, new() | ||
{ | ||
public string Name => $"Stateflows.Activities.DecisionNode<{TokenInfo<TToken>.Name}>"; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
Core/Stateflows/Activities/Classes/IterativeActivityNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Stateflows.Common; | ||
|
||
namespace Stateflows.Activities | ||
{ | ||
public abstract class IterativeActivityNode<TToken> : StructuredActivityNode<TToken> | ||
where TToken : Token, new() | ||
{ | ||
public string Name => $"Stateflows.Activities.IterativeActivityNode<{TokenInfo<TToken>.Name}>"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Stateflows.Activities | ||
{ | ||
public sealed class MergeNode : ActivityNode | ||
{ | ||
public const string Name = "Stateflows.Activities.MergeNode"; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
Core/Stateflows/Activities/Classes/ParalellActivityNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Stateflows.Common; | ||
|
||
namespace Stateflows.Activities | ||
{ | ||
public abstract class ParallelActivityNode<TToken> : StructuredActivityNode<TToken> | ||
where TToken : Token, new() | ||
{ | ||
public string Name => $"Stateflows.Activities.ParallelActivityNode<{TokenInfo<TToken>.Name}>"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.