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
5
votes
1 answer

How to implement a state machine with Automatonymous in C#

I am trying to implement a simple example/demo for a state machine using Automatonymous with RabbitMQ. Unfortunately I could not find one to rebuild / learn from (I found the ShoppingWeb, but in my eyes it's anything but simple). Also in my opinion…
quorti
  • 320
  • 3
  • 11
5
votes
2 answers

Handling transition to state for multiple events

I have a MassTransitStateMachine that orchestrates a process which involves creating multiple events. Once all of the events are done, I want the state to transition to a 'clean up' phase. Here is the relevant state declaration and filter function: …
Robert
  • 1,487
  • 1
  • 14
  • 26
5
votes
1 answer

Conditional transition in MassTransit Automatonymous saga

I have some state in the saga and trying to implement status check retries until I get some satisfactory value in a message I receved. Say, I have something like this: .During(Pending, When(StatusChecked) …
Alexey Zimarev
  • 17,944
  • 2
  • 55
  • 83
5
votes
2 answers

How can I correlate events in a masstransit state machine without using a Guid?

I have defined the following state machine in Masstransit: public class OrderStateMachine : MassTransitStateMachine { public OrderStateMachine() { InstanceState(x => x.Status); Event(() => OrderCreated, x =>…
Sven Schelfaut
  • 522
  • 1
  • 7
  • 18
4
votes
1 answer

Consumer saga vs Automatonymous in MassTransit

What exactly is a consumer saga, and how is it different from Automatonymous? I know that Automatonymous is a separate library that is used by MassTransit.
4
votes
2 answers

MassTransit saga/statemachine not returning the request response to the controller

I feel like I'm so close to getting this working but can't seem to get it over the line... I have a .NET Core ASP application with saga/state machine that seems to work well for the most part. It: Receives a request Publishes an event that is…
Ben Thomson
  • 1,083
  • 13
  • 29
4
votes
1 answer

Messaging Between Services Events vs Commands

I am trying to understand different methods used in messaging between services. Let us say that I have a scenario where I need first service to notify the other that a user has asked for product creation, and the second service should receive this…
Yahya Hussein
  • 8,767
  • 15
  • 58
  • 114
4
votes
1 answer

Finalizing Saga on exception

I've created a saga and was wondering how to handle my exceptions during the execution of activities. Ideally, I would like to kill off that saga instance in some cases, immediately in the .Catch(). I've stumbled upon this thread: Understanding…
Slowacki
  • 480
  • 7
  • 20
4
votes
0 answers

MassTransit saga states receiving unexpected events

I am using MassTransit.Automatonymous (version 3.3.5 ) to manage a saga and I seem to be receiving unexpected events after a state has transitioned. Here is my state set up: Initially( When(Requested) …
Robert
  • 1,487
  • 1
  • 14
  • 26
3
votes
1 answer

How to monitor MassTransit Courier routing slip properly?

I managed to implement MassTransit Courier routing slip with bunch of activities. I decided to add a state machine to monitor it, so I created separate events and states and used EF Core as a storage for an Automatonymous state machine. To track the…
3
votes
0 answers

How to get multiple Masstransit state machine instances to process correct message

I am using MassTransitStateMachine example based of from https://github.com/MassTransit/Sample-ShoppingWeb. Everything works fine if I have only one application of state machine running. But when I have more than one instance of state machine…
Wit B
  • 53
  • 1
  • 5
3
votes
0 answers

Masstransit saga with exceptions

I want to use masstransit saga in my .net core project but I could not find any documentations or (best practice)examples to handling exception. If I have an error in my consumer,should I publish some failed event and consume that. Actually I don't…
Caglayan.
  • 31
  • 1
  • 5
3
votes
1 answer

How to write MassTransitStateMachine unit tests?

I'm finally starting to leverage the excellent Automatonymous components within MassTransit, and I'd like to TDD my way through my new state machines. After reading over the MT docs here…
Tyler Austen
  • 120
  • 9
3
votes
1 answer

Combine to Whens in Automatonymous state machine

I am making a Request from MassTransit state machine saga and wait for reply. But there could be two errors coming back to me: MyRequest.TimeoutExpired MyRequest.Faulted I don't care on which conditions the request was not fulfilled, I want both…
Alexey Zimarev
  • 17,944
  • 2
  • 55
  • 83
2
votes
0 answers

How to publish an event in Automatonymous state machine after each event gets completed?

I have an Automatonymous state machine with a bunch of events. I would like to publish each event after the previous one completes. I know I could publish it in the consumer of each event, but some of them might be reused in different state machines…
Isard
  • 312
  • 1
  • 14
1
2 3 4 5