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
I currently have a custom implementation of the event-sauce library where i use the symfony workflow component to automatically create the Aggregate, Commands, Events, etc. for my project.
Basically the whole business workflow currently is to discuss and create the state machine based on a high level scope with non tech-persons.
My question is: Is this component also using the workflow component and is it possible to use a yaml based configuration? If there is an option i would be happy to migrate parts of my code to create something like this but just with your library.
`
framework:
workflows:
register_company:
type: 'state_machine'
audit_trail:
enabled: true
marking_store:
type: 'method'
property: 'currentPlace'
supports:
- Mothership\ProcessBundle\Entity\AbstractAggregate
initial_marking: start
places:
- start
- small_company_registered
- medium_company_registered
- kyc_data_small_confirmed
- kyc_data_medium_confirmed
- customer_agent_notified
- manually_approved
- published_to_salesfoce
- end
transitions:
register_small_company:
from: start
to: small_company_registered
register_medium_company:
from: start
to: medium_company_registered
get_kyc_for_small_company:
from: small_company_registered
to: kyc_data_small_confirmed
get_kyc_for_medium_company:
from: medium_company_registered
to: kyc_data_medium_confirmed
notify_customer_agent:
from: kyc_data_medium_confirmed
to: customer_agent_notified
approve_manually:
from: kyc_data_medium_confirmed
to: manually_approved
publish_to_salesforces:
from: [kyc_data_small_confirmed, customer_agent_notified, manually_approved]
to: published_to_salesfoce
publish:
from: published_to_salesfoce
to: end
metadata:
hour_limit: 20
explanation: 'You can not publish after 8 PM.'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I currently have a custom implementation of the event-sauce library where i use the symfony workflow component to automatically create the Aggregate, Commands, Events, etc. for my project.
Basically the whole business workflow currently is to discuss and create the state machine based on a high level scope with non tech-persons.
That workflow helps us to quickly talk about relevant events instead of directly implementing it in code. https://symfony.com/doc/current/workflow/dumping-workflows.html
My question is: Is this component also using the workflow component and is it possible to use a yaml based configuration? If there is an option i would be happy to migrate parts of my code to create something like this but just with your library.
`
framework:
workflows:
register_company:
type: 'state_machine'
audit_trail:
enabled: true
marking_store:
type: 'method'
property: 'currentPlace'
supports:
- Mothership\ProcessBundle\Entity\AbstractAggregate
initial_marking: start
places:
- start
- small_company_registered
- medium_company_registered
- kyc_data_small_confirmed
- kyc_data_medium_confirmed
- customer_agent_notified
- manually_approved
- published_to_salesfoce
- end
transitions:
register_small_company:
from: start
to: small_company_registered
register_medium_company:
from: start
to: medium_company_registered
get_kyc_for_small_company:
from: small_company_registered
to: kyc_data_small_confirmed
get_kyc_for_medium_company:
from: medium_company_registered
to: kyc_data_medium_confirmed
notify_customer_agent:
from: kyc_data_medium_confirmed
to: customer_agent_notified
approve_manually:
from: kyc_data_medium_confirmed
to: manually_approved
publish_to_salesforces:
from: [kyc_data_small_confirmed, customer_agent_notified, manually_approved]
to: published_to_salesfoce
publish:
from: published_to_salesfoce
to: end
metadata:
hour_limit: 20
explanation: 'You can not publish after 8 PM.'
services:
Mothership\ProcessBundle\Domain\Company\EventSubscriber\CompanySubscriber:
autowire: true
autoconfigure: true
tags:
- { name: kernel.event_listener, event: kernel.exception }
`
Beta Was this translation helpful? Give feedback.
All reactions