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

Ac 4282 make nested flow suspendable #43

Merged
merged 7 commits into from
Jun 14, 2024

Conversation

bocasti
Copy link

@bocasti bocasti commented Jun 14, 2024

No description provided.

FBFlowInstance >> pushExecutor: anExecutor [
FBFlowInstance >> pushExecutor: anExecutor [

executors add: anExecutor.
executor := anExecutor
flowInstance: self;
suspendedExecutor: executor;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we still need the suspendedExecutor. Isn't the list of executors not a replacment for that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There. is still one executor stepping at a time. When one executor go over all his steps, we still need a mechanism to jump back to the parent executor. This is done by restoring the #suspendedExecutor as current executor of the flow instance

@@ -8,5 +8,5 @@ Class {
FBWaitForConditionBehavior >> execute [
(self node evaluateConditionWith: activation argument)
ifTrue: [ activation followAll: self node outgoing ]
ifFalse: [ activation waitForNode: self ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand that change ;)

@noha noha merged commit 46fb7a3 into ApptiveGrid:main Jun 14, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants