Start Sub Task and End Sub Task
In Jiffy, Sub Task consists of two nodes: Start Sub Task and End Sub Task. They work as a group.
- Start Sub Task: This node indicates the start of Sub Task.
- End Sub Task: This node indicates the end of Sub Task.
In Jiffy, if a group of nodes needs to be executed until some criteria is met, we can use sub task nodes.
Note: The Sub Task node can be used either in an existing task or a new task.
- Designing a Task Using the Sub Task Nodes:
- Use an existing task or create a new task based on the requirement.
Note: Refer Create A Task for more details on how to create a task and how to open an existing task.
- Drag and drop the Sub Task nodes from the Objects -> SubTasks section and connect the nodes.
- Drag and drop a Validator node from the Objects ->Validators section.
- A Validator node is used to specify certain criteria such that when the criteria is met, the sub task execution ends.
- Without a Validator node, the sub task will be executed only once.
- More than one validator node can be used within a sub task. In such cases, only after all Validator nodes satisfy their respective criteria, the sub task execution ends.
- If the Validator node is not used within the Start and End Subtask nodes, then the sub-task nodes execution will wait until the completion of the Loop Count (Max)/Total Wait Time (Sec) and then executes the succeeding nodes.
- Connect the nodes as follows:
- Click on the Start Sub Task node and specify the properties:
- Name: Name of the node. A default name is displayed in this field, which the user can edit according to the task and the intent of using the node.
- Description: A short note on the purpose of the node.
- Sub Task Type: Sub Task will wait until all nodes between Start Sub Task node and End Sub Task node are executed and then further proceed with the next operation.
- Loop Count (Max): The user must define the maximum number of times that the subtask has to run.
- Total Wait Time (Sec): The user must define the total time in seconds that will be taken for the subtask to run.
- Delay (in seconds): The user must define the interval time in seconds between each loop.
Note: When a user executes a task having the Delay in Seconds value more than Total wait time value, the following error message is displayed upon clicking the Start Sub Task node: “Delay(in seconds) is greater than the total wait time provided.”
- Click on the Validator node and specify the properties. Refer Validator for more details.
- Click on the End Sub Task node and specify the properties:
- Implement the Sub Task Operation:
- Drag and drop the required nodes between Start Sub Task and End Sub Task.
- Click on the connector between the Random Number node and the Validator node.
- Select the required tag and click on the Add button.
- Double click on the Validator node and click on the Add symbol.
- Give the required criteria and save it.
- Click on the Trial Run icon to run the task.
- Click on the Book icon above the Start Sub Task node to display the Result of execution window of the Start Sub Task node.
This will show the time taken to finish the execution and the number of loops executed.
- Click on the Book icon above the End Sub Task node to display the Result of execution window of the End Sub Task node.