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

Inserting step into a Path() with :after doesn't work #16

Open
apotonick opened this issue Mar 30, 2020 · 1 comment
Open

Inserting step into a Path() with :after doesn't work #16

apotonick opened this issue Mar 30, 2020 · 1 comment
Assignees

Comments

@apotonick
Copy link
Member

The following code fails because the last step of the "original" Path() is hard-codedly pointing to its end.

step :a, Output(:not_authenticated)  => Path(track_color: :_401, connect_to: Id("End.fail_fast")) do       
  step :_401_pointing_to_end
end

step :_401____, after: :_401_pointing_to_end, # :before works! 
  magnetic_to: :_401, Output(:success) => Track(:_401), Output(:failure) => Track(:_401)
@apotonick apotonick self-assigned this Mar 30, 2020
@yogeshjain999
Copy link
Member

yogeshjain999 commented Sep 12, 2020

@apotonick I think this issue could be solved with #21 without using connect_to

step :a, Output(:not_authenticated)  => Path(track_color: :_401) do       
  step :_401_pointing_to_end, Output(:success) => End(:fail_fast)
end

step :_401____, after: :_401_pointing_to_end, # :before works! 
  magnetic_to: :_401, Output(:success) => Track(:_401), Output(:failure) => Track(:_401)

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

No branches or pull requests

2 participants