Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firing event from State Entry Action #1107

Open
rishikesh13 opened this issue Jul 2, 2023 · 0 comments
Open

Firing event from State Entry Action #1107

rishikesh13 opened this issue Jul 2, 2023 · 0 comments
Labels
status/need-triage Team needs to triage and take a first look

Comments

@rishikesh13
Copy link

We need to build state machine with following configuration

If state machine reaches stage S1, we need to run action which makes API call to third party service. Based on response of API call, state machine should either move to S2 or S3. To achieve this, we are planning to configure state entry action on S1 which will make API call and based on response send event E2/E3 to state machine to make movement to S2/S3. Is there downside/side effect of firing event from state entry action to achieve this?

We tried with state action but found out it schedules state action on thread pool which we don't want and therefore using state entry action to make sure action runs in callers thread.

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-triage Team needs to triage and take a first look
Projects
None yet
Development

No branches or pull requests

1 participant