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

Freshly placed nrl-gate doesn't receive initial value #6

Open
minedaddy opened this issue Nov 22, 2021 · 1 comment
Open

Freshly placed nrl-gate doesn't receive initial value #6

minedaddy opened this issue Nov 22, 2021 · 1 comment

Comments

@minedaddy
Copy link

minedaddy commented Nov 22, 2021

Insert a nrl-source node and select or create a config and give it a name. Uncheck the "toggle" checkbox and set the default value of the source node to 1. Deploy and observe that the node value is 1. Insert a nrl-gate node and select the same config. Create a rule testing the source node name with "1". Cut the new gate node then paste back. Deploy and observe that the gate node shows "Initializing' and is in the "closed" state as any inputs are passed to the second output. The gate node should be "open" reflecting the source node's initial value. Changing the state of the source node to 0 will keep the gate node "closed" but now the "Initializing" status is replaced with the correct state and the nodes will all work as expected from this point on. Cutting then re-pasting the gate node and deploying re-introduces the problem.

Basically, a newly inserted gate node only initializes after the state of the source node changes.

@minedaddy
Copy link
Author

It looks like the method in nrl-source which ensures values are only sent once should resend if the flow id re-deployed.

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

1 participant