Overview
A task is executed by needs time to pass before starting the next task. A workflow runs but based on results needs to raise a descriptive failure message. A list of values are processed and the currently processed value needs to be displayed as workflow runs. Magnus provides Misc Task to handle these scenarios.
Misc Task allows both the ability sleep and raise a failure. Sleep will delay the Workflow a provided number of seconds before proceeding to the next task. Raise Failure can be used in multiple ways: One way to use Raise Failure is to exit the workflow with a failure while providing the reason for the failure. The reason can be hard coded text or based on a parameter. Another way Raise Failure can be used is by checking Ignore Failure on the task and using a parameter in the Raise Failure input box. A message can be constructed and the task can be added to a Loop Task to display during run time.
Front Panel
The purpose of Misc Task is for debugging or sleep in a workflow.
Add Misc Task
- Under Add Task, select the desired position from the "Add to position" drop down list, then click +Misc.
Sleep - Specify the sleep duration in seconds.
- This is optional. If no sleep is needed, leave this empty or set to 0 second.
- Parameters can be used.
Raise Failure - Specify the "Raise Failure" message.
a. This is optional. Leave this empty if no message is needed.
b. Parameters can be used.
c. This is mainly used for debugging purpose by displaying the values of parameters.
d. Check "Ignore Failure" if this should not cause the workflow to fail