When working with Workflow scripting in LabOperator, it is common for users to make mistakes in the YAML file. To encounter that, LabOperator provides its feature to show errors and warnings after checking the uploaded YAML file, and during the execution of a Workflow Run.
User case of uploading YAML with scripting errors
There are many possible errors during workflow development, but they can be mainly categorized into:
- LabOperator Schema invalidation errors
- Design logic errors
Schema invalidation errors when uploading to LabOperator
In this example YAML script file, there is a typo that the “stepOne” is not correctly defined in the “steps” section of the Workflow.
When uploading to LabOperator, in the same window, the details of Schema invalidation could be seen.
Logic errors during the execution of Workflow Run
Many cases would cause Workflow Runs to fail during the execution, namely, wrong data fetching or accessing, wrong device selection with missing channels and commands, unallowed webhooks, etc.
In this example YAML script file, there is a button to trigger assigning values to a string field. To show the error notification in LabOperator, the assigned value is bound to the undefined field. This is a data fetching error during the execution of a Workflow Run.
After uploading this test script to LabOperator and starting a Workflow Run, when clicking on the button to assign value to the ‘testField’, there is a notification: WorkflowUtils::ScriptingError: no value provided for variables: missingField. If users start another Workflow Run, they will not see this notification.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article