Scheduler Switch (Restart) [RvTools]:
The Scheduler Switch (Restart) [RvTools] node is designed to facilitate the dynamic selection between two different input options based on a specified condition. This node is particularly useful in scenarios where you need to toggle between different scheduler configurations during the execution of a process. 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 manual intervention. This node is part of a deprecated category, indicating that while it is still functional, it may be replaced or updated in future versions. Its primary function is to streamline the decision-making process in scheduling tasks, ensuring that the most appropriate scheduler is utilized based on the given input.
Scheduler Switch (Restart) [RvTools] Input Parameters:
Input
The Input parameter is an integer that determines which of the two optional inputs 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 return the first optional input (input1), and when set to 2, it will return the second optional input (input2). This parameter is crucial for directing the flow of data through the node, allowing you to control which scheduler configuration is active based on your specific needs.
input1
The input1 parameter is an optional input that can accept any type of data. It is one of the two potential inputs that the node can return based on the value of the Input parameter. By default, it is an empty list, and it is marked as a required input when used, meaning that you must provide a value for it if you intend to use it as a selectable option. This parameter allows you to specify the first scheduler configuration or data set that can be chosen by the node.
input2
Similar to input1, the input2 parameter is an optional input that can also accept any type of data. It serves as the second potential input that the node can return, depending on the Input parameter's value. Like input1, it defaults to an empty list and requires a value when used. This parameter provides the flexibility to specify an alternative scheduler configuration or data set, enabling you to switch between different options seamlessly.
Scheduler Switch (Restart) [RvTools] Output Parameters:
scheduler
The scheduler output parameter represents the selected scheduler configuration or data set based on the Input parameter's value. It returns either input1 or input2, depending on whether the Input is set to 1 or 2, respectively. This output is crucial for directing the flow of the selected scheduler through subsequent nodes or processes, ensuring that the appropriate configuration is utilized for the task at hand.
Scheduler Switch (Restart) [RvTools] Usage Tips:
- Ensure that both
input1andinput2are properly configured with valid scheduler configurations or data sets before executing the node to avoid unexpected results. - Use the
Inputparameter strategically to dynamically switch between different scheduler configurations based on specific conditions or requirements in your workflow.
Scheduler Switch (Restart) [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: Verify that the
Inputparameter is correctly set to either 1 or 2 before executing the node.
Missing Required Input
- Explanation: If
input1orinput2is not provided when required, the node will not execute correctly. - Solution: Ensure that both
input1andinput2are supplied with valid data or configurations when they are intended to be used.
