Scheduler Switch [RvTools]:
The Scheduler Switch [RvTools] node is designed to facilitate the dynamic selection between different scheduler inputs within a workflow. This node is particularly useful when you need to toggle between two distinct sets of scheduler configurations based on a specified condition. By providing a simple mechanism to switch between inputs, it enhances flexibility and control over the scheduling process, allowing you to adapt to varying requirements or conditions without manually altering the workflow. This capability is essential for optimizing processes that require different scheduling strategies, ensuring that the most appropriate scheduler is utilized for the task at hand.
Scheduler Switch [RvTools] Input Parameters:
Input
The Input parameter is an integer that determines which scheduler input will be selected and returned by the node. It accepts values of either 1 or 2, with a default value of 1. When set to 1, the node will select and return the first scheduler input (input1), and when set to 2, it will select and return the second scheduler input (input2). This parameter is crucial for controlling the flow of the node, allowing you to dynamically choose between different scheduler configurations based on your specific needs.
input1
The input1 parameter is an optional input that represents the first scheduler configuration. It can accept any type of data, with a default value of an empty list. This parameter is marked with forceInput, indicating that it requires a valid input when selected. The input1 parameter is used when the Input parameter is set to 1, allowing you to specify the scheduler configuration that should be used in this scenario.
input2
The input2 parameter is an optional input that represents the second scheduler configuration. Similar to input1, it can accept any type of data, with a default value of an empty list, and is marked with forceInput. This parameter is utilized when the Input parameter is set to 2, enabling you to define an alternative scheduler configuration that can be switched to as needed.
Scheduler Switch [RvTools] Output Parameters:
scheduler
The scheduler output parameter is the result of the node's execution, returning the selected scheduler configuration based on the Input parameter. This output is crucial as it determines the scheduler that will be used in subsequent processes. By dynamically selecting between input1 and input2, the scheduler output provides flexibility and adaptability in managing different scheduling strategies within your workflow.
Scheduler Switch [RvTools] Usage Tips:
- Use the
Inputparameter to dynamically switch between different scheduler configurations based on specific conditions or requirements in your workflow. - Ensure that both
input1andinput2are properly configured and valid, as the node will rely on these inputs to determine the appropriate scheduler to use.
Scheduler Switch [RvTools] Common Errors and Solutions:
Invalid Input Value
- Explanation: The
Inputparameter must be set to either 1 or 2. Any other value will result in an error. - Solution: Ensure that the
Inputparameter is correctly set to either 1 or 2 to select the desired scheduler input.
Missing Scheduler Configuration
- Explanation: If
input1orinput2is not provided when required, the node may not function as expected. - Solution: Verify that both
input1andinput2are supplied with valid scheduler configurations, especially if they are marked withforceInput.
