Questions tagged [automatonymous]

Automatonymous is a free, open-source state machine library for .NET.

Automatonymous is a free, open-source state machine library for the Microsoft .NET framework. It can be used standalone, or with MassTransit for building event-driven state machines.

It is hosted on GitHub and is available for installation using NuGet.

The documentation can be found on the MassTransit Web Site.

75 questions
0
votes
1 answer

When using Automatonymous Statemachine and EF Core to store the state can I combine the state and my entities in one DbContext

I was wondering what the best practices are surrounding using EF Core, the saga state Db and your application DB, and whether you should or should not combine your saga state with your entity in the same table in the database, or even have your saga…
Lyon
  • 546
  • 6
  • 16
0
votes
1 answer

MassTransit "The Completed event is not handled during the Final state for the RequestStateMachine state machine" error

I have a system where I try to implement a middleware for our APIs to have idempotency handled. for this all of the APIs send a message to system where another service takes these messages and either forwards them to real handler with minor data…
ugurg
  • 1
  • 1
0
votes
1 answer

How can you mock an Automatonymous Activity?

I'm trying to unit test my state machine and that it transitions to the states I expect when certain events are received. To do this I'm using the InMemoryTestHarness which enables me to create my state machine and then using the bus I can publish…
sr28
  • 4,728
  • 5
  • 36
  • 67
0
votes
1 answer

MassTransit Automatonymous - State not changing when a message is Sent

I am trying to figure why "Sending" a message does not invoke state machine, but if I "Publish" a message, it works and I can see the state changing. Following is my code, it is similar to the documentation, except that I am trying to "Send" a…
0
votes
1 answer

Can I use MassTransit/Automatonymous saga without using entire MassTransit framework?

I am looking for best .Net Saga framework. Automatonymous looks promising, but all samples and docs are related to it's parent MassTransit project. Is it possible to use Automatonymous based saga without MassTransit itself? If yes - how would you…
Maciej Pszczolinski
  • 1,623
  • 1
  • 19
  • 38
0
votes
1 answer

Start State Machine in specific state while testing

I am trying to create unit tests for my state machine to check if each state does what it is supposed to do. I can bring the state machine into any state by publishing the event that starts the state machine and creating all the variables that I…
Daniel
  • 91
  • 1
  • 14
0
votes
1 answer

Log handled MassTransit Saga exception

I'm trying to figure out how to log handled exceptions. Currently the exception thrown from an Activity will be swallowed (for example if there are DI errors when trying to create the Acitivity). What can I do to log the caught…
Joel
  • 8,502
  • 11
  • 66
  • 115
0
votes
1 answer

Test MassTransit state machine saga activity

I'm trying to do unit tests on a custom Activity that I have for my MassTransit state machine saga. It looks something like this: public class UpdateActivity : Activity { private readonly ConsumeContext _consumeContext; private…
Joel
  • 8,502
  • 11
  • 66
  • 115
0
votes
1 answer

Abort chain of activities for MassTransit Saga

I'm trying to figure out how to abort a chain of activities, if one activity decides that there is something wrong, and the Saga should be Finalized. For example: Initially( When(UpdateRequested) .Activity(x => x.OfType()) …
Joel
  • 8,502
  • 11
  • 66
  • 115
0
votes
1 answer

Restart a MassTransit Saga

In my application, user can trigger updates for a specific resource. When that happens, an UpdateInitiated event is sent. A MassTransit Saga is initiated based on that event, and it triggers a series of other events until it considers itself done…
Joel
  • 8,502
  • 11
  • 66
  • 115
0
votes
1 answer

Multiple State machines with automatonymous using EFCore persistence not working

We are using Masstransit with automatonymous and InMemoryRepository for saga persistence. We have around 3 state machines configured and working perfectly. We recently changed from InMemoryRepository to EFCore for persistence. This resulted in only…
0
votes
2 answers

State machine inconsistency while using Automatonymous

I am new to microservices and using masstransit with automatonymous. Currently my state machine is showing inconsistency while execution. The code inside Initially works as expected but the control flow does not execute the code inside During after…
0
votes
0 answers

When/how is a consumer saga completed?

The MassTransit documentation on sagas describes how By default, instances are not removed from the saga repository. It goes on to describe how a saga may be marked for removal from the saga repository. The documentation for consumer sagas does…
Matt Williams
  • 1,596
  • 17
  • 24
0
votes
1 answer

Dependency Injection problem with Masstransit Sagas and Custom Activities

I am implementing a Saga for a distributed system. So far I haven't got any problem using Masstransit documentation to implement a Saga without any meaningful behavior (just an orchestrator with a couple of microservices exchanging messages). The…
Renato Sanhueza
  • 534
  • 7
  • 27
0
votes
0 answers

Masstransit Automatonymous :Discarding events on missing sagas instances going to error queue

Automatonymous using Redis : Same event is used by multiple state machines Sagas.When the event is published (Fan out), The sagas which are not expecting the event and using x.OnMissingInstance(x=>x.Discard()), the published event is going to Error…
PCH
  • 11
  • 2