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

Join ALL and conditional branches conflict? #216

Closed
JingxuanDinga opened this issue Oct 21, 2020 · 6 comments
Closed

Join ALL and conditional branches conflict? #216

JingxuanDinga opened this issue Oct 21, 2020 · 6 comments

Comments

@JingxuanDinga
Copy link

I want to use conditions to determine which paths in the workflow to take, and finally use join all to summarize all the results that meet the criteria.
However, the final step did not execute .

@amanda11
Copy link
Contributor

Please could you give further details and an example that fails, and exactly what happened, so that this can be investigated?

@JingxuanDinga
Copy link
Author

JingxuanDinga commented Oct 21, 2020 via email

@amanda11
Copy link
Contributor

join is designed to join together branches that have run in parallel, in your example above you would never enter more than one of those branches, so there is nothing to join - and the join would in affect not be needed, and those branches could just have a next transition to take them to task4.

(If you could reformat it would make it easier to see).

In your real-life cases could multiple of your conditions be true, and so the paths run in parallel? And if they run in parallel, is the situation that not all of them would necessarily be run?

@JingxuanDinga
Copy link
Author

join is designed to join together branches that have run in parallel, in your example above you would never enter more than one of those branches, so there is nothing to join - and the join would in affect not be needed, and those branches could just have a next transition to take them to task4.

(If you could reformat it would make it easier to see).

In your real-life cases could multiple of your conditions be true, and so the paths run in parallel? And if they run in parallel, is the situation that not all of them would necessarily be run?

Thank you very much.

I have another question:
If I want to execute an Action in a Python script, is there any method?

@amanda11
Copy link
Contributor

Hi @JingxuanDinga That would be better asked in the StackStorm Forum. But if you mean execute from a StackStorm python-runner class then a similar thread on that question can be found here:
https://forum.stackstorm.com/t/invoke-an-action-from-a-python-action-script/24
and if it is a standalone python script, then you could get your python script to use the StackStorm REST API to execute an action - see https://docs.stackstorm.com/reference/api.html

@JingxuanDinga
Copy link
Author

Hi @JingxuanDinga That would be better asked in the StackStorm Forum. But if you mean execute from a StackStorm python-runner class then a similar thread on that question can be found here:
https://forum.stackstorm.com/t/invoke-an-action-from-a-python-action-script/24
and if it is a standalone python script, then you could get your python script to use the StackStorm REST API to execute an action - see https://docs.stackstorm.com/reference/api.html

That's what I want!! Thank you again!!

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