You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Process Manager example with Symfony Messenger Command / Event Bus and ProophOS #53
In general a process manager subscribes to (Domain or Application) Events. Each event can fire one or more new command(s).
The manager can decide which command to fire based on the provided event. But there should not be added deeper business logic to make these decisions.
A Saga AFAIK is a process manager that persists the state of the process - also known as state machine.
This can help to log the steps of the process and view the current state over a longer period of time.
In order to make this work with Prooph you have to wire the Messenger Event Bus with the Prooph Event Publisher.
In earlier versions Prooph offered a Service Bus and Event Publisher. But the package was deprecated.
The Process Manager looks as I imagined. Practically, a Process Manager may group together all those events that are part of the same flow. I am right?
Activity
webdevilopers commentedon Nov 25, 2020
In general a process manager subscribes to (Domain or Application) Events. Each event can fire one or more new command(s).
The manager can decide which command to fire based on the provided event. But there should not be added deeper business logic to make these decisions.
A
SagaAFAIK is a process manager that persists the state of the process - also known as state machine.This can help to log the steps of the process and view the current state over a longer period of time.
Hope this helps.
Here is the current implementation:
Process Manager
Infrastructure
The
MessageSubscriberInterfaceis part of the Symfony Messenger in order to subscribe to Events (Messages) from the event bus.In order to make this work with Prooph you have to wire the Messenger Event Bus with the Prooph Event Publisher.
In earlier versions Prooph offered a Service Bus and Event Publisher. But the package was deprecated.
Aggregate Root
Repository
webdevilopers commentedon Dec 4, 2020
Does it help @iosifch?
iosifch commentedon Dec 4, 2020
I didn't have time to look at it, but I want to do this as soon as possible!
iosifch commentedon Dec 9, 2020
The Process Manager looks as I imagined. Practically, a Process Manager may group together all those events that are part of the same flow. I am right?
webdevilopers commentedon Dec 10, 2020
Exactly.