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

Notify when flow does not satisfies the expected result. #2

Open
freakpol opened this issue Aug 27, 2019 · 1 comment
Open

Notify when flow does not satisfies the expected result. #2

freakpol opened this issue Aug 27, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@freakpol
Copy link

Right now, when executing the flow, we specify the desired results in the third parameter, for example

const response = await FlowManager.run(
      flowDefinition,
      parameters,
      ['myResponse'],
      resolvers,
);

But, when for whatever reason (for example a cyclic flow or and unintended incorrect flow), the flow ends and it does not have a myResponse property.

It would be ideal if you can notify of such cases so the rest of the code can react accordingly.

@daniel-duarte daniel-duarte self-assigned this Aug 27, 2019
@daniel-duarte daniel-duarte added the enhancement New feature or request label Aug 27, 2019
@daniel-duarte
Copy link
Collaborator

Thanks for the suggestion.
Need to think and design a generic and flexible solution for this request.
There are several cases to consider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants